Class AttributePropertyImpl
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.resourcemanagement.model.impl.properties.GCubePropertyImpl
org.gcube.resourcemanagement.model.impl.properties.AttributePropertyImpl
- All Implemented Interfaces:
Serializable,org.gcube.informationsystem.base.reference.Attribute,org.gcube.informationsystem.base.reference.AttributeDefinition,org.gcube.informationsystem.base.reference.Element,org.gcube.informationsystem.base.reference.properties.PropertyElement,org.gcube.informationsystem.base.reference.SchemaMixedElement,org.gcube.informationsystem.model.reference.ModelElement,org.gcube.informationsystem.model.reference.properties.Property,AttributeProperty,GCubeProperty
Implementation of
AttributeProperty.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ObjectThe default value of the attributeprotected StringThe description of the attributeprotected StringThe name of the attributeFields inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
additionalProperties, allowedAdditionalKeys, expectedType, supertypesFields 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.resourcemanagement.model.reference.properties.AttributeProperty
NAME, VERSIONFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, REDACTED, TYPE_PROPERTY, UNKNOWN_USERFields inherited from interface org.gcube.resourcemanagement.model.reference.properties.GCubeProperty
NAMEFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.properties.Property
NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMax()getMin()getName()org.gcube.informationsystem.types.PropertyTypeNamebooleanvoidsetDefaultValue(Object defaultValue) voidsetDescription(String description) voidsetMandatory(boolean mandatory) voidvoidvoidvoidsetPropertyType(String type) voidMethods 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 attribute -
description
The description of the attribute -
defaultValue
The default value of the attribute
-
-
Constructor Details
-
AttributePropertyImpl
public AttributePropertyImpl()Default constructor
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.gcube.informationsystem.base.reference.Attribute- Specified by:
getNamein interfaceAttributeProperty
-
setName
- Specified by:
setNamein interfaceorg.gcube.informationsystem.base.reference.Attribute
-
getDescription
- Specified by:
getDescriptionin interfaceorg.gcube.informationsystem.base.reference.Attribute- Specified by:
getDescriptionin interfaceAttributeProperty
-
setDescription
- Specified by:
setDescriptionin interfaceorg.gcube.informationsystem.base.reference.Attribute
-
isMandatory
public boolean isMandatory()- Specified by:
isMandatoryin interfaceorg.gcube.informationsystem.base.reference.AttributeDefinition- Specified by:
isMandatoryin interfaceAttributeProperty
-
setMandatory
public void setMandatory(boolean mandatory) - Specified by:
setMandatoryin interfaceorg.gcube.informationsystem.base.reference.AttributeDefinition
-
getMax
- Specified by:
getMaxin interfaceorg.gcube.informationsystem.base.reference.Attribute- Specified by:
getMaxin interfaceAttributeProperty
-
setMax
- Specified by:
setMaxin interfaceorg.gcube.informationsystem.base.reference.Attribute- Throws:
IllegalArgumentException- ifmaxis not an integer
-
getMin
- Specified by:
getMinin interfaceorg.gcube.informationsystem.base.reference.Attribute- Specified by:
getMinin interfaceAttributeProperty
-
setMin
- Specified by:
setMinin interfaceorg.gcube.informationsystem.base.reference.Attribute- Throws:
IllegalArgumentException- ifminis not an integer
-
getRegexp
- Specified by:
getRegexpin interfaceorg.gcube.informationsystem.base.reference.Attribute- Specified by:
getRegexpin interfaceAttributeProperty
-
setRegexp
- Specified by:
setRegexpin interfaceorg.gcube.informationsystem.base.reference.Attribute
-
getPropertyType
- Specified by:
getPropertyTypein interfaceorg.gcube.informationsystem.base.reference.Attribute- Specified by:
getPropertyTypein interfaceAttributeProperty
-
setPropertyType
- Specified by:
setPropertyTypein interfaceorg.gcube.informationsystem.base.reference.Attribute
-
getPropertyTypeName
public org.gcube.informationsystem.types.PropertyTypeName getPropertyTypeName()- Specified by:
getPropertyTypeNamein interfaceorg.gcube.informationsystem.base.reference.Attribute
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceorg.gcube.informationsystem.base.reference.Attribute- Specified by:
getDefaultValuein interfaceAttributeProperty
-
setDefaultValue
- Specified by:
setDefaultValuein interfaceorg.gcube.informationsystem.base.reference.Attribute
-