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

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

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