Interface QueryTemplateReference

All Superinterfaces:
Element, ModelElement, Property, PropertyElement, SchemaMixedElement, Serializable
All Known Implementing Classes:
QueryTemplateReferenceImpl

@TypeMetadata(name="QueryTemplateReference", description="This property references a query template to invoke with the specified variables to provide.", version="1.0.0") @Change(version="1.0.0", description="First Version") public interface QueryTemplateReference extends Property
A property that references a QueryTemplate and provides values for its variables.
Author:
Luca Frosini (ISTI - CNR)
  • Field Details

  • Method Details

    • getName

      @ISProperty(name="name", description="The name of the query template to refer", mandatory=true, nullable=false) String getName()
      Returns the name of the referenced query template.
      Returns:
      The template name.
    • setName

      void setName(String name)
      Sets the name of the referenced query template.
      Parameters:
      name - The template name.
    • getVariables

      @ISProperty(name="variables", description="The query template variables values", mandatory=false, nullable=true) Map<String,Object> getVariables()
      Returns the values for the template variables.
      Returns:
      A map of variable names to their values.
    • setVariables

      void setVariables(Map<String,Object> variables)
      Sets the values for the template variables.
      Parameters:
      variables - A map of variable names to their values.
    • addVariable

      void addVariable(String name, Object value)
      Adds or updates a single variable's value.
      Parameters:
      name - The name of the variable.
      value - The value of the variable.