Class AbstractHierarchicalConfiguration.DefinedKeysVisitor

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Set<java.lang.String> keyList
      Stores the list to be filled.
      private java.util.Stack<java.lang.String> parentKeys
      A stack with the keys of the already processed nodes.
    • Constructor Summary

      Constructors 
      Constructor Description
      DefinedKeysVisitor()
      Default constructor.
      DefinedKeysVisitor​(java.lang.String prefix)
      Creates a new DefinedKeysVisitor instance and sets the prefix for the keys to fetch.
    • Field Detail

      • keyList

        private final java.util.Set<java.lang.String> keyList
        Stores the list to be filled.
      • parentKeys

        private final java.util.Stack<java.lang.String> parentKeys
        A stack with the keys of the already processed nodes.
    • Constructor Detail

      • DefinedKeysVisitor

        public DefinedKeysVisitor()
        Default constructor.
      • DefinedKeysVisitor

        public DefinedKeysVisitor​(java.lang.String prefix)
        Creates a new DefinedKeysVisitor instance and sets the prefix for the keys to fetch.
        Parameters:
        prefix - the prefix
    • Method Detail

      • getKeyList

        public java.util.Set<java.lang.String> getKeyList()
        Gets the list with all defined keys.
        Returns:
        the list with the defined keys
      • handleAttributeKeys

        public void handleAttributeKeys​(java.lang.String parentKey,
                                        T node,
                                        NodeHandler<T> handler)
        Appends all attribute keys of the current node.
        Parameters:
        parentKey - the parent key
        node - the current node
        handler - the NodeHandler