Class QueryTemplateReferenceImpl
java.lang.Object
org.gcube.informationsystem.base.impl.ElementImpl
org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
org.gcube.informationsystem.model.impl.properties.PropertyImpl
org.gcube.informationsystem.queries.templates.impl.properties.QueryTemplateReferenceImpl
- All Implemented Interfaces:
Serializable,Element,PropertyElement,SchemaMixedElement,ModelElement,Property,QueryTemplateReference
The default implementation of the
QueryTemplateReference interface.- Author:
- Luca Frosini (ISTI CNR)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe name of the query template.The variables of the query template.Fields inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
additionalProperties, allowedAdditionalKeys, expectedtype, supertypesFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.properties.Property
NAMEFields inherited from interface org.gcube.informationsystem.queries.templates.reference.properties.QueryTemplateReference
NAME, NAME_PROPERTY, VARIABLES_PROPERTY -
Constructor Summary
Constructors -
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 class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, getExpectedtype, getSupertypes, setAdditionalProperties, setAdditionalPropertyMethods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 query template. -
variables
The variables of the query template.
-
-
Constructor Details
-
QueryTemplateReferenceImpl
public QueryTemplateReferenceImpl()
-
-
Method Details
-
getName
Returns the name of the referenced query template.- Specified by:
getNamein interfaceQueryTemplateReference- Returns:
- The template name.
-
setName
Sets the name of the referenced query template.- Specified by:
setNamein interfaceQueryTemplateReference- Parameters:
name- The template name.
-
getVariables
Returns the values for the template variables.- Specified by:
getVariablesin interfaceQueryTemplateReference- Returns:
- A map of variable names to their values.
-
setVariables
Sets the values for the template variables.- Specified by:
setVariablesin interfaceQueryTemplateReference- Parameters:
variables- A map of variable names to their values.
-
addVariable
Adds or updates a single variable's value.- Specified by:
addVariablein interfaceQueryTemplateReference- Parameters:
name- The name of the variable.value- The value of the variable.
-