예제 #1
0
파일: DataSet.cs 프로젝트: ewcasas/DVTK
        // -------------------------------
        // - Begin public methods region -
        // -------------------------------
        /// <summary>
        /// Accept method in the context of the "Hierarchical Visitor Pattern".
        /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm".
        /// </summary>
        /// <param name="attributeSetVisitor">The Attribute Set visitor.</param>
        /// <returns>
        /// true: continue traversing the siblings of this instance.
        /// false: stop traversing the siblings of this instance.
        /// </returns>
        public bool Accept(AttributeSetVisitor attributeSetVisitor)
        {
            if (attributeSetVisitor.VisitEnterDataSet(this))
            {
                foreach (Attribute attribute in this)
                {
                    if (!attribute.Accept(attributeSetVisitor))
                    {
                        break;
                    }
                }
            }

            return (attributeSetVisitor.VisitLeaveDataSet(this));
        }
예제 #2
0
        // -------------------------------
        // - Begin public methods region -
        // -------------------------------
        /// <summary>
        /// Accept method in the context of the "Hierarchical Visitor Pattern".
        /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm".
        /// </summary>
        /// <param name="attributeSetVisitor">The Attribute Set visitor.</param>
        /// <returns>
        /// true: continue traversing the siblings of this instance.
        /// false: stop traversing the siblings of this instance.
        /// </returns>
        public override bool Accept(AttributeSetVisitor attributeSetVisitor)
        {
            if (attributeSetVisitor.VisitEnterSequenceAttribute(this))
            {
                foreach (SequenceItem sequenceItem in this.sequenceItems)
                {
                    if (!sequenceItem.Accept(attributeSetVisitor))
                    {
                        break;
                    }
                }
            }

            return (attributeSetVisitor.VisitLeaveSequenceAttribute(this));
        }
예제 #3
0
 // -------------------------------
 // - Begin public methods region -
 // -------------------------------
 /// <summary>
 /// Accept method in the context of the "Hierarchical Visitor Pattern".
 /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm".
 /// </summary>
 /// <param name="attributeSetVisitor">The Attribute Set visitor.</param>
 /// <returns>
 /// true: continue traversing the siblings of this instance.
 /// false: stop traversing the siblings of this instance.
 /// </returns>
 public override bool Accept(AttributeSetVisitor attributeSetVisitor)
 {
     return (attributeSetVisitor.VisitSingleAttribute(this));
 }
예제 #4
0
파일: Attribute.cs 프로젝트: ewcasas/DVTK
 // -------------------------------
 // - Begin public methods region -
 // -------------------------------
 /// <summary>
 /// Accept method in the context of the "Hierarchical Visitor Pattern".
 /// See "DVTk_Library\Documentation\Design\Hierarchical Visitor Pattern.htm".
 /// </summary>
 /// <param name="attributeSetVisitor">The Attribute Set visitor.</param>
 /// <returns>
 /// true: continue traversing the siblings of this instance.
 /// false: stop traversing the siblings of this instance.
 /// </returns>
 public abstract bool Accept(AttributeSetVisitor attributeSetVisitor);