consciouscode.seedling.config
Class LayeredConfigTree

java.lang.Object
  extended by consciouscode.seedling.config.LayeredConfigTree
All Implemented Interfaces:
ConfigTree
Direct Known Subclasses:
MockConfigTree

public class LayeredConfigTree
extends Object
implements ConfigTree

Class documentation.


Constructor Summary
LayeredConfigTree(ConfigLayer[] layers)
           
 
Method Summary
 void collectNodeNames(String branchPath, Collection<String> names)
           
 ConfigLayer getLayer(int i)
           
 int getLayerCount()
           
 NodeConfiguration getNodeConfiguration(NodeReference nodeRef)
          Returns the configuration of a specific node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayeredConfigTree

public LayeredConfigTree(ConfigLayer[] layers)
Method Detail

getLayerCount

public int getLayerCount()

getLayer

public ConfigLayer getLayer(int i)

collectNodeNames

public void collectNodeNames(String branchPath,
                             Collection<String> names)
Specified by:
collectNodeNames in interface ConfigTree

getNodeConfiguration

public NodeConfiguration getNodeConfiguration(NodeReference nodeRef)
                                       throws ConfigurationException
Description copied from interface: ConfigTree
Returns the configuration of a specific node.

Specified by:
getNodeConfiguration in interface ConfigTree
Parameters:
nodeRef - identifies the desired node.
Returns:
null if no configuration exists for the node.
Throws:
ConfigurationException - if any problems are encountered.


Copyright © 2001–2012 Todd V. Jonker. All Rights Reserved.