|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.services.query.QueryParameterDef
public class QueryParameterDef
definition of a slot into which a QueryParameter
must
fit. These are typically defined statically in
Query
subclasses and collected into
Definitions
which get passed to the super
Query constructor.
Field Summary | |
---|---|
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 Summary | |
---|---|
QueryParameterDef(String name,
Class type,
boolean optional)
main constructor. |
Method Summary | |
---|---|
void |
errorIfInvalid(ome.parameters.QueryParameter parameter)
validation method called by Query.checkParameters() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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.
Constructor Detail |
---|
public QueryParameterDef(String name, Class type, boolean optional)
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.