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, subset
addConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEvents
protected void addPropertyDirect(String key, Object value)
addPropertyDirect
in class AbstractConfiguration
key
- key to use for mappingvalue
- object to storepublic Object getProperty(String key)
getProperty
in interface Configuration
key
- key to use for mappingpublic boolean isEmpty()
isEmpty
in interface Configuration
true
if Configuration is empty,
false
otherwise.public boolean containsKey(String key)
containsKey
in interface Configuration
key
- the configuration keytrue
if Configuration contain given key,
false
otherwise.protected void clearPropertyDirect(String key)
clearPropertyDirect
in class AbstractConfiguration
key
- the key to remove along with corresponding value.public void clear()
Configuration
clear
in interface Configuration
clear
in class AbstractConfiguration
public Iterator<String> getKeys()
getKeys
in interface Configuration
public Object clone()
clone
in class EventSource
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.