ome.services.query
Class CollectionQueryParameterDef

java.lang.Object
  extended by ome.services.query.QueryParameterDef
      extended by ome.services.query.CollectionQueryParameterDef

public class CollectionQueryParameterDef
extends QueryParameterDef

extension of QueryParameterDef which restricts the type to a Collection, and specifies the element types of that Collection. Also overrides validation to check that type.

Since:
OMERO 3.0
Version:
1.0 (Internal version: $Rev: 1167 $ $Date: 2006-12-15 10:39:34 +0000 (Fri, 15 Dec 2006) $)
Author:
Josh Moore, josh.moore@gmx.de

Field Summary
 Class elementType
           
 
Fields inherited from class ome.services.query.QueryParameterDef
name, optional, type
 
Constructor Summary
CollectionQueryParameterDef(String name, boolean optional, Class elementType)
           
 
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

elementType

public Class elementType
Constructor Detail

CollectionQueryParameterDef

public CollectionQueryParameterDef(String name,
                                   boolean optional,
                                   Class elementType)
Method Detail

errorIfInvalid

public void errorIfInvalid(ome.parameters.QueryParameter parameter)
Description copied from class: QueryParameterDef
validation method called by Query.checkParameters(). Subclasses should be very careful to call super.errorIfInvalid.

Overrides:
errorIfInvalid in class QueryParameterDef
Parameters:
parameter - Parameter with a matching name to be validated.


OmeroJava Api

Version: Beta-4.2.0-r7571-b29

Copyright © 2009 The University of Dundee. All Rights Reserved.