|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface represents a node of hierarchical configuration data. A configuration data node has a name, attributes (name/value pairs) and child nodes.
Copyright (c) SAP AG 2001-2002
| Method Summary | |
java.lang.String |
getAttribute(java.lang.String name)
Returns the string value of the specified attribute. |
java.lang.String |
getAttribute(java.lang.String name,
java.lang.String defaultValue)
Returns the string value of the specified attribute. |
boolean |
getAttributeAsBoolean(java.lang.String paramName)
Returns the boolean value of the specified attribute. |
boolean |
getAttributeAsBoolean(java.lang.String name,
boolean defaultValue)
Returns the boolean value of the specified attribute. |
float |
getAttributeAsFloat(java.lang.String paramName)
Returns the float value of the specified attribute. |
float |
getAttributeAsFloat(java.lang.String name,
float defaultValue)
Returns the float value of the specified attribute. |
int |
getAttributeAsInteger(java.lang.String paramName)
Returns the integer value of the specified attribute. |
int |
getAttributeAsInteger(java.lang.String name,
int defaultValue)
Returns the integer value of the specified attribute. |
long |
getAttributeAsLong(java.lang.String name)
Returns the long value of the specified attribute. |
long |
getAttributeAsLong(java.lang.String name,
long defaultValue)
Returns the long value of the specified attribute. |
java.lang.String[] |
getAttributeNames()
Returns an array of all attribute names. |
IConfiguration |
getChild(java.lang.String child)
Returns the child node with the specified name. |
IConfiguration |
getChild(java.lang.String child,
boolean createNew)
Returns the specified child node. |
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. |
java.lang.String |
getValue()
Returns the string value of this node. |
java.lang.String |
getValue(java.lang.String defaultValue)
Returns the string value of this node. |
boolean |
getValueAsBoolean()
Returns the boolean value of this node. |
boolean |
getValueAsBoolean(boolean defaultValue)
Returns the boolean value of this node. |
float |
getValueAsFloat()
Returns the float value of this node. |
float |
getValueAsFloat(float defaultValue)
Returns the float value of this node. |
int |
getValueAsInteger()
Returns the integer value of this node. |
int |
getValueAsInteger(int defaultValue)
Returns the integer value of this node. |
long |
getValueAsLong()
Returns the long value of this node. |
long |
getValueAsLong(long defaultValue)
Returns the long value of this node. |
| Method Detail |
public java.lang.String getName()
null ).null ).public java.lang.String getLocation()
public java.lang.String getNamespace()
throws ConfigurationException
ConfigurationException - Exception raised in failure situationpublic IConfiguration getChild(java.lang.String child)
child - The name of the child node.
public IConfiguration getChild(java.lang.String child,
boolean createNew)
child - 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()
public IConfiguration[] getChildren(java.lang.String name)
name - TBD: Description of the incoming method parameterpublic java.lang.String[] getAttributeNames()
public java.lang.String getAttribute(java.lang.String name)
throws ConfigurationException
name - The name of the attribute.ConfigurationException - If the attribute does not exist.
public int getAttributeAsInteger(java.lang.String paramName)
throws ConfigurationException
paramName - TBD: Description of the incoming method parameterConfigurationException - If the attribute does not exist or if the
value is not an integer.
public long getAttributeAsLong(java.lang.String name)
throws ConfigurationException
name - The name of the attribute.ConfigurationException - If the attribute does not exist or if the
value is not a long.
public float getAttributeAsFloat(java.lang.String paramName)
throws ConfigurationException
paramName - TBD: Description of the incoming method parameterConfigurationException - If the attribute does not exist or if the
value is not a float.
public boolean getAttributeAsBoolean(java.lang.String paramName)
throws ConfigurationException
paramName - TBD: Description of the incoming method parameterConfigurationException - If the attribute does not exist or if the
value is not a boolean.
public java.lang.String getValue()
throws ConfigurationException
ConfigurationException -
public int getValueAsInteger()
throws ConfigurationException
ConfigurationException - If the value is not an integer.
public float getValueAsFloat()
throws ConfigurationException
ConfigurationException - If the value is not an float.
public boolean getValueAsBoolean()
throws ConfigurationException
ConfigurationException - If the value is not an boolean.
public long getValueAsLong()
throws ConfigurationException
ConfigurationException - If the value is not an long.public java.lang.String getValue(java.lang.String defaultValue)
defaultValue - The default for the returned value if the node has no
value.public int getValueAsInteger(int defaultValue)
defaultValue - The default for the returned value if the node has no
value.public long getValueAsLong(long defaultValue)
defaultValue - The default for the returned value if the node has no
value.public float getValueAsFloat(float defaultValue)
defaultValue - The default for the returned value if the node has no
value.public boolean getValueAsBoolean(boolean defaultValue)
defaultValue - The default for the returned value if the node has no
value.
public java.lang.String getAttribute(java.lang.String name,
java.lang.String defaultValue)
defaultValue - The default for the returned value if the attribute
does not exist.name - The name of the attribute.
public int getAttributeAsInteger(java.lang.String name,
int defaultValue)
defaultValue - The default for the returned value if the attribute
does not exist.name - The name of the attribute.
public long getAttributeAsLong(java.lang.String name,
long defaultValue)
defaultValue - The default for the returned value if the attribute
does not exist.name - The name of the attribute.
public float getAttributeAsFloat(java.lang.String name,
float defaultValue)
defaultValue - The default for the returned value if the attribute
does not exist.name - The name of the attribute.
public boolean getAttributeAsBoolean(java.lang.String name,
boolean defaultValue)
defaultValue - The default for the returned value if the attribute
does not exist.name - The name of the attribute.
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||