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(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(QueryParameter parameter)
Query.checkParameters()
. Subclasses
should be very careful to call super.errorIfInvalid.parameter
- Parameter with a matching name to be validated.
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.