Package ome.services.query
Class QueryParameterDef
- java.lang.Object
-
- ome.services.query.QueryParameterDef
-
- Direct Known Subclasses:
CollectionQueryParameterDef
public class QueryParameterDef extends java.lang.Object
definition of a slot into which aQueryParameter
must fit. These are typically defined statically inQuery
subclasses and collected intoDefinitions
which get passed to the superQuery constructor.
- Since:
- OMERO 3.0
-
-
Constructor Summary
Constructors Constructor Description QueryParameterDef(java.lang.String name, java.lang.Class type, boolean optional)
main constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
errorIfInvalid(ome.parameters.QueryParameter parameter)
validation method called byQuery.checkParameters()
.
-
-
-
Field Detail
-
name
public final java.lang.String name
name of this parameter. Will be compared to allquery parameters
with an equalname
.
-
type
public final java.lang.Class type
type of this parameter. Will restrict what values can be assigned toQueryParameter.value
-
optional
public final boolean optional
whether or not thisQueryParameter
can be omitted or itsvalue
null.
-
-
Method Detail
-
errorIfInvalid
public void errorIfInvalid(ome.parameters.QueryParameter parameter)
validation method called byQuery.checkParameters()
. Subclasses should be very careful to call super.errorIfInvalid.- Parameters:
parameter
- Parameter with a matching name to be validated.
-
-