Class NodeFactory

  • All Implemented Interfaces:
    NodeConstIf

    public class NodeFactory
    extends java.lang.Object
    implements NodeConstIf
    Class NodeFactory is responsible for Node instance construction.
    • Constructor Detail

      • NodeFactory

        public NodeFactory()
    • Method Detail

      • getNodeInstance

        public static Node getNodeInstance​(java.lang.String pNodeName)
        getNodeInstance
        Parameters:
        pNodeName - Should be an XML element name constant which is defined in NodeConstIf
        Returns:
        the Node subclass which implements the parsing of pNodeName named XML Element.
      • getEnum

        public static java.lang.String getEnum​(java.lang.String pNodeName)
        getEnum
        Parameters:
        pNodeName -
        Returns:
        The corresponding String constant for an XML element name. It must be used, because the Node subclasses use reference based equals comparisons (==).