public class QueryParameterDef extends 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 |
---|---|
String |
name
name of this parameter.
|
boolean |
optional
whether or not this
QueryParameter can be omitted or its
value null. |
Class |
type
type of this parameter.
|
Constructor and Description |
---|
QueryParameterDef(String name,
Class type,
boolean optional)
main constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
errorIfInvalid(QueryParameter parameter)
validation method called by
Query.checkParameters() . |
public final String name
query parameters
with an equal
name
.public final Class type
QueryParameter.value
public final boolean optional
QueryParameter
can be omitted or its
value
null.public void errorIfInvalid(QueryParameter parameter)
Query.checkParameters()
. Subclasses
should be very careful to call super.errorIfInvalid.parameter
- Parameter with a matching name to be validated.
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.