Class QueryField

    • Constructor Summary

      Constructors 
      Constructor Description
      QueryField​(Query query, java.lang.String fieldPath)  
    • Method Summary

      Modifier and Type Method Description
      <R> R resolve​(java.lang.Object instance)
      This method resolves the introspection over the instance using the information into the query field.
      boolean verifyResource​(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

      • QueryField

        public QueryField​(Query query,
                          java.lang.String fieldPath)
    • Method Detail

      • resolve

        public <R> R resolve​(java.lang.Object instance)
        This method resolves the introspection over the instance using the information into the query field.
        Type Parameters:
        R - Expected data type.
        Parameters:
        instance - Instance to resolve the introspection.
        Returns:
        Introspection result.
      • verifyResource

        public boolean verifyResource​(QueryResource resource)
        Description copied from class: QueryParameter
        Verify if the query parameter make reference to the specified resource.
        Specified by:
        verifyResource in class QueryParameter
        Parameters:
        resource - Resource instance to test.
        Returns:
        Returns true if the parameter make reference to the specified resource and false in the otherwise.