|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.event.EventSource
org.apache.commons.configuration.AbstractConfiguration
org.apache.commons.configuration.BaseConfiguration
Basic configuration classe. Stores the configuration data but does not provide any load or save functions. If you want to load your Configuration from a file use PropertiesConfiguration or XmlConfiguration. This class extends normal Java properties by adding the possibility to use the same key many times concatenating the value strings instead of overwriting them.
Field Summary |
Fields inherited from class org.apache.commons.configuration.AbstractConfiguration |
END_TOKEN, EVENT_ADD_PROPERTY, EVENT_CLEAR, EVENT_CLEAR_PROPERTY, EVENT_SET_PROPERTY, START_TOKEN |
Constructor Summary | |
BaseConfiguration()
|
Method Summary | |
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 |
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 |
Methods inherited from class org.apache.commons.configuration.AbstractConfiguration |
addProperty, clearProperty, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDefaultListDelimiter, getDelimiter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getKeys, getList, getList, getListDelimiter, getLong, getLong, getLong, getProperties, getProperties, getShort, getShort, getShort, getString, getString, getStringArray, interpolate, interpolate, interpolateHelper, isDelimiterParsingDisabled, isThrowExceptionOnMissing, resolveContainerStore, setDefaultListDelimiter, setDelimiter, setDelimiterParsingDisabled, setListDelimiter, setProperty, setThrowExceptionOnMissing, subset |
Methods inherited from class org.apache.commons.configuration.event.EventSource |
addConfigurationListener, clearConfigurationListeners, createEvent, fireEvent, getConfigurationListeners, isDetailEvents, removeConfigurationListener, setDetailEvents |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BaseConfiguration()
Method Detail |
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 mapping
public boolean isEmpty()
isEmpty
in interface Configuration
isEmpty
in class AbstractConfiguration
true
if Configuration is empty,
false
otherwise.public boolean containsKey(String key)
containsKey
in interface Configuration
containsKey
in class AbstractConfiguration
key
- the configuration key
true
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()
clear
in interface Configuration
clear
in class AbstractConfiguration
public Iterator getKeys()
getKeys
in interface Configuration
getKeys
in class AbstractConfiguration
public Object clone()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |