public interface Configuration
| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute(String name,
String defaultValue)
Returns attribute value.
|
BigDecimal |
getBigDecimal(String key,
BigDecimal defaultValue)
Returns big decimal value.
|
BigDecimal |
getBigDecimalAttribute(String name,
BigDecimal defaultValue)
Returns big decimal attribute value.
|
BigInteger |
getBigInteger(String key,
BigInteger defaultValue)
Returns big integer value.
|
BigInteger |
getBigIntegerAttribute(String name,
BigInteger defaultValue)
Returns big integer attribute value.
|
Boolean |
getBoolean(String key,
Boolean defaultValue)
Returns boolean value.
|
Boolean |
getBooleanAttribute(String name,
Boolean defaultValue)
Returns boolean attribute value.
|
Byte |
getByte(String key,
Byte defaultValue)
Returns byte value.
|
Byte |
getByteAttribute(String name,
Byte defaultValue)
Returns byte attribute value.
|
Configuration |
getChildConfiguration(String key)
Returns a child configuration.
|
List<Configuration> |
getChildConfigurationsOf(String key)
Returns all child configurations of the node specified by
key. |
List<Configuration> |
getConfigurationsAt(String key)
Returns all sub configurations specified by
key. |
Double |
getDouble(String key,
Double defaultValue)
Returns double value.
|
Double |
getDoubleAttribute(String name,
Double defaultValue)
Returns double attribute value.
|
Float |
getFloat(String key,
Float defaultValue)
Returns float value.
|
Float |
getFloatAttribute(String name,
Float defaultValue)
Returns float attribute value.
|
Integer |
getInteger(String key,
Integer defaultValue)
Returns integer value.
|
Integer |
getIntegerAttribute(String name,
Integer defaultValue)
Returns integer attribute value.
|
Long |
getLong(String key,
Long defaultValue)
Returns long value.
|
Long |
getLongAttribute(String name,
Long defaultValue)
Returns long attribute value.
|
String |
getName()
Returns configuration name.
|
Short |
getShort(String key,
Short defaultValue)
Returns short value.
|
Short |
getShortAttribute(String name,
Short defaultValue)
Returns short attribute value.
|
String |
getString(String key,
String defaultValue)
Returns string value.
|
String |
getValue()
Returns configuration value.
|
String |
getValue(String defaultValue)
Returns configuration value.
|
Object |
getVariable(String name)
Returns configuration variable.
|
boolean |
hasChildConfiguration(String key)
Returns
true if there is a child configuration specified by key. |
void |
setVariable(String name,
Object value)
Sets configuration variable.
|
void |
setVariables(Properties variables)
Sets configuration variables.
|
String getName()
void setVariables(Properties variables)
variables - configuration variables.void setVariable(String name, Object value)
name - configuration variable name.value - configuration variable value.Object getVariable(String name)
name - variable name.Configuration getChildConfiguration(String key)
key - child configuration key.boolean hasChildConfiguration(String key)
true if there is a child configuration specified by key.key - child configuration key.true if there is a child configuration specified by key.List<Configuration> getChildConfigurationsOf(String key)
key.key - key of the parent node.List<Configuration> getConfigurationsAt(String key)
key.key - key of the returned nodes.String getString(String key, String defaultValue)
key - configuration key.defaultValue - default value.Integer getInteger(String key, Integer defaultValue)
key - configuration key.defaultValue - default value.Long getLong(String key, Long defaultValue)
key - configuration key.defaultValue - default value.Boolean getBoolean(String key, Boolean defaultValue)
key - configuration key.defaultValue - default value.Byte getByte(String key, Byte defaultValue)
key - configuration key.defaultValue - default value.Double getDouble(String key, Double defaultValue)
key - configuration key.defaultValue - default value.Float getFloat(String key, Float defaultValue)
key - configuration key.defaultValue - default value.Short getShort(String key, Short defaultValue)
key - configuration key.defaultValue - default value.BigDecimal getBigDecimal(String key, BigDecimal defaultValue)
key - configuration key.defaultValue - default value.BigInteger getBigInteger(String key, BigInteger defaultValue)
key - configuration key.defaultValue - default value.String getValue()
String getValue(String defaultValue)
defaultValue - default value.String getAttribute(String name, String defaultValue)
name - attribute name.defaultValue - default value.Integer getIntegerAttribute(String name, Integer defaultValue)
name - attribute name.defaultValue - default value.Long getLongAttribute(String name, Long defaultValue)
name - attribute name.defaultValue - default value.Boolean getBooleanAttribute(String name, Boolean defaultValue)
name - attribute name.defaultValue - default value.Byte getByteAttribute(String name, Byte defaultValue)
name - attribute name.defaultValue - default value.Double getDoubleAttribute(String name, Double defaultValue)
name - attribute name.defaultValue - default value.Float getFloatAttribute(String name, Float defaultValue)
name - attribute name.defaultValue - default value.Short getShortAttribute(String name, Short defaultValue)
name - attribute name.defaultValue - default value.BigDecimal getBigDecimalAttribute(String name, BigDecimal defaultValue)
name - attribute name.defaultValue - default value.BigInteger getBigIntegerAttribute(String name, BigInteger defaultValue)
name - attribute name.defaultValue - default value.Copyright © 2016–2019 Softelnet. All rights reserved.