java.lang.Cloneable, ConfigurationAbstractFileConfigurationpublic class BaseConfiguration extends AbstractConfiguration implements java.lang.Cloneable
END_TOKEN, EVENT_ADD_PROPERTY, EVENT_CLEAR, EVENT_CLEAR_PROPERTY, EVENT_READ_PROPERTY, EVENT_SET_PROPERTY, START_TOKEN| Constructor | Description |
|---|---|
BaseConfiguration() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addPropertyDirect(java.lang.String key,
java.lang.Object value) |
Adds a key/value pair to the map.
|
void |
clear() |
Remove all properties from the configuration.
|
protected void |
clearPropertyDirect(java.lang.String key) |
Clear a property in the configuration.
|
java.lang.Object |
clone() |
Creates a copy of this object.
|
boolean |
containsKey(java.lang.String key) |
check if the configuration contains the key
|
java.util.Iterator<java.lang.String> |
getKeys() |
Get the list of the keys contained in the configuration
repository.
|
java.lang.Object |
getProperty(java.lang.String key) |
Read property from underlying map.
|
boolean |
isEmpty() |
Check if the configuration is empty
|
addErrorLogListener, addProperty, append, clearProperty, copy, createInterpolator, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDefaultListDelimiter, getDelimiter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getKeys, getList, getList, getListDelimiter, getLogger, getLong, getLong, getLong, getProperties, getProperties, getShort, getShort, getShort, getString, getString, getStringArray, getSubstitutor, interpolate, interpolate, interpolatedConfiguration, interpolateHelper, isDelimiterParsingDisabled, isScalarValue, isThrowExceptionOnMissing, resolveContainerStore, setDefaultListDelimiter, setDelimiter, setDelimiterParsingDisabled, setListDelimiter, setLogger, setProperty, setThrowExceptionOnMissing, subsetaddConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEventspublic BaseConfiguration()
protected void addPropertyDirect(java.lang.String key, java.lang.Object value)
addPropertyDirect in class AbstractConfigurationkey - key to use for mappingvalue - object to storepublic java.lang.Object getProperty(java.lang.String key)
getProperty in interface Configurationkey - key to use for mappingpublic boolean isEmpty()
isEmpty in interface Configurationtrue if Configuration is empty,
false otherwise.public boolean containsKey(java.lang.String key)
containsKey in interface Configurationkey - the configuration keytrue if Configuration contain given key,
false otherwise.protected void clearPropertyDirect(java.lang.String key)
clearPropertyDirect in class AbstractConfigurationkey - the key to remove along with corresponding value.public void clear()
Configurationclear in interface Configurationclear in class AbstractConfigurationpublic java.util.Iterator<java.lang.String> getKeys()
getKeys in interface Configurationpublic java.lang.Object clone()
clone in class EventSource