|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Environment<K,V>
The Environment interface prepares a data structure for nested data environments. The full environment will be a tree like structure with a base environment in the root.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Method Summary | |
---|---|
boolean |
allowsMultipleChildNames()
This method indicates if the environment allows multiple names for child environments. |
Environment<K,V> |
createChild(java.lang.String name)
This method creates a new child environment and returns it. |
java.util.List<Environment<K,V>> |
getAllChildren()
This method simply returns a list containing _all_ children. |
Environment<K,V> |
getChild(java.lang.String name)
Get the child environment with the given name; there might be different children with the same name! The method will return the first match then. |
int |
getChildCount()
This method returns the number of all children. |
java.util.List<Environment<K,V>> |
getChildren(java.lang.String name)
Get *all* children with the given name. |
Environment<K,V> |
getParent()
Get the environments parent. |
Environment<K,V> |
locateChild(Path<java.lang.String> path)
Locate a child in the environment tree structure. |
void |
removeAllChildren()
This method simply removes all children from this environment. |
Environment<K,V> |
removeChild(java.lang.String name)
This method removes the child with the given name and returns its old value. |
Methods inherited from interface java.util.Map |
---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Method Detail |
---|
boolean allowsMultipleChildNames()
Environment<K,V> getParent()
Environment<K,V> getChild(java.lang.String name)
name
- The child's name (if the child search is case sensitive
depends on the actual implementation).DefaultEnvironment
Environment<K,V> locateChild(Path<java.lang.String> path)
path
- The path that determines the desired child environment.
java.util.List<Environment<K,V>> getAllChildren()
java.util.List<Environment<K,V>> getChildren(java.lang.String name)
name
- The child's name (if the child search is case sensitive
depends on the actual implementation).DefaultEnvironment
Environment<K,V> createChild(java.lang.String name)
name
- The child's name.Environment<K,V> removeChild(java.lang.String name)
name
- The child's name.void removeAllChildren()
int getChildCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |