|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Useful interface to check for consistancy of implementation of a generalised Property holding facility on any given class.
Field Summary | |
static java.lang.String |
ANY_VALUE_STRING
|
static java.lang.Boolean[] |
BOOLEAN_ARRAY
Keeps memory use down for boolean options |
Method Summary | |
void |
clearProperties()
Clear all values and keys |
java.lang.Object |
getPossibleValuesForProperty(java.lang.String name)
What possible values may this property take on. |
java.lang.Object |
getProperty(java.lang.String key)
|
java.lang.String |
getPropertyDescription(java.lang.String name)
A brief description of the purpose of this property. |
java.util.Enumeration |
getPropertyNames()
The names of the properties that may be set. |
void |
setProperty(java.lang.String key,
java.lang.Object val)
Matching getProperty() method for the setProperty() method. |
Field Detail |
public static final java.lang.String ANY_VALUE_STRING
public static final java.lang.Boolean[] BOOLEAN_ARRAY
Method Detail |
public java.lang.Object getProperty(java.lang.String key)
key
- the id of the property to set a value forval
- the value to set the property topublic void setProperty(java.lang.String key, java.lang.Object val) throws InvalidOptionException
key
- which property to retrieve the value forpublic java.lang.Object getPossibleValuesForProperty(java.lang.String name) throws InvalidOptionException
null
return value indicates any value. A java.lang.String
matching ANY_VALUE_STRING
indicates that the value may
be any string. Otherwise it will return an array of valid values.key
- Property to get possible values fornull
ANY_VALUE_STRING
Object[]
The possible values for this property. (Usually
a String[])
ANY_VALUE_STRING
,
setProperty
public java.lang.String getPropertyDescription(java.lang.String name) throws InvalidOptionException
name
- Property to be describedgetPossibleValuesForProperty
public java.util.Enumeration getPropertyNames()
getPossibleValuesForProperty
public void clearProperties()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |