|
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
This is an abstract IConfiguration implementation that deals
with methods that can be abstracted away from underlying implementations.
Copyright (c) SAP AG 2001-2002
| Constructor Summary | |
AbstractConfiguration()
|
|
| Method Summary | |
java.lang.String |
getAttribute(java.lang.String name,
java.lang.String defaultValue)
Returns the value of the attribute specified by its name as a String
. |
boolean |
getAttributeAsBoolean(java.lang.String name)
Returns the value of the attribute specified by its name as a boolean
. |
boolean |
getAttributeAsBoolean(java.lang.String name,
boolean defaultValue)
Returns the value of the attribute specified by its name as a boolean
. |
float |
getAttributeAsFloat(java.lang.String name)
Returns the value of the attribute specified by its name as a float
. |
float |
getAttributeAsFloat(java.lang.String name,
float defaultValue)
Returns the value of the attribute specified by its name as a float
. |
int |
getAttributeAsInteger(java.lang.String name)
Returns the value of the attribute specified by its name as an int
. |
int |
getAttributeAsInteger(java.lang.String name,
int defaultValue)
Returns the value of the attribute specified by its name as an int
. |
long |
getAttributeAsLong(java.lang.String name)
Returns the value of the attribute specified by its name as a long
. |
long |
getAttributeAsLong(java.lang.String name,
long defaultValue)
Returns the value of the attribute specified by its name as a long
. |
IConfiguration |
getChild(java.lang.String name)
Return the first Configuration object child of this associated
with the given name. |
protected abstract java.lang.String |
getPrefix()
Returns the prefix of the namespace. |
java.lang.String |
getValue(java.lang.String defaultValue)
Returns the value of the configuration element as a String . |
boolean |
getValueAsBoolean()
Returns the value of the configuration element as a boolean . |
boolean |
getValueAsBoolean(boolean defaultValue)
Returns the value of the configuration element as a boolean . |
float |
getValueAsFloat()
Returns the value of the configuration element as a float . |
float |
getValueAsFloat(float defaultValue)
Returns the value of the configuration element as a float . |
int |
getValueAsInteger()
Returns the value of the configuration element as an int .
|
int |
getValueAsInteger(int defaultValue)
Returns the value of the configuration element as an int .
|
long |
getValueAsLong()
Returns the value of the configuration element as a long .
|
long |
getValueAsLong(long defaultValue)
Returns the value of the configuration element as a long .
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sapportals.wcm.crt.configuration.IConfiguration |
getAttribute, getAttributeNames, getChild, getChildren, getChildren, getLocation, getName, getNamespace, getValue |
| Constructor Detail |
public AbstractConfiguration()
| Method Detail |
protected abstract java.lang.String getPrefix()
throws ConfigurationException
ConfigurationException - if no prefix was defined (prefix is
null .
public int getValueAsInteger()
throws ConfigurationException
int .
Hexadecimal numbers begin with 0x, Octal numbers begin with 0o and binary
numbers begin with 0b, all other values are assumed to be decimal.getValueAsInteger in interface IConfigurationConfigurationException - if an error occurspublic int getValueAsInteger(int defaultValue)
int .
Hexadecimal numbers begin with 0x, Octal numbers begin with 0o and binary
numbers begin with 0b, all other values are assumed to be decimal.getValueAsInteger in interface IConfigurationdefaultValue - the default value to return if value malformed or empty
public long getValueAsLong()
throws ConfigurationException
long .
Hexadecimal numbers begin with 0x, Octal numbers begin with 0o and binary
numbers begin with 0b, all other values are assumed to be decimal.getValueAsLong in interface IConfigurationConfigurationException - if an error occurspublic long getValueAsLong(long defaultValue)
long .
Hexadecimal numbers begin with 0x, Octal numbers begin with 0o and binary
numbers begin with 0b, all other values are assumed to be decimal.getValueAsLong in interface IConfigurationdefaultValue - the default value to return if value malformed or empty
public float getValueAsFloat()
throws ConfigurationException
float .getValueAsFloat in interface IConfigurationConfigurationException - if an error occurspublic float getValueAsFloat(float defaultValue)
float .getValueAsFloat in interface IConfigurationdefaultValue - the default value to return if value malformed or empty
public boolean getValueAsBoolean()
throws ConfigurationException
boolean .getValueAsBoolean in interface IConfigurationConfigurationException - if an error occurspublic boolean getValueAsBoolean(boolean defaultValue)
boolean .getValueAsBoolean in interface IConfigurationdefaultValue - the default value to return if value malformed or emptypublic java.lang.String getValue(java.lang.String defaultValue)
String .getValue in interface IConfigurationdefaultValue - the default value to return if value malformed or empty
public int getAttributeAsInteger(java.lang.String name)
throws ConfigurationException
int
. Hexadecimal numbers begin with 0x, Octal numbers begin with 0o and
binary numbers begin with 0b, all other values are assumed to be decimal.getAttributeAsInteger in interface IConfigurationname - the name of the attributeConfigurationException - if an error occurs
public int getAttributeAsInteger(java.lang.String name,
int defaultValue)
int
. Hexadecimal numbers begin with 0x, Octal numbers begin with 0o and
binary numbers begin with 0b, all other values are assumed to be decimal.getAttributeAsInteger in interface IConfigurationname - the name of the attributedefaultValue - the default value to return if value malformed or empty
public long getAttributeAsLong(java.lang.String name)
throws ConfigurationException
long
. Hexadecimal numbers begin with 0x, Octal numbers begin with 0o and
binary numbers begin with 0b, all other values are assumed to be decimal.getAttributeAsLong in interface IConfigurationname - the name of the attributeConfigurationException - if an error occurs
public long getAttributeAsLong(java.lang.String name,
long defaultValue)
long
. Hexadecimal numbers begin with 0x, Octal numbers begin with 0o and
binary numbers begin with 0b, all other values are assumed to be decimal.getAttributeAsLong in interface IConfigurationname - the name of the attributedefaultValue - the default value to return if value malformed or empty
public float getAttributeAsFloat(java.lang.String name)
throws ConfigurationException
float
.getAttributeAsFloat in interface IConfigurationname - the name of the attributeConfigurationException - if an error occurs
public float getAttributeAsFloat(java.lang.String name,
float defaultValue)
float
.getAttributeAsFloat in interface IConfigurationname - the name of the attributedefaultValue - the default value to return if value malformed or empty
public boolean getAttributeAsBoolean(java.lang.String name)
throws ConfigurationException
boolean
.getAttributeAsBoolean in interface IConfigurationname - the name of the attributeConfigurationException - if an error occurs
public boolean getAttributeAsBoolean(java.lang.String name,
boolean defaultValue)
boolean
.getAttributeAsBoolean in interface IConfigurationname - the name of the attributedefaultValue - the default value to return if value malformed or empty
public java.lang.String getAttribute(java.lang.String name,
java.lang.String defaultValue)
String
.getAttribute in interface IConfigurationname - the name of the attributedefaultValue - the default value to return if value malformed or emptypublic IConfiguration getChild(java.lang.String name)
Configuration object child of this associated
with the given name.getChild in interface IConfigurationname - the name of the child
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||