Class 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
    • Field Detail

      • elementType

        public java.lang.Class elementType
    • Constructor Detail

      • CollectionQueryParameterDef

        public CollectionQueryParameterDef​(java.lang.String name,
                                           boolean optional,
                                           java.lang.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.