Package org.intermine.pathquery
Class PathConstraintMultiValue
- java.lang.Object
-
- org.intermine.pathquery.PathConstraint
-
- org.intermine.pathquery.PathConstraintMultiValue
-
- Direct Known Subclasses:
PathConstraintMultitype
,PathConstraintRange
public class PathConstraintMultiValue extends PathConstraint
Representation of a constraint to a collection of values in a query.- Author:
- Matthew Wakeling
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Set<ConstraintOp>
VALID_OPS
List of valid ops for this type of constraint-
Fields inherited from class org.intermine.pathquery.PathConstraint
op, path
-
-
Constructor Summary
Constructors Constructor Description PathConstraintMultiValue(java.lang.String path, ConstraintOp op, java.util.Collection<java.lang.String> values)
Constructs a new PathConstraintMultiValue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>
getValues()
Returns the value collection that the constraint is constraining to.java.lang.String
toString()
-
Methods inherited from class org.intermine.pathquery.PathConstraint
getExtraValue, getIds, getOp, getPath, getType, getValue, getValues
-
-
-
-
Field Detail
-
VALID_OPS
public static final java.util.Set<ConstraintOp> VALID_OPS
List of valid ops for this type of constraint
-
-
Constructor Detail
-
PathConstraintMultiValue
public PathConstraintMultiValue(java.lang.String path, ConstraintOp op, java.util.Collection<java.lang.String> values)
Constructs a new PathConstraintMultiValue. The path should be a normal path expression with dots separating the parts. Do not use colons to represent outer joins, and do not use square brackets to represent subclass constraints. The path will be checked for format, but can only be verified once inside a PathQuery object by the PathQuery.verifyQuery() method. This object is used to form a constraint to multiple values.- Parameters:
path
- the path that the constraint is attached toop
- the type of operationvalues
- the collection of values to constrain to- Throws:
java.lang.NullPointerException
- if path, op, or ids are nulljava.lang.IllegalArgumentException
- if the path contains colons or square brackets, or is otherwise in a bad format, or if the op is invalid for this constraint type
-
-