net.sf.jame.core.config
Class SingleConfigElement<T extends ConfigElement>
java.lang.Object
net.sf.jame.core.config.AbstractConfigElement
net.sf.jame.core.config.ValueConfigElement<T>
net.sf.jame.core.config.SingleConfigElement<T>
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, ConfigElement
public class SingleConfigElement<T extends ConfigElement>
- extends ValueConfigElement<T>
Value element.
- Author:
- Andrea Medeghini
- See Also:
- Serialized Form
|
Constructor Summary |
SingleConfigElement(java.lang.String configElementId)
Constructs a new element. |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
SingleConfigElement
public SingleConfigElement(java.lang.String configElementId)
- Constructs a new element.
setContext
public void setContext(ConfigContext context)
- Description copied from class:
AbstractConfigElement
- Sets the configuration context.
- Specified by:
setContext in interface ConfigElement- Overrides:
setContext in class AbstractConfigElement
- Parameters:
context - the configuration context to set.- See Also:
AbstractConfigElement.setContext(net.sf.jame.core.config.ConfigContext)
setValue
public void setValue(T value)
- Ses the value.
- Overrides:
setValue in class ValueConfigElement<T extends ConfigElement>
- Parameters:
value - the value to set.
clone
public SingleConfigElement<T> clone()
- Specified by:
clone in interface ConfigElement- Specified by:
clone in class ValueConfigElement<T extends ConfigElement>
- Returns:
- See Also:
Object.clone()
copyFrom
public void copyFrom(ConfigElement source)
- See Also:
ConfigElement.copyFrom(net.sf.jame.core.config.ConfigElement)