abstract class BaseWebConfiguration extends AbstractConfiguration
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.
END_TOKEN, EVENT_ADD_PROPERTY, EVENT_CLEAR, EVENT_CLEAR_PROPERTY, EVENT_READ_PROPERTY, EVENT_SET_PROPERTY, START_TOKEN
Constructor and Description |
---|
BaseWebConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected void |
addPropertyDirect(java.lang.String key,
java.lang.Object obj)
Adds a property to this configuration.
|
void |
clearProperty(java.lang.String key)
Removes the property with the given key.
|
boolean |
containsKey(java.lang.String key)
Checks whether the specified key is stored in this configuration.
|
protected java.lang.Object |
handleDelimiters(java.lang.Object value)
Takes care of list delimiters in property values.
|
boolean |
isEmpty()
Checks if this configuration is empty.
|
addErrorLogListener, addProperty, clear, clearPropertyDirect, createInterpolator, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDefaultListDelimiter, getDelimiter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getKeys, 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, clone, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEvents
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProperty
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(java.lang.String key)
containsKey
in interface Configuration
containsKey
in class AbstractConfiguration
key
- the keypublic void clearProperty(java.lang.String key)
clearProperty
in interface Configuration
clearProperty
in class AbstractConfiguration
key
- the key of the property to be removedjava.lang.UnsupportedOperationException
- because this operation is not
allowedprotected void addPropertyDirect(java.lang.String key, java.lang.Object obj)
addPropertyDirect
in class AbstractConfiguration
key
- the key of the propertyobj
- the value to be addedjava.lang.UnsupportedOperationException
- because this operation is not
allowedprotected java.lang.Object handleDelimiters(java.lang.Object value)
value
- the property value to be examined