|
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.crt.configuration.AbstractConfiguration
|
+--com.sapportals.wcm.crt.configuration.DefaultConfiguration
This is the default implementation of a configuration node.
Copyright (c) SAP AG 2001-2002
Copyright (c) SAP AG 2001-2002
| Field Summary | |
protected static java.lang.String[] |
NO_ATTRIBUTES
|
protected static IConfiguration[] |
NO_CHILDREN
|
| Constructor Summary | |
DefaultConfiguration(java.lang.String name)
Creates a new instance. |
|
DefaultConfiguration(java.lang.String name,
java.lang.String location)
Creates a new instance. |
|
DefaultConfiguration(java.lang.String name,
java.lang.String location,
java.util.HashMap attributes)
Deprecated. as of NW04. Use DefaultConfiguration(final String name, final String location, Map attributes) instead. |
|
DefaultConfiguration(java.lang.String name,
java.lang.String location,
java.util.Map attributes)
|
|
DefaultConfiguration(java.lang.String name,
java.lang.String location,
java.lang.String namespace,
java.lang.String prefix)
Creates a new instance. |
|
| Method Summary | |
void |
addChild(IConfiguration childConfiguration)
Adds a child configuration node to this node. |
protected void |
checkWriteable()
|
protected java.lang.StringBuffer |
dump(java.lang.StringBuffer buffer,
int in)
|
java.lang.String |
getAttribute(java.lang.String name)
Returns the string value of the specified attribute. |
java.lang.String[] |
getAttributeNames()
Returns an array of all attribute names. |
IConfiguration |
getChild(java.lang.String name,
boolean createNew)
Returns the specified child node. |
int |
getChildCount()
Returns the number of child nodes. |
IConfiguration[] |
getChildren()
Returns an array of all child nodes. |
IConfiguration[] |
getChildren(java.lang.String name)
Returns an array of all child nodes with the specified name. |
java.lang.String |
getLocation()
Returns a string describing the location of the configuration data. |
java.lang.String |
getName()
Returns the name of the node (not null ). |
java.lang.String |
getNamespace()
Returns the namespace this configuration node belongs to. |
protected java.lang.String |
getPrefix()
Returns the prefix of the namespace. |
java.lang.String |
getValue()
Returns the string value of this node. |
void |
makeReadOnly()
Sets the read-only flag for this node. |
void |
removeChild(IConfiguration childConfiguration)
Removes the child configuration node from this node. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
|
void |
setValue(java.lang.String value)
|
java.lang.String |
toString()
|
| Methods inherited from class com.sapportals.wcm.crt.configuration.AbstractConfiguration |
getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsFloat, getAttributeAsFloat, getAttributeAsInteger, getAttributeAsInteger, getAttributeAsLong, getAttributeAsLong, getChild, getValue, getValueAsBoolean, getValueAsBoolean, getValueAsFloat, getValueAsFloat, getValueAsInteger, getValueAsInteger, getValueAsLong, getValueAsLong |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final IConfiguration[] NO_CHILDREN
protected static final java.lang.String[] NO_ATTRIBUTES
| Constructor Detail |
public DefaultConfiguration(java.lang.String name)
name - The name of the configuration node.
public DefaultConfiguration(java.lang.String name,
java.lang.String location,
java.util.Map attributes)
public DefaultConfiguration(java.lang.String name,
java.lang.String location,
java.util.HashMap attributes)
public DefaultConfiguration(java.lang.String name,
java.lang.String location)
name - The name of the configuration node.location - A client specific location string, examples: line number
(for file-based persistence), identifier, URI, database table, ...
public DefaultConfiguration(java.lang.String name,
java.lang.String location,
java.lang.String namespace,
java.lang.String prefix)
name - The name of the configuration node.location - A client specific location string, examples: line number
(for file-based persistence), identifier, URI, database table, ...namespace - A namespace stringprefix - | Method Detail |
public java.lang.String getName()
IConfigurationnull ).com.sapportals.wcm.crt.configuration.IConfigurationnull ).
public java.lang.String getNamespace()
throws ConfigurationException
IConfigurationcom.sapportals.wcm.crt.configuration.IConfigurationConfigurationException - Exception raised in failure situationpublic java.lang.String getLocation()
IConfigurationcom.sapportals.wcm.crt.configuration.IConfiguration
public java.lang.String getValue()
throws ConfigurationException
IConfigurationcom.sapportals.wcm.crt.configuration.IConfigurationConfigurationException - public java.lang.String[] getAttributeNames()
IConfigurationcom.sapportals.wcm.crt.configuration.IConfigurationpublic IConfiguration[] getChildren()
IConfigurationcom.sapportals.wcm.crt.configuration.IConfiguration
public java.lang.String getAttribute(java.lang.String name)
throws ConfigurationException
IConfigurationcom.sapportals.wcm.crt.configuration.IConfigurationname - The name of the attribute.ConfigurationException - If the attribute does not exist.
public IConfiguration getChild(java.lang.String name,
boolean createNew)
IConfigurationcom.sapportals.wcm.crt.configuration.IConfigurationchild - The name of the child node.createNew - If true , an empty IConfiguration
node will be created and returned if the specified child does
not exist. If false , null will be returned
if the specified child doesn't exist.public IConfiguration[] getChildren(java.lang.String name)
IConfigurationcom.sapportals.wcm.crt.configuration.IConfigurationname - TBD: Description of the incoming method parameterpublic void setValue(java.lang.String value)
public void setAttribute(java.lang.String name,
java.lang.String value)
public void addChild(IConfiguration childConfiguration)
childConfiguration - child to be addedpublic void removeChild(IConfiguration childConfiguration)
childConfiguration - The child node to remove.public int getChildCount()
public void makeReadOnly()
protected java.lang.StringBuffer dump(java.lang.StringBuffer buffer,
int in)
public java.lang.String toString()
toString in class java.lang.Object
protected java.lang.String getPrefix()
throws ConfigurationException
AbstractConfigurationgetPrefix in class AbstractConfigurationcom.sapportals.wcm.crt.configuration.AbstractConfigurationConfigurationException - if no prefix was defined (prefix is
null .
protected final void checkWriteable()
throws java.lang.IllegalStateException
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||