Class JsonQueryERElement

    • Field Detail

      • objectMapper

        protected final org.gcube.com.fasterxml.jackson.databind.ObjectMapper objectMapper
      • type

        protected final String type
      • jsonNode

        protected final org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode
      • accessType

        protected final org.gcube.informationsystem.base.reference.AccessType accessType
      • fieldNamesToRemove

        protected final Set<String> fieldNamesToRemove
      • direction

        protected org.gcube.informationsystem.base.reference.Direction direction
      • entryPoint

        protected boolean entryPoint
    • Constructor Detail

      • JsonQueryERElement

        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
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
    • Method Detail

      • validateType

        public 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
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getType

        public String getType()
      • getDirection

        public org.gcube.informationsystem.base.reference.Direction getDirection()
      • setDirection

        public void setDirection​(org.gcube.informationsystem.base.reference.Direction direction)
      • isEntryPoint

        public boolean isEntryPoint()
      • setEntryPoint

        public void setEntryPoint​(boolean entryPoint)
      • analize

        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
        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
      • addConstraints

        protected StringBuffer addConstraints​(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode,
                                              QueryLogicalOperator queryLogicalOperator,
                                              String fieldNamePrefix)
                                       throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException
      • evaluateNode

        protected StringBuffer evaluateNode​(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode,
                                            String fieldName,
                                            String fieldNamePrefix)
                                     throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException
      • getValue

        protected StringBuffer getValue​(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)