|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PropertySet
Represents a set of properties.
Clients may implement this interface.
| Method Summary | |
|---|---|
Object |
getProperty(String name)
Returns the value mapped to the specified property name. |
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. |
Set<String> |
getPropertyNames()
Returns the actual property names defined in this set. |
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,
Object value)
Associates the specified value with a property name. |
void |
setProperty(String name,
String value)
Associates the specified value with a property name. |
| Method Detail |
|---|
Set<String> getPropertyNames()
Object getProperty(String name)
null if the property is not defined or if it maps to null.
name - the property name
String getProperty(String name,
String defaultValue)
String.
name - the property namedefaultValue - the default value to use if the property is not found
int getProperty(String name,
int defaultValue)
int.
name - the property namedefaultValue - the default value to use if the property is not found
boolean getProperty(String name,
boolean defaultValue)
boolean.
name - the property namedefaultValue - the default value to use if the property is not found
float getProperty(String name,
float defaultValue)
float.
name - the property namedefaultValue - the default value to use if the property is not found
void setProperty(String name,
Object value)
name - the property name.value - the property value (can be null)
void setProperty(String name,
String value)
name - the property name.value - the property value (can be null)
void setProperty(String name,
int value)
name - the property name.value - the property value
void setProperty(String name,
boolean value)
name - the property name.value - the property value
void setProperty(String name,
float value)
name - the property name.value - the property value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||