public abstract class JsonQueryERElement extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.informationsystem.base.reference.AccessType |
accessType |
protected org.gcube.informationsystem.base.reference.Direction |
direction |
protected boolean |
entryPoint |
protected Set<String> |
fieldNamesToRemove |
protected org.gcube.com.fasterxml.jackson.databind.JsonNode |
jsonNode |
protected org.gcube.com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected String |
type |
| Constructor and Description |
|---|
JsonQueryERElement(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonQuery,
org.gcube.informationsystem.base.reference.AccessType accessType) |
| Modifier and Type | Method and Description |
|---|---|
protected StringBuffer |
addCondition(QueryConditionalOperator queryConditionalOperator,
StringBuffer key,
StringBuffer value) |
protected StringBuffer |
addConstraints(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode,
QueryLogicalOperator queryLogicalOperator,
String fieldNamePrefix) |
abstract StringBuffer |
analize(StringBuffer stringBuffer) |
protected StringBuffer |
evaluateNode(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode,
String fieldName,
String fieldNamePrefix) |
org.gcube.informationsystem.base.reference.Direction |
getDirection() |
protected StringBuffer |
getKey(String fieldName,
String fieldNamePrefix) |
String |
getType() |
protected StringBuffer |
getValue(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode) |
boolean |
isEntryPoint() |
void |
setDirection(org.gcube.informationsystem.base.reference.Direction direction) |
void |
setEntryPoint(boolean entryPoint) |
static void |
validateType(String type,
org.gcube.informationsystem.base.reference.AccessType requiredAccessType) |
protected final org.gcube.com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected final String type
protected final org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode
protected final org.gcube.informationsystem.base.reference.AccessType accessType
protected org.gcube.informationsystem.base.reference.Direction direction
protected boolean entryPoint
public JsonQueryERElement(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonQuery,
org.gcube.informationsystem.base.reference.AccessType accessType)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static void validateType(String type, org.gcube.informationsystem.base.reference.AccessType requiredAccessType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String getType()
public org.gcube.informationsystem.base.reference.Direction getDirection()
public void setDirection(org.gcube.informationsystem.base.reference.Direction direction)
public boolean isEntryPoint()
public void setEntryPoint(boolean entryPoint)
public abstract StringBuffer analize(StringBuffer stringBuffer) throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException, org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected StringBuffer addConstraints(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode, QueryLogicalOperator queryLogicalOperator, String fieldNamePrefix) throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException
org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryExceptionprotected StringBuffer evaluateNode(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode, String fieldName, String fieldNamePrefix) throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException
org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryExceptionprotected StringBuffer addCondition(QueryConditionalOperator queryConditionalOperator, StringBuffer key, StringBuffer value)
protected StringBuffer getKey(String fieldName, String fieldNamePrefix)
protected StringBuffer getValue(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)
Copyright © 2022. All Rights Reserved.