コード例 #1
0
        /// <summary>
        /// Initialize from an element.
        /// </summary>
        /// <param name="element"></param>
        protected void InitializeFromElement(XElement element) {
            Element = element;

            if (element.GetJdfParentOrNull() != null) {
                ParentJdfNode = new JdfNodeBuilder(element.JdfParent());
            }
        }
コード例 #2
0
        void Initalize(Ticket ticket, bool isGrayBox, string[] types)
        {
            if (ticket.Root != null)
            {
                ticket.Root.ThrowExceptionIfNotJdfElement();
            }

            if (ticket.Root == null)
            {
                if (isGrayBox)
                {
                    Element = ticket.AddGrayBoxJdfElement(types);
                }
                else
                {
                    Element = ticket.AddProcessJdfElement(types);
                }
            }
            else
            {
                Element = ticket.Root;
            }

            if (Element.GetJdfParentOrNull() != null)
            {
                ParentJdfNode = new JdfNodeBuilder(Element.JdfParent());
            }
        }
コード例 #3
0
        internal ResourceNodeBuilder(JdfNodeBuilder parent, XName resourceName, ResourceUsage usage, string id = null)
            : base(parent)
        {
            ParameterCheck.ParameterRequired(resourceName, "resourceName");

            Element = ParentJdfNode.Element.LinkResource(usage, resourceName, id);
        }
コード例 #4
0
        internal GenericJdfBuilder(JdfNodeBuilder parentJdfBuilder, XElement element) {
            ParameterCheck.ParameterRequired(parentJdfBuilder, "parentJdfBuilder");
            ParameterCheck.ParameterRequired(element, "element");

            jdfNodeBuilder = parentJdfBuilder;
            this.element = element;
        }
コード例 #5
0
        internal GenericJdfBuilder(JdfNodeBuilder parentJdfBuilder, XElement element)
        {
            ParameterCheck.ParameterRequired(parentJdfBuilder, "parentJdfBuilder");
            ParameterCheck.ParameterRequired(element, "element");

            jdfNodeBuilder = parentJdfBuilder;
            this.element   = element;
        }
コード例 #6
0
        /// <summary>
        /// Initialize from an element.
        /// </summary>
        /// <param name="element"></param>
        protected void InitializeFromElement(XElement element)
        {
            Element = element;

            if (element.GetJdfParentOrNull() != null)
            {
                ParentJdfNode = new JdfNodeBuilder(element.JdfParent());
            }
        }
コード例 #7
0
        void Initalize(Ticket ticket, bool isGrayBox, string[] types) {
            if (ticket.Root != null) {
                ticket.Root.ThrowExceptionIfNotJdfElement();
            }

            if (ticket.Root == null) {
                if (isGrayBox) {
                    Element = ticket.AddGrayBoxJdfElement(types);
                } else {
                    Element = ticket.AddProcessJdfElement(types);
                }
            }
            else {
                Element = ticket.Root;
            }

            if (Element.GetJdfParentOrNull() != null) {
                ParentJdfNode = new JdfNodeBuilder(Element.JdfParent());
            }
        }
コード例 #8
0
 internal JdfNodeBuilderBase(JdfNodeBuilder parentJdfBuilder) {
     ParentJdfNode = parentJdfBuilder;
 }
コード例 #9
0
        internal JdfNodeAttributeBuilder(JdfNodeBuilder jdfNodeBuilder) {
            ParameterCheck.ParameterRequired(jdfNodeBuilder, "jdfNodeBuilder");

            this.jdfNodeBuilder = jdfNodeBuilder;
        }
コード例 #10
0
        internal JdfNodeAttributeBuilder(JdfNodeBuilder jdfNodeBuilder)
        {
            ParameterCheck.ParameterRequired(jdfNodeBuilder, "jdfNodeBuilder");

            this.jdfNodeBuilder = jdfNodeBuilder;
        }
コード例 #11
0
 internal JdfNodeBuilderBase(JdfNodeBuilder parentJdfBuilder)
 {
     ParentJdfNode = parentJdfBuilder;
 }
コード例 #12
0
        internal ResourceNodeNameBuilder(JdfNodeBuilder jdfNodeBuilder, ResourceUsage usage) {
            ParameterCheck.ParameterRequired(jdfNodeBuilder, "jdfNodeBuilder");

            ParentJdf = jdfNodeBuilder;
            this.usage = usage;
        }
コード例 #13
0
        internal ResourceNodeBuilder(JdfNodeBuilder parent, XName resourceName, ResourceUsage usage, string id = null)
            : base(parent) {
            ParameterCheck.ParameterRequired(resourceName, "resourceName");

            Element = ParentJdfNode.Element.LinkResource(usage, resourceName, id);
        }