Пример #1
0
 public BooleanCedent(
     CedentEnum cedentType,
     BooleanPartialCedentSettingStruct cedent)
 {
     CedentType = cedentType;
     Cedent = cedent;
 }
 public override BooleanPartialCedentSettingStruct getBooleanPartialCedentSetting(Ice.Current __current)
 {
     BooleanPartialCedentSettingStruct result = new BooleanPartialCedentSettingStruct();
     result.equivalenceClasses = getEquivalenceClassStructSeq();
     result.literalSettings = getLiteralSettingStructSeq();
     result.minLen = MinLen;
     result.maxLen = MaxLen;
     result.identifier = boxModule.PersistentIdentity;
     if (result.minLen > result.maxLen)
     {
         throw Ferda.Modules.Exceptions.BadValueError(null, boxModule.StringIceIdentity, "Min length is greater than max length!", new string[] { "MinLen", "MaxLen" }, restrictionTypeEnum.Other);
     }
     return result;
 }
Пример #3
0
 protected void addBooleanCedents(BooleanPartialCedentSettingStruct[] booleanPartialCedents, CedentEnum cedentType, ref List<BooleanCedent> booleanCedents)
 {
     BooleanCedent booleanCedent;
     if (booleanPartialCedents != null && booleanPartialCedents.Length > 0)
         foreach (BooleanPartialCedentSettingStruct booleanPartialCedentSetting in booleanPartialCedents)
         {
             booleanCedent = new BooleanCedent(cedentType, booleanPartialCedentSetting);
             booleanCedents.Add(booleanCedent);
         }
 }