// ------------------------------ // - End internal methods region - // ------------------------------ #endregion #region - Public methods - // ------------------------------- // - Begin public methods region - // ------------------------------- /// <summary> /// Create an Attribute structure from the Module/Macro/Sequence Item structure. /// </summary> /// <param name="attributes">The list to add the Attributes to.</param> public virtual void CreateAttributeStructure(SortedAttributeList attributes) { foreach (IAttributeOrMacro attributeOrMacro in this) { attributeOrMacro.CreateAttributeStructure(attributes); } }
/// <summary> /// Create an Attribute structure from the Module/Macro/Sequence Item structure. /// </summary> /// <param name="attributes">The list to add the Attributes to.</param> public override void CreateAttributeStructure(SortedAttributeList attributes) { this.encounteredDuringCreateAttributeReferencesRecursively++; if (this.encounteredDuringCreateAttributeReferencesRecursively <= 2) { base.CreateAttributeStructure(attributes); } this.encounteredDuringCreateAttributeReferencesRecursively--; }
/// <summary> /// Create an Attribute structure from the Module/Macro/Sequence Item structure. /// </summary> /// <param name="attributes">The list to add this Attribute to.</param> public override void CreateAttributeStructure(SortedAttributeList attributes) { attributes.Add(this); }
/// <summary> /// Create an Attribute structure from the Module/Macro/Sequence Item structure. /// </summary> /// <param name="attributes">The list to add this Attribute to.</param> public abstract void CreateAttributeStructure(SortedAttributeList attributes);
/// <summary> /// Create an Attribute structure from the Module/Macro/Sequence Item structure. /// </summary> /// <param name="attributes">The list to add this Attribute to.</param> public override void CreateAttributeStructure(SortedAttributeList attributes) { attributes.Add(this); this.sequenceItem.CreateAttributeStructure(this.sortedAttributeList); }