public interface IConfiguration
Copyright (c) SAP AG 2001-2002
Modifier and Type | Method and Description |
---|---|
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.
|
String getName()
null
).null
).String getLocation()
String getNamespace() throws ConfigurationException
ConfigurationException
- Exception raised in failure situationIConfiguration getChild(String child)
child
- The name of the child node.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.IConfiguration[] getChildren()
IConfiguration[] getChildren(String name)
name
- the name of the nodes to be returnedString[] getAttributeNames()
String getAttribute(String name) throws ConfigurationException
name
- The name of the attribute.ConfigurationException
- If the attribute does not exist.int getAttributeAsInteger(String paramName) throws ConfigurationException
paramName
- the name of the attributeConfigurationException
- If the attribute does not exist or if the
value is not an integer.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.float getAttributeAsFloat(String paramName) throws ConfigurationException
paramName
- the name of the attributeConfigurationException
- If the attribute does not exist or if the
value is not a float.boolean getAttributeAsBoolean(String paramName) throws ConfigurationException
paramName
- the name of the attributeConfigurationException
- If the attribute does not exist or if the
value is not a boolean.String getValue() throws ConfigurationException
ConfigurationException
- A ConfigurationException might be thrownint getValueAsInteger() throws ConfigurationException
ConfigurationException
- If the value is not an integer.float getValueAsFloat() throws ConfigurationException
ConfigurationException
- If the value is not an float.boolean getValueAsBoolean() throws ConfigurationException
ConfigurationException
- If the value is not an boolean.long getValueAsLong() throws ConfigurationException
ConfigurationException
- If the value is not an long.String getValue(String defaultValue)
defaultValue
- The default for the returned value if the node has no
value.int getValueAsInteger(int defaultValue)
defaultValue
- The default for the returned value if the node has no
value.long getValueAsLong(long defaultValue)
defaultValue
- The default for the returned value if the node has no
value.float getValueAsFloat(float defaultValue)
defaultValue
- The default for the returned value if the node has no
value.boolean getValueAsBoolean(boolean defaultValue)
defaultValue
- The default for the returned value if the node has no
value.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.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.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.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.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.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
|
Copyright 2018 SAP AG Complete Copyright Notice