Exemple #1
0
        public virtual void SetNullFlavor(string propertyName, Ca.Infoway.Messagebuilder.Domainvalue.NullFlavor nullFlavor)
        {
            object field = GetField(propertyName);

            if (field is BareANY)
            {
                ((BareANY)field).NullFlavor = nullFlavor;
            }
            else
            {
                if (field is MessagePartBean)
                {
                    ((MessagePartBean)field).NullFlavor = nullFlavor;
                }
                else
                {
                    throw new InvalidOperationException("Could not find property " + propertyName + " in order to set nullFlavor");
                }
            }
        }
Exemple #2
0
 public virtual bool SetNullFlavorInSet(string propertyName, object valueInSet, Ca.Infoway.Messagebuilder.Domainvalue.NullFlavor
                                        nullFlavor)
 {
     return(SetMetadataInCollection(propertyName, -1, valueInSet, nullFlavor, false));
 }
Exemple #3
0
 public virtual bool SetNullFlavorInList(string propertyName, int indexInList, Ca.Infoway.Messagebuilder.Domainvalue.NullFlavor
                                         nullFlavor)
 {
     return(SetMetadataInCollection(propertyName, indexInList, null, nullFlavor, false));
 }