/// <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()); } }
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()); } }
internal ResourceNodeBuilder(JdfNodeBuilder parent, XName resourceName, ResourceUsage usage, string id = null) : base(parent) { ParameterCheck.ParameterRequired(resourceName, "resourceName"); Element = ParentJdfNode.Element.LinkResource(usage, resourceName, id); }
internal GenericJdfBuilder(JdfNodeBuilder parentJdfBuilder, XElement element) { ParameterCheck.ParameterRequired(parentJdfBuilder, "parentJdfBuilder"); ParameterCheck.ParameterRequired(element, "element"); jdfNodeBuilder = parentJdfBuilder; this.element = element; }
internal JdfNodeBuilderBase(JdfNodeBuilder parentJdfBuilder) { ParentJdfNode = parentJdfBuilder; }
internal JdfNodeAttributeBuilder(JdfNodeBuilder jdfNodeBuilder) { ParameterCheck.ParameterRequired(jdfNodeBuilder, "jdfNodeBuilder"); this.jdfNodeBuilder = jdfNodeBuilder; }
internal ResourceNodeNameBuilder(JdfNodeBuilder jdfNodeBuilder, ResourceUsage usage) { ParameterCheck.ParameterRequired(jdfNodeBuilder, "jdfNodeBuilder"); ParentJdf = jdfNodeBuilder; this.usage = usage; }