|
||||||||||
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.web.BaseWebConfiguration
abstract class BaseWebConfiguration
An abstract base class for all web configurations.
This class implements common functionality used by all web based
configurations. E.g. some methods are not supported by configurations of this
type, so they throw a UnsupportedOperationException
exception.
Field Summary |
---|
Fields inherited from class org.apache.commons.configuration.AbstractConfiguration |
---|
END_TOKEN, EVENT_ADD_PROPERTY, EVENT_CLEAR, EVENT_CLEAR_PROPERTY, EVENT_READ_PROPERTY, EVENT_SET_PROPERTY, START_TOKEN |
Constructor Summary | |
---|---|
BaseWebConfiguration()
|
Method Summary | |
---|---|
protected void |
addPropertyDirect(String key,
Object obj)
Adds a property to this configuration. |
void |
clearProperty(String key)
Removes the property with the given key. |
boolean |
containsKey(String key)
Checks whether the specified key is stored in this configuration. |
protected Object |
handleDelimiters(Object value)
Takes care of list delimiters in property values. |
boolean |
isEmpty()
Checks if this configuration is empty. |
Methods inherited from class org.apache.commons.configuration.event.EventSource |
---|
addConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, clone, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEvents |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.configuration.Configuration |
---|
getProperty |
Constructor Detail |
---|
BaseWebConfiguration()
Method Detail |
---|
public boolean isEmpty()
getKeys()
method (which must be defined by concrete
sub classes) to find out whether properties exist.
isEmpty
in interface Configuration
isEmpty
in class AbstractConfiguration
public boolean containsKey(String key)
containsKey
in interface Configuration
containsKey
in class AbstractConfiguration
key
- the key
public void clearProperty(String key)
clearProperty
in interface Configuration
clearProperty
in class AbstractConfiguration
key
- the key of the property to be removed
UnsupportedOperationException
- because this operation is not
allowedprotected void addPropertyDirect(String key, Object obj)
addPropertyDirect
in class AbstractConfiguration
key
- the key of the propertyobj
- the value to be added
UnsupportedOperationException
- because this operation is not
allowedprotected Object handleDelimiters(Object value)
value
- the property value to be examined
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |