|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sodius.mdw.core.util.AbstractPropertySet
public abstract class AbstractPropertySet
Skeletal implementation of the PropertySet interface.
Clients may subclass this class.
| Constructor Summary | |
|---|---|
AbstractPropertySet()
|
|
| Method Summary | |
|---|---|
boolean |
getProperty(String name,
boolean defaultValue)
Returns the value mapped to the specified property name, or the specified default value if the property is not found or if it cannot be treated as a boolean. |
float |
getProperty(String name,
float defaultValue)
Returns the value mapped to the specified property name, or the specified default value if the property is not found or if it cannot be treated as a float. |
int |
getProperty(String name,
int defaultValue)
Returns the value mapped to the specified property name, or the specified default value if the property is not found or if it cannot be treated as a int. |
String |
getProperty(String name,
String defaultValue)
Returns the value mapped to the specified property name, or the specified default value if the property is not found or if it cannot be treated as a String. |
void |
setProperty(String name,
boolean value)
Associates the specified value with a property name. |
void |
setProperty(String name,
float value)
Associates the specified value with a property name. |
void |
setProperty(String name,
int value)
Associates the specified value with a property name. |
void |
setProperty(String name,
String value)
Associates the specified value with a property name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sodius.mdw.core.util.PropertySet |
|---|
getProperty, getPropertyNames, setProperty |
| Constructor Detail |
|---|
public AbstractPropertySet()
| Method Detail |
|---|
public String getProperty(String name,
String defaultValue)
PropertySetString.
getProperty in interface PropertySetname - the property namedefaultValue - the default value to use if the property is not found
public int getProperty(String name,
int defaultValue)
PropertySetint.
getProperty in interface PropertySetname - the property namedefaultValue - the default value to use if the property is not found
public boolean getProperty(String name,
boolean defaultValue)
PropertySetboolean.
getProperty in interface PropertySetname - the property namedefaultValue - the default value to use if the property is not found
public float getProperty(String name,
float defaultValue)
PropertySetfloat.
getProperty in interface PropertySetname - the property namedefaultValue - the default value to use if the property is not found
public void setProperty(String name,
String value)
PropertySet
setProperty in interface PropertySetname - the property name.value - the property value (can be null)
public void setProperty(String name,
int value)
PropertySet
setProperty in interface PropertySetname - the property name.value - the property value
public void setProperty(String name,
boolean value)
PropertySet
setProperty in interface PropertySetname - the property name.value - the property value
public void setProperty(String name,
float value)
PropertySet
setProperty in interface PropertySetname - the property name.value - the property value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||