Interface TemplateVariable
- All Superinterfaces:
Attribute,Element,PropertyElement,Serializable
- All Known Implementing Classes:
TemplateVariableImpl
@TypeMetadata(name="TemplateVariable",
description="Defines a variable used within a Query Template, including its name, type, constraints, and default value.",
version="2.0.0")
@Change(version="2.0.0",description="\'min\' and \'max\' are optional; \'regexp\' is always present, empty for no pattern.") @Change(version="1.1.0",description="The type comply with [Attribute](type:Attribute) which add \'defaultValue\'") @Change(version="1.0.0",description="First Version")
public interface TemplateVariable
extends PropertyElement, Attribute
Defines a variable used within a
QueryTemplate.
This interface extends Attribute to provide the full definition of a
variable, including its name, type, constraints, and default value.
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the TemplateVariable property type.static final StringThe version of this type definition.Fields inherited from interface org.gcube.informationsystem.base.reference.Attribute
DEFAULT_VALUE_PROPERTY, DESCRIPTION_PROPERTY, MAX_PROPERTY, MIN_PROPERTY, NAME_PROPERTY, PROPERTY_TYPE_PROPERTY, REGEX_PROPERTYFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, REDACTED, TYPE_PROPERTY, UNKNOWN_USER -
Method Summary
Modifier and TypeMethodDescriptionReturns the default value of the attribute.Returns the description of the attribute.getMax()Returns the maximum allowed value for the attribute.getMin()Returns the minimum allowed value for the attribute.getName()Returns the name of the attribute.Returns the property type of the attribute as a string.Returns the regular expression used to validate the attribute's value.Methods inherited from interface org.gcube.informationsystem.base.reference.Attribute
getPropertyTypeName, setDefaultValue, setDescription, setMax, setMin, setName, setPropertyType, setRegexpMethods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeName
-
Field Details
-
NAME
The name of the TemplateVariable property type.- See Also:
-
VERSION
The version of this type definition.- See Also:
-
-
Method Details
-
getName
@ISProperty(name="name", description="The name of the Query Template Variable.", readonly=true, mandatory=true) String getName()Returns the name of the attribute. -
getDescription
Returns the description of the attribute.- Specified by:
getDescriptionin interfaceAttribute- Returns:
- The attribute's description.
-
getMax
Returns the maximum allowed value for the attribute. -
getMin
Returns the minimum allowed value for the attribute. -
getRegexp
Returns the regular expression used to validate the attribute's value. -
getPropertyType
Returns the property type of the attribute as a string.- Specified by:
getPropertyTypein interfaceAttribute- Returns:
- The property type.
-
getDefaultValue
Returns the default value of the attribute.- Specified by:
getDefaultValuein interfaceAttribute- Returns:
- The default value.
-