Package org.hcjf.layers.query
Class Query.QueryField
- java.lang.Object
-
- org.hcjf.layers.query.Query.QueryParameter
-
- org.hcjf.layers.query.Query.QueryField
-
- All Implemented Interfaces:
java.lang.Comparable<Query.QueryParameter>,Query.QueryComponent
- Direct Known Subclasses:
Query.QueryOrderField,Query.QueryReturnField
- Enclosing class:
- Query
public static class Query.QueryField extends Query.QueryParameter
This class represents any kind of query fields.
-
-
Constructor Summary
Constructors Constructor Description QueryField(Query query, java.lang.String fieldPath)
-
Method Summary
Modifier and Type Method Description <R> Rresolve(java.lang.Object instance)This method resolves the introspection over the instance using the information into the query field.booleanverifyResource(Query.QueryResource resource)Verify if the query parameter make reference to the specified resource.-
Methods inherited from class org.hcjf.layers.query.Query.QueryParameter
compareTo, equals, getFieldPath, getOriginalValue, getResource, isUnderlying, toString
-
-
-
-
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.QueryParameterVerify if the query parameter make reference to the specified resource.- Specified by:
verifyResourcein classQuery.QueryParameter- Parameters:
resource- Resource instance to test.- Returns:
- Returns true if the parameter make reference to the specified resource and false in the otherwise.
-
-