Beispiel #1
0
 private ExtensionIdentifier(ExtensionStandard.Field field, Type referenceClass)
 {
     m_id             = field.Id;
     m_rfcName        = field.RfcName;
     m_display        = field.Display;
     m_subAttributes  = null;
     m_referenceClass = referenceClass;
 }
Beispiel #2
0
        private ExtensionIdentifier(ExtensionStandard.Field field, List <AttributeReferenceClass> subAttributes)
        {
            m_id             = field.Id;
            m_rfcName        = field.RfcName;
            m_display        = field.Display;
            m_subAttributes  = subAttributes;
            m_referenceClass = null;

            //add required flag option to each sub attribute
            if (this.m_subAttributes.Count > 0)
            {
                var addAttributes = new List <AttributeReferenceClass>();

                foreach (var attributeReferenceClass in m_subAttributes)
                {
                    addAttributes.Add(new AttributeReferenceClass(attributeReferenceClass.GetAttribute()
                                                                  + "+", attributeReferenceClass.GetReferenceClass()));
                }
                m_subAttributes.AddRange(addAttributes);
            }
        }