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.
|
BigInteger |
getBigInteger(String key,
BigInteger defaultValue)
Returns big integer value.
|
Boolean |
getBoolean(String key,
Boolean defaultValue)
Returns boolean value.
|
Byte |
getByte(String key,
Byte defaultValue)
Returns byte value.
|
Configuration |
getChildConfiguration(String key)
Returns a child configuration.
|
Configuration[] |
getChildConfigurationsOf(String key)
Returns all child configurations of the node specified by
key. |
Configuration[] |
getConfigurationsAt(String key)
Returns all sub configurations specified by
key. |
Double |
getDouble(String key,
Double defaultValue)
Returns double value.
|
Float |
getFloat(String key,
Float defaultValue)
Returns float value.
|
Integer |
getInteger(String key,
Integer defaultValue)
Returns integer value.
|
Long |
getLong(String key,
Long defaultValue)
Returns long value.
|
String |
getName()
Returns configuration name.
|
Short |
getShort(String key,
Short defaultValue)
Returns short 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.Configuration[] getChildConfigurationsOf(String key)
key.key - key of the parent node.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.Copyright © 2016–2017 Softelnet. All rights reserved.