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
public class QueryTemplateReferenceImpl extends PropertyImpl implements QueryTemplateReference
The default implementation of theQueryTemplateReferenceinterface.- Author:
- Luca Frosini (ISTI CNR)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringnameThe name of the query template.protected Map<String,Object>variablesThe variables of the query template.-
Fields inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
additionalProperties, allowedAdditionalKeys, expectedtype, supertypes
-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.model.reference.properties.Property
NAME
-
Fields inherited from interface org.gcube.informationsystem.queries.templates.reference.properties.QueryTemplateReference
NAME, NAME_PROPERTY, VARIABLES_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description QueryTemplateReferenceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddVariable(String name, Object value)Adds or updates a single variable's value.StringgetName()Returns the name of the referenced query template.Map<String,Object>getVariables()Returns the values for the template variables.voidsetName(String name)Sets 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, setAdditionalProperty
-
Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeName
-
Methods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypes
-
Methods inherited from interface org.gcube.informationsystem.model.reference.properties.Property
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
-
-
-
-
Method Detail
-
getName
public String getName()
Returns the name of the referenced query template.- Specified by:
getNamein interfaceQueryTemplateReference- Returns:
- The template name.
-
setName
public void setName(String name)
Sets the name of the referenced query template.- Specified by:
setNamein interfaceQueryTemplateReference- Parameters:
name- The template name.
-
getVariables
public Map<String,Object> getVariables()
Returns the values for the template variables.- Specified by:
getVariablesin interfaceQueryTemplateReference- Returns:
- A map of variable names to their values.
-
setVariables
public void setVariables(Map<String,Object> variables)
Sets the values for the template variables.- Specified by:
setVariablesin interfaceQueryTemplateReference- Parameters:
variables- A map of variable names to their values.
-
addVariable
public void addVariable(String name, Object value)
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.
-
-