|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.util.BasicPropertyContainer
public class BasicPropertyContainer
An object that can be annotated with arbitrary objects whose keys are strings.
Field Summary | |
---|---|
(package private) PropertyContainer |
_defaults
The default values, if applicable. |
(package private) java.util.HashMap |
_mapping
The mapping from keys to values. |
Constructor Summary | |
---|---|
BasicPropertyContainer()
A property container with no defaults. |
|
BasicPropertyContainer(PropertyContainer defaults)
A property container with no defaults. |
Method Summary | |
---|---|
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()
|
java.util.Iterator |
propertyNames()
Return an iteration of the names of the properties |
void |
removeAllProperties()
|
void |
setProperty(java.lang.String key,
java.lang.Object value)
Set the property corresponding to the given key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
PropertyContainer _defaults
java.util.HashMap _mapping
Constructor Detail |
---|
public BasicPropertyContainer()
public BasicPropertyContainer(PropertyContainer defaults)
Method Detail |
---|
public java.lang.Object getProperty(java.lang.String key)
getProperty
in interface PropertyContainer
public void setProperty(java.lang.String key, java.lang.Object value)
setProperty
in interface PropertyContainer
public void removeAllProperties()
public java.util.Iterator properties()
public java.util.Iterator propertyNames()
propertyNames
in interface PropertyContainer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |