|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.wcm.util.config.ConfigCollection
A ConfigCollection is a hirarchical representation of a configuration file. Copyright (c) SAP AG 2001-2002
| Constructor Summary | |
ConfigCollection(java.lang.String name)
Create a new ConfigCollection. |
|
| Method Summary | |
void |
addChild(ConfigCollection configCollection)
Add a child ConfigCollection. |
ConfigCollection |
getByPath(java.lang.String path)
Get a ConfigCollection by its path in dot-notation. |
ConfigCollection |
getChild(java.lang.String name)
Get a child ConfigCollection by its name. |
java.util.Collection |
getChildren()
Get all children of the ConfigCollection. |
java.lang.String |
getName()
Get the name of the ConfigCollection. |
java.lang.String |
getProperty(java.lang.String name)
Get a property by its name. |
java.util.Collection |
getPropertyNames()
Get all property names in this ConfigCollection. |
void |
putProperty(java.lang.String name,
java.lang.String value)
Set/add a property to the ConfigCollection. |
void |
removeChild(java.lang.String name)
Remove a child ConfigCollection. |
void |
removeProperty(java.lang.String name)
Remove a property from the ConfigCollection |
void |
setByPath(java.lang.String path,
ConfigCollection configCollection)
Set/Replace a child ConfigCollection by its relative path in dot-notation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConfigCollection(java.lang.String name)
name - the name of the ConfigCollection (the root-node has name = null
)| Method Detail |
public java.lang.String getName()
public void addChild(ConfigCollection configCollection)
configCollection - The child to be addedpublic void removeChild(java.lang.String name)
name - TBD: Description of the incoming method parameterpublic ConfigCollection getChild(java.lang.String name)
name - The name of the childpublic ConfigCollection getByPath(java.lang.String path)
path - The path in dot-notation
public void setByPath(java.lang.String path,
ConfigCollection configCollection)
path - The path in dot-notationconfigCollection - The child ConfigCollection to be setpublic java.util.Collection getChildren()
public void putProperty(java.lang.String name,
java.lang.String value)
name - The name of the property (dot-notation will be resolved)value - The value of the propertypublic void removeProperty(java.lang.String name)
name - The name of the property to by removed (dot-notation will be
resoved )public java.util.Collection getPropertyNames()
public java.lang.String getProperty(java.lang.String name)
name - The name of the property (dot-notation will by resolved)
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||