Class Query.QueryParameter

    • Constructor Summary

      Constructors 
      Constructor Description
      QueryParameter​(Query query, java.lang.String originalValue, java.lang.String value)  
    • Method Summary

      Modifier and Type Method Description
      int compareTo​(Query.QueryParameter o)
      Compare the string representation of both objects.
      boolean equals​(java.lang.Object obj)
      Compare the original value of the fields.
      java.lang.String getFieldPath()
      Returns the field path.
      java.lang.String getOriginalValue()
      Returns the original value.
      Query.QueryResource getResource()
      Returns the resource of this parameter.
      boolean isUnderlying()
      This method returns true if the component is underlying and false in the otherwise.
      java.lang.String toString()
      Return the original representation of the field.
      abstract boolean verifyResource​(Query.QueryResource resource)
      Verify if the query parameter make reference to the specified resource.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • QueryParameter

        public QueryParameter​(Query query,
                              java.lang.String originalValue,
                              java.lang.String value)
    • Method Detail

      • getResource

        public Query.QueryResource getResource()
        Returns the resource of this parameter.
        Returns:
        Resource of this parameter.
      • getFieldPath

        public java.lang.String getFieldPath()
        Returns the field path.
        Returns:
        Field path.
      • getOriginalValue

        public java.lang.String getOriginalValue()
        Returns the original value.
        Returns:
        Original value.
      • toString

        public java.lang.String toString()
        Return the original representation of the field.
        Overrides:
        toString in class java.lang.Object
        Returns:
        Original representation.
      • isUnderlying

        public boolean isUnderlying()
        This method returns true if the component is underlying and false in the otherwise.
        Specified by:
        isUnderlying in interface Query.QueryComponent
        Returns:
        Underlying value.
      • equals

        public boolean equals​(java.lang.Object obj)
        Compare the original value of the fields.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - Other field.
        Returns:
        True if the fields are equals.
      • compareTo

        public int compareTo​(Query.QueryParameter o)
        Compare the string representation of both objects.
        Specified by:
        compareTo in interface java.lang.Comparable<Query.QueryParameter>
        Parameters:
        o - Other object.
        Returns:
        Magnitude of the difference between both objects.
      • verifyResource

        public abstract boolean verifyResource​(Query.QueryResource resource)
        Verify if the query parameter make reference to the specified resource.
        Parameters:
        resource - Resource instance to test.
        Returns:
        Returns true if the parameter make reference to the specified resource and false in the otherwise.