Interface QueryTemplate

    • Method Detail

      • setName

        void setName​(String name)
      • setDescription

        void setDescription​(String description)
      • getTemplateAsString

        @ISProperty(name="template",
                    description="The Query Template. It can contains query variables to be replaced to obtain a runnable query.",
                    readonly=false,
                    mandatory=true,
                    nullable=false)
        String getTemplateAsString()
                            throws org.gcube.com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        org.gcube.com.fasterxml.jackson.core.JsonProcessingException
      • setTemplate

        void setTemplate​(String template)
                  throws org.gcube.com.fasterxml.jackson.core.JsonProcessingException,
                         IOException
        Throws:
        org.gcube.com.fasterxml.jackson.core.JsonProcessingException
        IOException
      • setTemplate

        void setTemplate​(org.gcube.com.fasterxml.jackson.databind.JsonNode template)
      • getTemplate

        org.gcube.com.fasterxml.jackson.databind.JsonNode getTemplate()
      • addTemplateVariable

        void addTemplateVariable​(TemplateVariable templateVariable)
      • getParamsFromDefaultValues

        org.gcube.com.fasterxml.jackson.databind.node.ObjectNode getParamsFromDefaultValues()
        Create an ObjectNode which can be used as parameters to obtain a JSON Query from the Query Template. It uses the default values provided in TemplateVariables.
        Returns:
        the created object node
      • getJsonQuery

        org.gcube.com.fasterxml.jackson.databind.JsonNode getJsonQuery()
                                                                throws Exception
        Returns:
        the JsonQuery replacing the variables using the default values contained in TemplateVariables
        Throws:
        Exception
      • getJsonQuery

        org.gcube.com.fasterxml.jackson.databind.JsonNode getJsonQuery​(org.gcube.com.fasterxml.jackson.databind.JsonNode values)
                                                                throws Exception
        Parameters:
        values -
        Returns:
        the JsonQuery replacing the variables using the provided values
        Throws:
        Exception