public class JsonQueryConsistsOf extends JsonQueryRelation
Translates a JSON query subtree representing a ConsistsOf relation.
Author:
Luca Frosini (ISTI - CNR)
  • Field Details

    • requestedResourceType

      protected String requestedResourceType
      The requested resource schema type.
  • Constructor Details

    • JsonQueryConsistsOf

      public JsonQueryConsistsOf(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonQuery) throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      Creates a new JsonQueryConsistsOf instance for the specified JSON query subtree.
      Parameters:
      jsonQuery - the JSON query node
      Throws:
      org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException - if schema validation fails
      org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException - on database or lookup error
  • Method Details

    • getRequestedResourceType

      public String getRequestedResourceType()
      Returns the requested resource schema type.
      Returns:
      the requested resource schema type
    • setRequestedResourceType

      public void setRequestedResourceType(String requestedResourceType)
      Sets the requested resource schema type.
      Parameters:
      requestedResourceType - the requested resource schema type to set
    • getSpecificMatchQuery

      protected StringBuffer getSpecificMatchQuery(List<JsonQueryElement> childrenBreadcrumb) throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      Description copied from class: JsonQueryElement
      Generates the specific MATCH query snippet for this element's subclass (subclass hook).
      Specified by:
      getSpecificMatchQuery in class JsonQueryElement
      Parameters:
      childrenBreadcrumb - the list of child query elements visited
      Returns:
      the MATCH query snippet string buffer
      Throws:
      org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException - if schema validation fails
      org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException - on database error