public class QueryParameterDef
extends java.lang.Object
QueryParameter
must
fit. These are typically defined statically in
Query
subclasses and collected into
Definitions
which get passed to the super
Query constructor.
Modifier and Type | Field and Description |
---|---|
java.lang.String |
name
name of this parameter.
|
boolean |
optional
whether or not this
QueryParameter can be omitted or its
value null. |
java.lang.Class |
type
type of this parameter.
|
Constructor and Description |
---|
QueryParameterDef(java.lang.String name,
java.lang.Class type,
boolean optional)
main constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
errorIfInvalid(ome.parameters.QueryParameter parameter)
validation method called by
Query.checkParameters() . |
public final java.lang.String name
query parameters
with an equal
name
.public final java.lang.Class type
QueryParameter.value
public final boolean optional
QueryParameter
can be omitted or its
value
null.public QueryParameterDef(java.lang.String name, java.lang.Class type, boolean optional)
public void errorIfInvalid(ome.parameters.QueryParameter parameter)
Query.checkParameters()
. Subclasses
should be very careful to call super.errorIfInvalid.parameter
- Parameter with a matching name to be validated.