Interface AttributeProperty
- All Superinterfaces:
org.gcube.informationsystem.base.reference.Attribute,org.gcube.informationsystem.base.reference.AttributeDefinition,org.gcube.informationsystem.base.reference.Element,GCubeProperty,org.gcube.informationsystem.model.reference.ModelElement,org.gcube.informationsystem.model.reference.properties.Property,org.gcube.informationsystem.base.reference.properties.PropertyElement,org.gcube.informationsystem.base.reference.SchemaMixedElement,Serializable
- All Known Implementing Classes:
AttributePropertyImpl
@TypeMetadata(name="AttributeProperty",
description="AttributeProperty describes a single named attribute, i.e., its name, description, mandatory constraint, min/max value bounds, validation regex, expected property type, and default value, to be instantiated by a {@link org.gcube.resourcemanagement.model.reference.entities.facets.TemplateFacet}.",
version="2.0.0")
@Change(version="2.0.0",description="Removed \'notnull\': a null value means the same as an absent one, and \'mandatory\' means present with a real value. \'min\' and \'max\' are optional; \'regexp\' is always present, empty for no pattern.") @Change(version="1.0.0",description="First Version")
public interface AttributeProperty
extends GCubeProperty, org.gcube.informationsystem.base.reference.AttributeDefinition
AttributeProperty describes a single named attribute — its name, description,
mandatory constraint, min/max value bounds, validation regex, expected
property type, and default value — to be instantiated by a
TemplateFacet.- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name associated with this propertystatic final StringFields 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.AttributeDefinition
MANDATORY_PROPERTYFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, REDACTED, TYPE_PROPERTY, UNKNOWN_USERFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionstatic AttributePropertyReturns a default instance of AttributePropertygetMax()getMin()getName()booleanMethods 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.AttributeDefinition
setMandatoryMethods 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 associated with this property- See Also:
-
VERSION
- See Also:
-
-
Method Details
-
getDefaultInstance
Returns a default instance of AttributeProperty- Returns:
- a default instance of AttributeProperty
-
getName
@ISProperty(name="name", description="The name of the attribute property.", readonly=true, mandatory=true) String getName()- Specified by:
getNamein interfaceorg.gcube.informationsystem.base.reference.Attribute
-
getDescription
@ISProperty(name="description", description="A human-oriented description of the attribute.", readonly=false, mandatory=true) String getDescription()- Specified by:
getDescriptionin interfaceorg.gcube.informationsystem.base.reference.Attribute
-
isMandatory
@ISProperty(name="mandatory", description="Whether the attribute is mandatory.", readonly=false, mandatory=true, defaultValue="false") boolean isMandatory()- Specified by:
isMandatoryin interfaceorg.gcube.informationsystem.base.reference.AttributeDefinition
-
getMax
@ISProperty(name="max", description="The maximum allowed value for the attribute, if any.", readonly=false, mandatory=false) Integer getMax()- Specified by:
getMaxin interfaceorg.gcube.informationsystem.base.reference.Attribute
-
getMin
@ISProperty(name="min", description="The minimum allowed value for the attribute, if any.", readonly=false, mandatory=false) Integer getMin()- Specified by:
getMinin interfaceorg.gcube.informationsystem.base.reference.Attribute
-
getRegexp
@ISProperty(name="regexp", description="The regular expression used to validate the attribute\'s value, empty for none.", readonly=false, mandatory=true, defaultValue="") String getRegexp()- Specified by:
getRegexpin interfaceorg.gcube.informationsystem.base.reference.Attribute
-
getPropertyType
@ISProperty(name="propertyType", description="The expected property type of the attribute, expressed as a string.", readonly=false, mandatory=true) String getPropertyType()- Specified by:
getPropertyTypein interfaceorg.gcube.informationsystem.base.reference.Attribute
-
getDefaultValue
@ISProperty(name="defaultValue", description="The default value of the attribute, if any.", readonly=false, mandatory=false) Object getDefaultValue()- Specified by:
getDefaultValuein interfaceorg.gcube.informationsystem.base.reference.Attribute
-