|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.beanmaker.conf.AbstractConfiguration
AbstractConfiguration is a abstract configuration that represents
a node in a XML file.
Configuration| Field Summary | |
protected java.lang.String |
name
name of this configuration |
protected java.lang.String |
value
value of this configuration |
| Constructor Summary | |
protected |
AbstractConfiguration(java.lang.String name)
Creates the AbstractConfiguration object. |
| Method Summary | |
abstract Configuration |
getConfiguration(java.lang.String name)
Return a configuration specified in name |
abstract java.util.Iterator |
getConfigurations(java.lang.String name)
Return a iterator of configuration specified in name |
float |
getFloatValue()
Return the value of this configuraion as a float. |
int |
getIntValue()
Return the value of this configuraion as a int |
java.lang.String |
getName()
Return the name of this configuration |
java.lang.String |
getValue()
Return the value of this configuration |
java.lang.String |
getValue(java.lang.String defaultValue)
Return the value of this configuration. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.beanmaker.conf.Configuration |
getConfiguration |
| Field Detail |
protected java.lang.String value
protected java.lang.String name
| Constructor Detail |
protected AbstractConfiguration(java.lang.String name)
name - | Method Detail |
public float getFloatValue()
throws java.lang.NumberFormatException
float.
getFloatValue in interface Configurationfloat for this configuration value
java.lang.NumberFormatException
public int getIntValue()
throws java.lang.NumberFormatException
int
getIntValue in interface Configurationint for this configuration value
java.lang.NumberFormatExceptionpublic java.lang.String getName()
getName in interface Configurationpublic java.lang.String getValue()
getValue in interface Configurationpublic java.lang.String getValue(java.lang.String defaultValue)
getValue in interface ConfigurationdefaultValue - default value of node
public abstract java.util.Iterator getConfigurations(java.lang.String name)
getConfigurations in interface Configurationpublic abstract Configuration getConfiguration(java.lang.String name)
getConfiguration in interface Configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||