Beispiel #1
0
        public void SetDefaultValue(ComplexValue complexValue)
        {
            if (this.defaultValueField == null)
            {
                this.InitDefaultField();
            }
            ComplexField complexField = (ComplexField)this.defaultValueField;

            complexField.SetComplexValue(complexValue);
        }
Beispiel #2
0
        public ComplexValue GetDefaultComplexValue()
        {
            if (this.defaultValueField == null)
            {
                this.InitDefaultField();
            }
            ComplexField complexField = (ComplexField)this.defaultValueField;

            if (complexField == null)
            {
                return(null);
            }
            return(complexField.GetComplexValue());
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 public void SetComplexFieldValue(string fieldId, ComplexValue complexValue)
 {
     ComplexField field = new ComplexField();
     field.Id = fieldId;
     field.SetComplexValue(complexValue);
     this.fieldMap[fieldId] = field;
 }