public class BaseConfiguration extends AbstractConfiguration implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.util.Map |
store
stores the configuration key-value pairs
|
END_TOKEN, EVENT_ADD_PROPERTY, EVENT_CLEAR, EVENT_CLEAR_PROPERTY, EVENT_READ_PROPERTY, EVENT_SET_PROPERTY, START_TOKEN
Constructor and Description |
---|
BaseConfiguration() |
Modifier and Type | Method and 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 |
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, clearProperty, 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, interpolateHelper, isDelimiterParsingDisabled, isThrowExceptionOnMissing, resolveContainerStore, setDefaultListDelimiter, setDelimiter, setDelimiterParsingDisabled, setListDelimiter, setLogger, setProperty, setThrowExceptionOnMissing, subset
addConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEvents
protected void addPropertyDirect(java.lang.String key, java.lang.Object value)
addPropertyDirect
in class AbstractConfiguration
key
- key to use for mappingvalue
- object to storepublic java.lang.Object getProperty(java.lang.String key)
getProperty
in interface Configuration
key
- key to use for mappingpublic boolean isEmpty()
isEmpty
in interface Configuration
isEmpty
in class AbstractConfiguration
true
if Configuration is empty,
false
otherwise.public boolean containsKey(java.lang.String key)
containsKey
in interface Configuration
containsKey
in class AbstractConfiguration
key
- the configuration keytrue
if Configuration contain given key,
false
otherwise.protected void clearPropertyDirect(java.lang.String key)
clearPropertyDirect
in class AbstractConfiguration
key
- the key to remove along with corresponding value.public void clear()
clear
in interface Configuration
clear
in class AbstractConfiguration
public java.util.Iterator getKeys()
getKeys
in interface Configuration
getKeys
in class AbstractConfiguration
public java.lang.Object clone()
clone
in class EventSource