Package org.hcjf.layers.query.model
Class QueryField
- java.lang.Object
-
- org.hcjf.layers.query.model.QueryParameter
-
- org.hcjf.layers.query.model.QueryField
-
- All Implemented Interfaces:
java.lang.Comparable<QueryParameter>,QueryComponent
- Direct Known Subclasses:
QueryOrderField,QueryReturnField
public class QueryField extends 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(QueryResource resource)Verify if the query parameter make reference to the specified resource.-
Methods inherited from class org.hcjf.layers.query.model.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(QueryResource resource)
Description copied from class:QueryParameterVerify if the query parameter make reference to the specified resource.- Specified by:
verifyResourcein classQueryParameter- Parameters:
resource- Resource instance to test.- Returns:
- Returns true if the parameter make reference to the specified resource and false in the otherwise.
-
-