Class AbstractNodeBuilder<T>

java.lang.Object
org.cip4.lib.xjdf.builder.AbstractNodeBuilder<T>
Direct Known Subclasses:
ProductBuilder, XJdfBuilder

public abstract class AbstractNodeBuilder<T> extends Object
Abstract Builder implementation where all builders are derived from.
  • Constructor Details

    • AbstractNodeBuilder

      protected AbstractNodeBuilder(T node)
      Default constructor.
    • AbstractNodeBuilder

      protected AbstractNodeBuilder(Node node, Class<T> typeResourceClass) throws javax.xml.bind.JAXBException
      Custom constructor. Accepting a Node object for initializing. !! THIS NODE MUST BE NAMESPACE AWARE !!
      Parameters:
      node - Namespace aware node object.
      Throws:
      javax.xml.bind.JAXBException - Is thrown in case an exception.
  • Method Details

    • getNode

      protected T getNode()
      Getter for node attribute.
      Returns:
      the node
    • build

      public final T build()
      Build and return the Node.
      Returns:
      Node as DOM tree.