Class ConfigurationNodeVisitorAdapter<T>

    • Method Detail

      • visitBeforeChildren

        public void visitBeforeChildren​(T node,
                                        NodeHandler<T> handler)
        Visits the specified node before the children of this node - if existing - are processed. Empty dummy implementation of this interface method.
        Specified by:
        visitBeforeChildren in interface ConfigurationNodeVisitor<T>
        Parameters:
        node - the node to be visited
        handler - the NodeHandler
      • visitAfterChildren

        public void visitAfterChildren​(T node,
                                       NodeHandler<T> handler)
        Visits the specified node after after its children - if existing - have been processed. Empty dummy implementation of this interface method.
        Specified by:
        visitAfterChildren in interface ConfigurationNodeVisitor<T>
        Parameters:
        node - the node to be visited
        handler - the NodeHandler
      • terminate

        public boolean terminate()
        Returns a flag whether the current visit process should be aborted. This method allows a visitor implementation to state that it does not need any further data. It may be used e.g. by visitors that search for a certain node in the hierarchy. After that node was found, there is no need to process the remaining nodes, too. This method is called after each visited node. A result of true indicates that the current iteration is to be aborted. This implementation returns always false; this means that all nodes in the current hierarchy are traversed.
        Specified by:
        terminate in interface ConfigurationNodeVisitor<T>
        Returns:
        a flag if the visit process should be stopped