public class BasicPropertyContainer extends java.lang.Object implements PropertyContainer
Modifier and Type | Field and Description |
---|---|
(package private) PropertyContainer |
_defaults
The default values, if applicable.
|
(package private) java.util.HashMap |
_mapping
The mapping from keys to values.
|
Constructor and Description |
---|
BasicPropertyContainer()
A property container with no defaults.
|
BasicPropertyContainer(PropertyContainer defaults)
A property container with no defaults.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getProperty(java.lang.String key)
Return the property corresponding to
the given key, or null if no such property
exists.
|
java.util.Iterator |
properties()
Return a Iterator.
|
java.util.Iterator |
propertyNames()
Return an iteration of the names of the properties.
|
void |
removeAllProperties()
Remove all properties.
|
void |
setProperty(java.lang.String key,
java.lang.Object value)
Set the property corresponding to
the given key.
|
PropertyContainer _defaults
java.util.HashMap _mapping
public BasicPropertyContainer()
public BasicPropertyContainer(PropertyContainer defaults)
defaults
- The defaults.public java.lang.Object getProperty(java.lang.String key)
getProperty
in interface PropertyContainer
setProperty(String, Object)
public void setProperty(java.lang.String key, java.lang.Object value)
setProperty
in interface PropertyContainer
getProperty(String)
public void removeAllProperties()
public java.util.Iterator properties()
public java.util.Iterator propertyNames()
propertyNames
in interface PropertyContainer