Class PathConstraintLookup


  • public class PathConstraintLookup
    extends PathConstraint
    Representation of a lookup constraint in the PathQuery
    Author:
    Matthew Wakeling
    • 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 to
        value - the value to look up
        extraValue - the extra value (for instance, the organism name)
        Throws:
        java.lang.NullPointerException - if path or value are null
        java.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 class java.lang.Object