| java.util.Properties org.ozoneDB.util.EnhProperties
All known Subclasses: org.ozoneDB.Setup,
EnhProperties | public class EnhProperties extends Properties (Code) | | EnhProperties has methods to store/update the value of a property to handle
such dynamic properties.
In addition the Properties EnhProperties can hold not only String properties
but most of other primitive types and raw objects. Non-string properties are
internaly stored as Strings.
Setup extends java.util.Properties. So the system properties can be used as
defaults.
author: SMB version: $Revision: 1.1 $Date: 2001/12/18 10:31:31 $ |
Field Summary | |
protected EnhObservable | observable An Observable object that is responsible for this properties. |
Method Summary | |
public void | addObserver(Observer _observer) | public void | addProperties(Properties properties, String keyPrefix) | public boolean | booleanProperty(String _key, boolean _default) | public boolean | hasChanged() | public int | intProperty(String _key, int _default) | public long | longProperty(String _key, long _default) | public void | notifyObservers() | public void | print(PrintStream out, String keyPrefix, String printPrefix) | public Object | property(String _key, Object _default) | public void | removeObserver(Observer _observer) | public void | setBooleanProperty(String _key, boolean _val) | public void | setIntProperty(String _key, int _val) | public void | setLongProperty(String _key, long _val) | public void | setProperty(String _key, Object _val) | public synchronized void | setStringProperty(String _key, String _val) | public String | stringProperty(String _key, String _default) | public DxCollection | stringsProperty(String _key, String _default) |
observable | protected EnhObservable observable(Code) | | An Observable object that is responsible for this properties. Directly
extending the class is not possible because it already extends Properties.
|
EnhProperties | public EnhProperties()(Code) | | |
addProperties | public void addProperties(Properties properties, String keyPrefix)(Code) | | Parameters: properties - Parameters: keyPrefix - |
booleanProperty | public boolean booleanProperty(String _key, boolean _default)(Code) | | Parameters: _key - Parameters: _default - The default value to use if no property is found. |
hasChanged | public boolean hasChanged()(Code) | | |
intProperty | public int intProperty(String _key, int _default)(Code) | | Parameters: _key - Parameters: _default - The default value to use if no property is found. |
longProperty | public long longProperty(String _key, long _default)(Code) | | Parameters: _key - Parameters: _default - The default value to use if no property is found. |
notifyObservers | public void notifyObservers()(Code) | | |
property | public Object property(String _key, Object _default)(Code) | | Parameters: _key - Parameters: _default - The default value to use if no property is found. |
setBooleanProperty | public void setBooleanProperty(String _key, boolean _val)(Code) | | Parameters: _val - Parameters: _key - |
setIntProperty | public void setIntProperty(String _key, int _val)(Code) | | Parameters: _val - Parameters: _key - |
setLongProperty | public void setLongProperty(String _key, long _val)(Code) | | Parameters: _val - Parameters: _key - |
setProperty | public void setProperty(String _key, Object _val)(Code) | | Parameters: _val - Parameters: _key - |
setStringProperty | public synchronized void setStringProperty(String _key, String _val)(Code) | | Parameters: _val - Parameters: _key - |
stringProperty | public String stringProperty(String _key, String _default)(Code) | | Parameters: _key - Parameters: _default - The default value to use if no property is found. |
stringsProperty | public DxCollection stringsProperty(String _key, String _default)(Code) | | Parameters: _key - Parameters: _default - The default value to use if no property is found. |
|
|