|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.inria.oadymppac.utils.DefaultProperties
A property table reimplementation Basically support only String as Key Also use a HashTable => synchronized
Field Summary |
Fields inherited from interface fr.inria.oadymppac.utils.Properties |
logger |
Constructor Summary | |
DefaultProperties()
Default Constructor |
|
DefaultProperties(Properties properties)
Build a new Property table using the given properties as parent table |
Method Summary | |
Properties |
getProperties()
Return the property table |
java.lang.Object |
getProperty(java.lang.String property)
|
void |
setProperties(Properties properties)
Set the parent properties |
void |
setProperty(java.lang.String property,
java.lang.Object value)
Set a new value to a property If the property table does not exist, then it is created If the property was not previously defined, it is inserted into the table If the oproperty was already define, the current value is replaced by the new one. |
java.lang.String |
toString()
Display the contnet of the property table and recursively from its parent |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DefaultProperties()
public DefaultProperties(Properties properties)
properties
- the parent propety tableMethod Detail |
public void setProperty(java.lang.String property, java.lang.Object value)
setProperty
in interface Properties
Properties.setProperty(java.lang.String, java.lang.Object)
public java.lang.Object getProperty(java.lang.String property)
getProperty
in interface Properties
property
- the property name
Properties.getProperty(java.lang.String)
public Properties getProperties()
getProperties
in interface Properties
Properties.getProperties()
public void setProperties(Properties properties)
setProperties
in interface Properties
Properties.setProperties(fr.inria.oadymppac.utils.Properties)
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |