public class BaseConfiguration extends AbstractConfiguration implements Cloneable
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(String key,
Object value)
Adds a key/value pair to the map.
|
void |
clear()
Remove all properties from the configuration.
|
protected void |
clearPropertyDirect(String key)
Clear a property in the configuration.
|
Object |
clone()
Creates a copy of this object.
|
boolean |
containsKey(String key)
check if the configuration contains the key
|
Iterator<String> |
getKeys()
Get the list of the keys contained in the configuration
repository.
|
Object |
getProperty(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, setDetailEventsprotected void addPropertyDirect(String key, Object value)
addPropertyDirect in class AbstractConfigurationkey - key to use for mappingvalue - object to storepublic Object getProperty(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(String key)
containsKey in interface Configurationkey - the configuration keytrue if Configuration contain given key,
false otherwise.protected void clearPropertyDirect(String key)
clearPropertyDirect in class AbstractConfigurationkey - the key to remove along with corresponding value.public void clear()
Configurationclear in interface Configurationclear in class AbstractConfigurationpublic Iterator<String> getKeys()
getKeys in interface Configurationpublic Object clone()
clone in class EventSourceCopyright © 2001–2013 The Apache Software Foundation. All rights reserved.