public ComplexValue GetDefaultComplexValue() { if (this.defaultValueField == null) { this.InitDefaultField(); } ComplexField complexField = (ComplexField)this.defaultValueField; if (complexField == null) { return(null); } return(complexField.GetComplexValue()); }
public override XmlElement ToDefaultValueElement() { if (this.defaultValueField == null) { return(null); } ComplexField complexField = (ComplexField)this.defaultValueField; XmlElement defaultComplexValuesNode = XmlUtils.CreateRootElement("default-complex-values"); ComplexValue cValue = complexField.GetComplexValue(); foreach (String keyFieldId in cValue.GetFieldKeySet()) { Field field = cValue.GetValueField(keyFieldId); XmlElement valueNode = field.ToParamElement(); XmlUtils.AppendElement(defaultComplexValuesNode, valueNode); } return(defaultComplexValuesNode); }