|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Configuration information for a single IWorker.
| Method Summary | |
java.lang.Object |
getProperty(java.lang.String name)
Retrieves the value of a named property. |
boolean |
getPropertyAsBoolean(java.lang.String name,
boolean defaultValue)
Retrieves the named property as a boolean; if the property exists but cannot be converted into a boolean, returns the default. |
org.writersforge.bellows.Datum |
getPropertyAsDatum(java.lang.String name,
org.writersforge.bellows.Datum defaultValue)
Retrieves the named property as a Datum; if the property cannot be converted into a Datum, returns the default. |
java.util.Map |
getPropertyAsMap(java.lang.String name,
java.util.Map defaultValue)
Retrieves the named property as a Map; if the property cannot be converted into a Map, returns the default. |
java.lang.Number |
getPropertyAsNumber(java.lang.String name,
java.lang.Number defaultValue)
Retrieves the named property as an Number; if the property exists but cannot be converted into an Number, returns the default. |
java.lang.String |
getPropertyAsString(java.lang.String name,
java.lang.String defaultValue)
Retrieves the named property as a String; if the property is not already a String, calls toString() on it before returning it. |
java.lang.String[] |
getPropertyNames()
Retrieves the names of all properties currently set on this holder. |
| Method Detail |
public java.lang.String[] getPropertyNames()
public java.lang.Object getProperty(java.lang.String name)
name - property name
public java.lang.String getPropertyAsString(java.lang.String name,
java.lang.String defaultValue)
toString() on it before returning it.
name - the name of the propertydefaultValue - value to return if property not found
public java.lang.Number getPropertyAsNumber(java.lang.String name,
java.lang.Number defaultValue)
name - the name of the propertydefaultValue - value to return if property not found
public boolean getPropertyAsBoolean(java.lang.String name,
boolean defaultValue)
true, or to "false"
or "no" for false.
name - the name of the propertydefaultValue - value to return if property not found
public java.util.Map getPropertyAsMap(java.lang.String name,
java.util.Map defaultValue)
name - the name of the propertydefaultValue - value to return if property not found
public org.writersforge.bellows.Datum getPropertyAsDatum(java.lang.String name,
org.writersforge.bellows.Datum defaultValue)
name - the name of the propertydefaultValue - value to return if property not found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||