Class HierarchicalConfigurationXMLReader.SAXVisitor

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String ATTR_TYPE
      Constant for the attribute type.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private SAXVisitor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.xml.sax.Attributes fetchAttributes​(T node, NodeHandler<T> handler)
      Returns an object with all attributes for the specified node.
      private java.lang.String nodeName​(T node, NodeHandler<T> handler)
      Helper method for determining the name of a node.
      boolean terminate()
      Checks if iteration should be terminated.
      void visitAfterChildren​(T node, NodeHandler<T> handler)
      Visits the specified node after its children have been processed.
      void visitBeforeChildren​(T node, NodeHandler<T> handler)
      Visits the specified node.
      • Methods inherited from class java.lang.Object

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

      • ATTR_TYPE

        private static final java.lang.String ATTR_TYPE
        Constant for the attribute type.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SAXVisitor

        private SAXVisitor()
    • Method Detail

      • fetchAttributes

        protected org.xml.sax.Attributes fetchAttributes​(T node,
                                                         NodeHandler<T> handler)
        Returns an object with all attributes for the specified node.
        Parameters:
        node - the current node
        handler - the node handler
        Returns:
        an object with all attributes of this node
      • nodeName

        private java.lang.String nodeName​(T node,
                                          NodeHandler<T> handler)
        Helper method for determining the name of a node. If a node has no name (which is true for the root node), the specified default name will be used.
        Parameters:
        node - the node to be checked
        handler - the node handler
        Returns:
        the name for this node