Class Query.QueryField

    • Constructor Summary

      Constructors 
      Constructor Description
      QueryField​(Query query, java.lang.String fieldPath)  
    • 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​(Query.QueryResource resource)
        Description copied from class: Query.QueryParameter
        Verify if the query parameter make reference to the specified resource.
        Specified by:
        verifyResource in class Query.QueryParameter
        Parameters:
        resource - Resource instance to test.
        Returns:
        Returns true if the parameter make reference to the specified resource and false in the otherwise.