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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the QueryTemplateReference property type.static final StringThe property name for the referenced template's name.static final StringThe property name for the variable values.Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, TYPE_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionvoidaddVariable(String name, Object value) Adds or updates a single variable's value.getName()Returns the name of the referenced query template.Returns the values for the template variables.voidSets the name of the referenced query template.voidsetVariables(Map<String, Object> variables) Sets the values for the template variables.Methods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeNameMethods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypesMethods inherited from interface org.gcube.informationsystem.model.reference.properties.Property
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
-
Field Details
-
NAME
The name of the QueryTemplateReference property type.- See Also:
-
NAME_PROPERTY
The property name for the referenced template's name.- See Also:
-
VARIABLES_PROPERTY
The property name for the variable values.- See Also:
-
-
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
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
Sets the values for the template variables.- Parameters:
variables- A map of variable names to their values.
-
addVariable
Adds or updates a single variable's value.- Parameters:
name- The name of the variable.value- The value of the variable.
-