|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Node
A instance of this class holds configuration properties (consisting of name/value pairs). It has a composite, recursive structure: it can potentially contain other nodes, and so on.
In addition, an instance of this class supports the concepts of links and includes.
| Field Summary | |
|---|---|
static String |
ROOT_NAME
|
| Method Summary | |
|---|---|
Path |
getAbsolutePath()
|
Node |
getChild(Path path)
|
Node |
getChild(String name)
|
Collection |
getChildren()
|
Collection |
getChildrenNames()
|
Collection |
getIncludes()
|
Collection |
getLinks(boolean prepended)
|
String |
getName()
|
Collection |
getNodes(Query query)
|
Node |
getParent()
|
Map |
getProperties()
Returns this instance's properties. |
Map |
getProperties(Map values)
|
Property |
getProperty(String key)
|
Collection |
getPropertyKeys()
|
String |
getType()
|
boolean |
isInheritsParent()
|
boolean |
isRoot()
|
long |
lastModifChecksum()
This method returns a checksum based on the last modification time of this instance and of this parents and links, if any. |
Property |
renderProperty(String key)
This method returns the property corresponding to the given key. |
Property |
renderProperty(String key,
Map values)
|
| Field Detail |
|---|
static final String ROOT_NAME
| Method Detail |
|---|
String getName()
Collection getChildrenNames()
Collection of names of this instance's child nodes.String getType()
Path getAbsolutePath()
Path.long lastModifChecksum()
long corresponding to a checksum.Node getParent()
null if this instance is the root.boolean isRoot()
true if this instance is the root.boolean isInheritsParent()
true if this instance inherits its parent node (if any).Collection getLinks(boolean prepended)
prepended - if true, returns this instance's prepended links, else,
returns this instance's appended links.
Collection of Nodes.Collection getIncludes()
Collection of Nodes that have been included
in this instance.Property getProperty(String key)
key - a property key.
Property corresponding to the given key (if no corresponding property
corresponds to the given key, the returned property's isNull() method returns
true).Property renderProperty(String key)
Variable values are search as follows:
If any variable could not be rendered, then it is left in its original notation.
key - a property key.
Property corresponding to the given key (if no corresponding property
corresponds to the given key, the returned property's isNull() method returns
true).
Property renderProperty(String key,
Map values)
values - a Map of properties (name/value pairs) to be used internally
by this method's interpolation logic.renderProperty(String)Collection getPropertyKeys()
Collection of keys of the properties held by this instance.Map getProperties()
Map holding a copy of the configuration properties held by this instance.Map getProperties(Map values)
values - a Map of properties (name/value pairs) to be used internally
by this method's interpolation logic.getProperties()Node getChild(String name)
name - the name of the child to acquire.
Node, or null if no such child exists.Node getChild(Path path)
path - the Path corresponding to the child to create.
Node, or null if no such child exists.Collection getChildren()
Collection of child Nodes of this instance.Collection getNodes(Query query)
query - a Query
Collection of Nodes that match
the given query.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||