Package org.intermine.pathquery
Class PathConstraintLookup
- java.lang.Object
-
- org.intermine.pathquery.PathConstraint
-
- org.intermine.pathquery.PathConstraintLookup
-
public class PathConstraintLookup extends PathConstraint
Representation of a lookup constraint in the PathQuery- Author:
- Matthew Wakeling
-
-
Field Summary
-
Fields inherited from class org.intermine.pathquery.PathConstraint
op, path
-
-
Constructor Summary
Constructors Constructor Description PathConstraintLookup(java.lang.String path, java.lang.String value, java.lang.String extraValue)
Constructs a new PathConstraintLookup.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExtraValue()
Returns the extra value for this constraint.java.lang.String
getValue()
Returns the lookup value for this constraint.java.lang.String
toString()
-
Methods inherited from class org.intermine.pathquery.PathConstraint
getExtraValue, getIds, getOp, getPath, getType, getValue, getValues
-
-
-
-
Constructor Detail
-
PathConstraintLookup
public PathConstraintLookup(java.lang.String path, java.lang.String value, java.lang.String extraValue)
Constructs a new PathConstraintLookup. 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 lookup constraint.- Parameters:
path
- the path that the constraint is attached tovalue
- the value to look upextraValue
- the extra value (for instance, the organism name)- Throws:
java.lang.NullPointerException
- if path or value are nulljava.lang.IllegalArgumentException
- if the path contains colons or square brackets, or is otherwise in a bad format
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Returns the lookup value for this constraint.- Returns:
- a String
-
getExtraValue
public java.lang.String getExtraValue()
Returns the extra value for this constraint.- Returns:
- a String
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-