|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.util.config.ConfigCollection
public class ConfigCollection
A ConfigCollection is a hirarchical representation of a configuration file. Copyright (c) SAP AG 2001-2002
| Constructor Summary | |
|---|---|
ConfigCollection(String name)
Create a new ConfigCollection. |
|
| Method Summary | |
|---|---|
void |
addChild(ConfigCollection configCollection)
Add a child ConfigCollection. |
ConfigCollection |
getByPath(String path)
Get a ConfigCollection by its path in dot-notation. |
ConfigCollection |
getChild(String name)
Get a child ConfigCollection by its name. |
Collection |
getChildren()
Get all children of the ConfigCollection. |
String |
getName()
Get the name of the ConfigCollection. |
String |
getProperty(String name)
Get a property by its name. |
Collection |
getPropertyNames()
Get all property names in this ConfigCollection. |
void |
putProperty(String name,
String value)
Set/add a property to the ConfigCollection. |
void |
removeChild(String name)
Remove a child ConfigCollection. |
void |
removeProperty(String name)
Remove a property from the ConfigCollection |
void |
setByPath(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(String name)
name - the name of the ConfigCollection (the root-node has name = null
)| Method Detail |
|---|
public String getName()
public void addChild(ConfigCollection configCollection)
configCollection - The child to be addedpublic void removeChild(String name)
name - TBD: Description of the incoming method parameterpublic ConfigCollection getChild(String name)
name - The name of the child
public ConfigCollection getByPath(String path)
path - The path in dot-notation
public void setByPath(String path,
ConfigCollection configCollection)
path - The path in dot-notationconfigCollection - The child ConfigCollection to be setpublic Collection getChildren()
public void putProperty(String name,
String value)
name - The name of the property (dot-notation will be resolved)value - The value of the propertypublic void removeProperty(String name)
name - The name of the property to by removed (dot-notation will be
resoved )public Collection getPropertyNames()
public String getProperty(String name)
name - The name of the property (dot-notation will by resolved)
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||