Class NodeFactory

java.lang.Object
org.sblim.cimclient.internal.cimxml.sax.NodeFactory
All Implemented Interfaces:
NodeConstIf

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

    • NodeFactory

      public NodeFactory()
  • Method Details

    • getNodeInstance

      public static Node getNodeInstance(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 String getEnum(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 (==).