|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface provides a comprehensive description of a set of parameters including parameter names, parameter defaults, valid parameter value ranges, etc. The parameter names should be used in a case retentive manner. i.e. all lookups and comparisons are case-insensitive but any request for a parameter name should return the original name with the case preserved.
ParameterList| Field Summary | |
static Object |
NO_PARAMETER_DEFAULT
An Object that signifies that a parameter has
no default value. |
| Method Summary | |
String[] |
getEnumeratedParameterNames()
Return an array of the names of all parameters the type of which is EnumeratedParameter. |
EnumeratedParameter[] |
getEnumeratedParameterValues(String parameterName)
Return an array of EnumeratedParameter objects
corresponding to the parameter with the specified name. |
int |
getNumParameters()
Returns the total number of parameters. |
Class[] |
getParamClasses()
Returns an array of Classes that describe the types
of parameters. |
Object[] |
getParamDefaults()
Returns an array of Objects that define the default
values of the parameters. |
Object |
getParamDefaultValue(String parameterName)
Returns the default value of a specified parameter. |
String[] |
getParamNames()
Returns an array of Strings that are the
names of the parameters associated with this descriptor. |
Range |
getParamValueRange(String parameterName)
Returns the Range that represents the range of valid
values for the specified parameter. |
boolean |
isParameterValueValid(String parameterName,
Object value)
Checks to see whether the specified parameter can take on the specified value. |
| Field Detail |
public static final Object NO_PARAMETER_DEFAULT
Object that signifies that a parameter has
no default value.| Method Detail |
public int getNumParameters()
public Class[] getParamClasses()
Classes that describe the types
of parameters. If there are no parameters, this method returns
null.public String[] getParamNames()
Strings that are the
names of the parameters associated with this descriptor. If there
are no parameters, this method returns null.public Object[] getParamDefaults()
Objects that define the default
values of the parameters. Since null might be a
valid parameter value, the NO_PARAMETER_DEFAULT
static Object is used to indicate that a parameter
has no default value. If there are no parameters, this method
returns null.public Object getParamDefaultValue(String parameterName)
null. If a parameter has no default
value, this method returns NO_PARAMETER_DEFAULT.parameterName - The name of the parameter whose default
value is queried.parameterName is null
or if the parameter does not exist.public Range getParamValueRange(String parameterName)
Range that represents the range of valid
values for the specified parameter. Returns null if
the parameter can take on any value or if the valid values are
not representable as a Range.parameterName - The name of the parameter whose valid range
of values is to be determined.parameterName is null
or if the parameter does not exist.public String[] getEnumeratedParameterNames()
EnumeratedParameter.null if there
are no parameters with EnumeratedParameter type.public EnumeratedParameter[] getEnumeratedParameterValues(String parameterName)
EnumeratedParameter objects
corresponding to the parameter with the specified name.parameterName - The name of the parameter for which the
EnumeratedParameter array is to be returned.EnumeratedParameter objects
representing the range of values for the named parameter.parameterName is null
or if the parameter does not exist.parameterName is
a parameter the class of which is not a subclass of
EnumeratedParameter.
public boolean isParameterValueValid(String parameterName,
Object value)
parameterName - The name of the parameter for which the
validity check is to be performed.parameterName is null
or if the parameter does not exist.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||