|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | 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 | |
String |
getAttribute(String name)
Returns the string value of the specified attribute. |
String |
getAttribute(String name,
String defaultValue)
Returns the string value of the specified attribute. |
boolean |
getAttributeAsBoolean(String paramName)
Returns the boolean value of the specified attribute. |
boolean |
getAttributeAsBoolean(String name,
boolean defaultValue)
Returns the boolean value of the specified attribute. |
float |
getAttributeAsFloat(String paramName)
Returns the float value of the specified attribute. |
float |
getAttributeAsFloat(String name,
float defaultValue)
Returns the float value of the specified attribute. |
int |
getAttributeAsInteger(String paramName)
Returns the integer value of the specified attribute. |
int |
getAttributeAsInteger(String name,
int defaultValue)
Returns the integer value of the specified attribute. |
long |
getAttributeAsLong(String name)
Returns the long value of the specified attribute. |
long |
getAttributeAsLong(String name,
long defaultValue)
Returns the long value of the specified attribute. |
String[] |
getAttributeNames()
Returns an array of all attribute names. |
IConfiguration |
getChild(String child)
Returns the child node with the specified name. |
IConfiguration |
getChild(String child,
boolean createNew)
Returns the specified child node. |
IConfiguration[] |
getChildren()
Returns an array of all child nodes. |
IConfiguration[] |
getChildren(String name)
Returns an array of all child nodes with the specified name. |
String |
getLocation()
Returns a string describing the location of the configuration data. |
String |
getName()
Returns the name of the node (not null ). |
String |
getNamespace()
Returns the namespace this configuration node belongs to. |
String |
getValue()
Returns the string value of this node. |
String |
getValue(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 String getName()
null ).
null ).public String getLocation()
public String getNamespace()
throws ConfigurationException
ConfigurationException - Exception raised in failure situationpublic IConfiguration getChild(String child)
child - The name of the child node.
public IConfiguration getChild(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(String name)
name - TBD: Description of the incoming method parameter
public String[] getAttributeNames()
public String getAttribute(String name)
throws ConfigurationException
name - The name of the attribute.
ConfigurationException - If the attribute does not exist.
public int getAttributeAsInteger(String paramName)
throws ConfigurationException
paramName - TBD: Description of the incoming method parameter
ConfigurationException - If the attribute does not exist or if the
value is not an integer.
public long getAttributeAsLong(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(String paramName)
throws ConfigurationException
paramName - TBD: Description of the incoming method parameter
ConfigurationException - If the attribute does not exist or if the
value is not a float.
public boolean getAttributeAsBoolean(String paramName)
throws ConfigurationException
paramName - TBD: Description of the incoming method parameter
ConfigurationException - If the attribute does not exist or if the
value is not a boolean.
public 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 String getValue(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 String getAttribute(String name,
String defaultValue)
defaultValue - The default for the returned value if the attribute
does not exist.name - The name of the attribute.
public int getAttributeAsInteger(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(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(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(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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||