Class AbstractNodeBuilder<T>

  • Direct Known Subclasses:
    ProductBuilder, XJdfBuilder

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

      Constructors 
      Modifier Constructor Description
      protected AbstractNodeBuilder​(org.w3c.dom.Node node, java.lang.Class<T> typeResourceClass)
      Custom constructor.
      protected AbstractNodeBuilder​(T node)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T build()
      Build and return the Node.
      protected T getNode()
      Getter for node attribute.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractNodeBuilder

        protected AbstractNodeBuilder​(T node)
        Default constructor.
      • AbstractNodeBuilder

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

      • 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.