|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.pow2.resources.PropertyContainerImpl
Property container class.
Field Summary | |
protected org.apache.log4j.Category |
cat
Log4J category. |
protected Properties |
properties
properties table |
Constructor Summary | |
PropertyContainerImpl()
Constructor for the PropertyContainerImpl object |
Method Summary | |
void |
addProperty(Object value,
String token)
Add a property associated with a token name. |
Object |
getObject(String token)
Retrieve a value by a particular token. |
String |
getProperty(String token)
Retrieve a value by a particular token. |
String[] |
getPropertyKeys()
Retrieve all property keys currently in use. |
void |
removeProperty(String token)
Remove a value associated with a particular token. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.log4j.Category cat
protected Properties properties
Constructor Detail |
public PropertyContainerImpl()
Method Detail |
public void addProperty(Object value, String token)
addProperty
in interface PropertyContainer
value
- is an object that cannot be nulltoken
- is a key that can be used to retrieve the valuepublic String getProperty(String token)
getProperty
in interface PropertyContainer
token
- is a key that can be used to retrieve the value
public Object getObject(String token)
getObject
in interface PropertyContainer
token
- is a key that can be used to retrieve the value
public String[] getPropertyKeys()
getPropertyKeys
in interface PropertyContainer
public void removeProperty(String token)
removeProperty
in interface PropertyContainer
token
- is a key associated with a value that was added
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |