Configuration implementation that deals
with methods that can be abstracted away from underlying implementations.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the valuethe name of the attribute name, final String the default value to return if value malformed or empty defaultValue)Implements org. String.
|
| public boolean | Returns: the valuethe name of the attribute name)Implements org. boolean.
|
| public boolean | Returns: the valuethe name of the attribute name, final boolean the default value to return if value malformed or empty defaultValue)Implements org. boolean.
|
| public double | Returns: the valuethe name of the attribute name)Implements org. double.
|
| public double | Returns: the valuethe name of the attribute name, final double the default value to return if value malformed or empty defaultValue)Implements org. double.
|
| public float | Returns: the valuethe name of the attribute name)Implements org. float.
|
| public float | Returns: the valuethe name of the attribute name, final float the default value to return if value malformed or empty defaultValue)Implements org. float.
|
| public int | Returns: the valuethe name of the attribute name)Implements org. int.
|
| public int | Returns: the valuethe name of the attribute name, final int the default value to return if value malformed or empty defaultValue)Implements org. int.
|
| public long | Returns: the valuethe name of the attribute name)Implements org. long.
|
| public long | Returns: the valuethe name of the attribute name, final long the default value to return if value malformed or empty defaultValue)Implements org. long.
|
| public Configuration | Returns: the child Configurationthe name of the child name)Implements org. Configuration object child of this
associated with the given name.
|
| public Configuration | Returns: the child Configurationthe name of the child name, final boolean true if you want to create a new Configuration object if none exists createNew)Implements org. Configuration object child of this
associated with the given name.
|
| protected abstract String | |
| public String | Returns: the valuethe default value to return if value malformed or empty defaultValue)Implements org. String.
|
| public boolean | Returns: the valueImplements org. boolean.
|
| public boolean | Returns: the valuethe default value to return if value malformed or empty defaultValue)Implements org. boolean.
|
| public double | Returns: the valueImplements org. double.
|
| public double | Returns: the valuethe default value to return if value malformed or empty defaultValue)Implements org. double.
|
| public float | Returns: the valueImplements org. float.
|
| public float | Returns: the valuethe default value to return if value malformed or empty defaultValue)Implements org. float.
|
| public int | Returns: the valueImplements org. int.
|
| public int | Returns: the valuethe default value to return if value malformed or empty defaultValue)Implements org. int.
|
| public long | Returns: the valueImplements org. long.
|
| public long | Returns: the valuethe default value to return if value malformed or empty defaultValue)Implements org. long.
|
| private boolean | |
| private boolean | |
| public String | Returns: getName() + "::" + getValue() + ":@" + getLocation();Overrides java. |
| AbstractConfiguration | back to summary |
|---|---|
| public AbstractConfiguration() | |
| getAttribute | back to summary |
|---|---|
| public String getAttribute(final String name, final String defaultValue) Implements org. Returns the value of the attribute specified by its name as a
| |
| getAttributeAsBoolean | back to summary |
|---|---|
| public boolean getAttributeAsBoolean(final String name) throws ConfigurationException Implements org. Returns the value of the attribute specified by its name as a
| |
| getAttributeAsBoolean | back to summary |
|---|---|
| public boolean getAttributeAsBoolean(final String name, final boolean defaultValue) Implements org. Returns the value of the attribute specified by its name as a
| |
| getAttributeAsDouble | back to summary |
|---|---|
| public double getAttributeAsDouble(final String name) throws ConfigurationException Implements org. Returns the value of the attribute specified by its name as a
| |
| getAttributeAsDouble | back to summary |
|---|---|
| public double getAttributeAsDouble(final String name, final double defaultValue) Implements org. Returns the value of the attribute specified by its name as a
| |
| getAttributeAsFloat | back to summary |
|---|---|
| public float getAttributeAsFloat(final String name) throws ConfigurationException Implements org. Returns the value of the attribute specified by its name as a
| |
| getAttributeAsFloat | back to summary |
|---|---|
| public float getAttributeAsFloat(final String name, final float defaultValue) Implements org. Returns the value of the attribute specified by its name as a
| |
| getAttributeAsInteger | back to summary |
|---|---|
| public int getAttributeAsInteger(final String name) throws ConfigurationException Implements org. Returns the value of the attribute specified by its name as an
| |
| getAttributeAsInteger | back to summary |
|---|---|
| public int getAttributeAsInteger(final String name, final int defaultValue) Implements org. Returns the value of the attribute specified by its name as an
| |
| getAttributeAsLong | back to summary |
|---|---|
| public long getAttributeAsLong(final String name) throws ConfigurationException Implements org. Returns the value of the attribute specified by its name as a
| |
| getAttributeAsLong | back to summary |
|---|---|
| public long getAttributeAsLong(final String name, final long defaultValue) Implements org. Returns the value of the attribute specified by its name as a
| |
| getChild | back to summary |
|---|---|
| public Configuration getChild(final String name) Implements org. Return the first
| |
| getChild | back to summary |
|---|---|
| public Configuration getChild(final String name, final boolean createNew) Implements org. Return the first
| |
| getPrefix | back to summary |
|---|---|
| protected abstract String getPrefix() throws ConfigurationException Returns the prefix of the namespace. This is only used as a serialization hint, therefore is not part of the client API. It should be included in all Configuration implementations though.
| |
| getValue | back to summary |
|---|---|
| public String getValue(final String defaultValue) Implements org. Returns the value of the configuration element as a | |
| getValueAsBoolean | back to summary |
|---|---|
| public boolean getValueAsBoolean() throws ConfigurationException Implements org. Returns the value of the configuration element as a
| |
| getValueAsBoolean | back to summary |
|---|---|
| public boolean getValueAsBoolean(final boolean defaultValue) Implements org. Returns the value of the configuration element as a
| |
| getValueAsDouble | back to summary |
|---|---|
| public double getValueAsDouble() throws ConfigurationException Implements org. Returns the value of the configuration element as a
| |
| getValueAsDouble | back to summary |
|---|---|
| public double getValueAsDouble(final double defaultValue) Implements org. Returns the value of the configuration element as a
| |
| getValueAsFloat | back to summary |
|---|---|
| public float getValueAsFloat() throws ConfigurationException Implements org. Returns the value of the configuration element as a
| |
| getValueAsFloat | back to summary |
|---|---|
| public float getValueAsFloat(final float defaultValue) Implements org. Returns the value of the configuration element as a
| |
| getValueAsInteger | back to summary |
|---|---|
| public int getValueAsInteger() throws ConfigurationException Implements org. Returns the value of the configuration element as an
| |
| getValueAsInteger | back to summary |
|---|---|
| public int getValueAsInteger(final int defaultValue) Implements org. Returns the value of the configuration element as an
| |
| getValueAsLong | back to summary |
|---|---|
| public long getValueAsLong() throws ConfigurationException Implements org. Returns the value of the configuration element as a
| |
| getValueAsLong | back to summary |
|---|---|
| public long getValueAsLong(final long defaultValue) Implements org. Returns the value of the configuration element as a
| |
| isFalse | back to summary |
|---|---|
| private boolean isFalse(final String value) | |
| isTrue | back to summary |
|---|---|
| private boolean isTrue(final String value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. The toString() operation is used for debugging information. It does not create a deep reproduction of this configuration and all child configurations, instead it displays the name, value, and location.
| |