|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.slide.util.conf.AbstractConfiguration | +--org.apache.slide.util.conf.ConfigurationImpl
This is the default Configuration
implementation.
Fields inherited from class org.apache.slide.util.conf.AbstractConfiguration |
location |
Constructor Summary | |
protected |
ConfigurationImpl()
Create a new ConfigurationImpl instance. |
protected |
ConfigurationImpl(java.lang.String name)
Create a new ConfigurationImpl instance. |
protected |
ConfigurationImpl(java.lang.String name,
java.lang.String source,
int line)
Create a new ConfigurationImpl instance. |
Method Summary | |
protected java.lang.String |
addAttribute(java.lang.String name,
java.lang.String value)
Add an attribute to this configuration element, returning its old value or null. |
void |
addConfiguration(Configuration conf)
Add a child Configuration to this configuration element. |
protected void |
appendValueData(java.lang.String value)
Append data to the value of this configuration element. |
java.lang.String |
getAttribute(java.lang.String name)
Returns the value of the attribute specified by its name as a String . |
Configuration |
getConfiguration(java.lang.String name)
Return the first Configuration object child of this
associated with the given name or null. |
java.util.Enumeration |
getConfigurations(java.lang.String name)
Return an Enumeration of Configuration objects
children of this associated with the given name. |
java.lang.String |
getName()
Returns the name of this configuration element. |
java.lang.String |
getValue()
Returns the value of the configuration element as a String . |
Methods inherited from class org.apache.slide.util.conf.AbstractConfiguration |
getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsFloat, getAttributeAsFloat, getAttributeAsInt, getAttributeAsInt, getAttributeAsLong, getAttributeAsLong, getLocation, getValue, getValueAsBoolean, getValueAsBoolean, getValueAsFloat, getValueAsFloat, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
protected ConfigurationImpl()
ConfigurationImpl
instance.protected ConfigurationImpl(java.lang.String name)
ConfigurationImpl
instance.protected ConfigurationImpl(java.lang.String name, java.lang.String source, int line)
ConfigurationImpl
instance.Method Detail |
public java.lang.String getName()
public java.lang.String getValue() throws ConfigurationException
String
.ConfigurationException
- If the value is not present.public java.lang.String getAttribute(java.lang.String name) throws ConfigurationException
String
.ConfigurationException
- If the attribute is not present.public Configuration getConfiguration(java.lang.String name)
Configuration
object child of this
associated with the given name or null.getConfiguration
in class AbstractConfiguration
name
- The name of the required child Configuration
.public java.util.Enumeration getConfigurations(java.lang.String name)
Enumeration
of Configuration
objects
children of this associated with the given name.
Enumeration
may be empty.name
- The name of the required children Configuration
.protected void appendValueData(java.lang.String value)
protected java.lang.String addAttribute(java.lang.String name, java.lang.String value)
public void addConfiguration(Configuration conf)
Configuration
to this configuration element.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |