Package ome.services.query
Class QueryParameterDef
- java.lang.Object
-
- ome.services.query.QueryParameterDef
-
- Direct Known Subclasses:
CollectionQueryParameterDef
public class QueryParameterDef extends java.lang.Objectdefinition of a slot into which aQueryParametermust fit. These are typically defined statically inQuerysubclasses and collected intoDefinitionswhich 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 voiderrorIfInvalid(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 parameterswith 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 thisQueryParametercan be omitted or itsvaluenull.
-
-
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.
-
-