public class CommonsConfiguration extends Object implements org.openksavi.sponge.config.Configuration
| Constructor and Description |
|---|
CommonsConfiguration(org.apache.commons.configuration2.BaseHierarchicalConfiguration config) |
public CommonsConfiguration(org.apache.commons.configuration2.BaseHierarchicalConfiguration config)
public org.apache.commons.configuration2.BaseHierarchicalConfiguration getInternalConfiguration()
public void setVariables(Properties variables)
setVariables in interface org.openksavi.sponge.config.Configurationpublic void setVariable(String name, Object value)
setVariable in interface org.openksavi.sponge.config.Configurationpublic Object getVariable(String name)
getVariable in interface org.openksavi.sponge.config.Configurationpublic String getName()
getName in interface org.openksavi.sponge.config.Configurationpublic CommonsConfiguration getChildConfiguration(String child)
getChildConfiguration in interface org.openksavi.sponge.config.Configurationpublic boolean hasChildConfiguration(String key)
hasChildConfiguration in interface org.openksavi.sponge.config.Configurationpublic CommonsConfiguration[] getChildConfigurationsOf(String key)
getChildConfigurationsOf in interface org.openksavi.sponge.config.Configurationpublic CommonsConfiguration[] getConfigurationsAt(String key)
getConfigurationsAt in interface org.openksavi.sponge.config.Configurationprotected CommonsConfiguration[] createConfigurations(List<org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode>> subs)
public String getValue()
getValue in interface org.openksavi.sponge.config.Configurationpublic String getValue(String defaultValue)
getValue in interface org.openksavi.sponge.config.Configurationpublic String getString(String key, String defaultValue)
getString in interface org.openksavi.sponge.config.Configurationpublic Integer getInteger(String key, Integer defaultValue)
getInteger in interface org.openksavi.sponge.config.Configurationpublic Long getLong(String key, Long defaultValue)
getLong in interface org.openksavi.sponge.config.Configurationpublic Boolean getBoolean(String key, Boolean defaultValue)
getBoolean in interface org.openksavi.sponge.config.Configurationpublic Byte getByte(String key, Byte defaultValue)
getByte in interface org.openksavi.sponge.config.Configurationpublic Double getDouble(String key, Double defaultValue)
getDouble in interface org.openksavi.sponge.config.Configurationpublic Float getFloat(String key, Float defaultValue)
getFloat in interface org.openksavi.sponge.config.Configurationpublic Short getShort(String key, Short defaultValue)
getShort in interface org.openksavi.sponge.config.Configurationpublic BigDecimal getBigDecimal(String key, BigDecimal defaultValue)
getBigDecimal in interface org.openksavi.sponge.config.Configurationpublic BigInteger getBigInteger(String key, BigInteger defaultValue)
getBigInteger in interface org.openksavi.sponge.config.Configurationpublic String getAttribute(String name, String defaultValue)
getAttribute in interface org.openksavi.sponge.config.Configurationpublic Integer getIntegerAttribute(String name, Integer defaultValue)
getIntegerAttribute in interface org.openksavi.sponge.config.Configurationpublic Long getLongAttribute(String name, Long defaultValue)
getLongAttribute in interface org.openksavi.sponge.config.Configurationpublic Boolean getBooleanAttribute(String name, Boolean defaultValue)
getBooleanAttribute in interface org.openksavi.sponge.config.Configurationpublic Byte getByteAttribute(String name, Byte defaultValue)
getByteAttribute in interface org.openksavi.sponge.config.Configurationpublic Double getDoubleAttribute(String name, Double defaultValue)
getDoubleAttribute in interface org.openksavi.sponge.config.Configurationpublic Float getFloatAttribute(String name, Float defaultValue)
getFloatAttribute in interface org.openksavi.sponge.config.Configurationpublic Short getShortAttribute(String name, Short defaultValue)
getShortAttribute in interface org.openksavi.sponge.config.Configurationpublic BigDecimal getBigDecimalAttribute(String name, BigDecimal defaultValue)
getBigDecimalAttribute in interface org.openksavi.sponge.config.Configurationpublic BigInteger getBigIntegerAttribute(String name, BigInteger defaultValue)
getBigIntegerAttribute in interface org.openksavi.sponge.config.ConfigurationCopyright © 2016–2017 Softelnet. All rights reserved.