Class 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

    public class AttributePropertyImpl
    extends GCubePropertyImpl
    implements AttributeProperty
    Author:
    Luca Frosini (ISTI - CNR)
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Object defaultValue
      The default value of the attribute
      protected String description
      The description of the attribute
      protected String name
      The name of the attribute
      • Fields inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl

        additionalProperties, allowedAdditionalKeys, expectedtype, supertypes
      • 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_PROPERTY
      • Fields inherited from interface org.gcube.informationsystem.base.reference.AttributeDefinition

        MANDATORY_PROPERTY, NOT_NULL_PROPERTY
      • Fields inherited from interface org.gcube.resourcemanagement.model.reference.properties.AttributeProperty

        NAME
      • Fields inherited from interface org.gcube.informationsystem.base.reference.Element

        DATETIME_PATTERN, NAME, TYPE_PROPERTY
      • Fields inherited from interface org.gcube.resourcemanagement.model.reference.properties.GCubeProperty

        NAME
      • 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
    • Field Detail

      • name

        protected String name
        The name of the attribute
      • description

        protected String description
        The description of the attribute
      • defaultValue

        protected Object defaultValue
        The default value of the attribute
    • Constructor Detail

      • AttributePropertyImpl

        public AttributePropertyImpl()
        Default constructor
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface org.gcube.informationsystem.base.reference.Attribute
        Specified by:
        getName in interface AttributeProperty
      • setName

        public void setName​(String name)
        Specified by:
        setName in interface org.gcube.informationsystem.base.reference.Attribute
      • getDescription

        public String getDescription()
        Specified by:
        getDescription in interface org.gcube.informationsystem.base.reference.Attribute
        Specified by:
        getDescription in interface AttributeProperty
      • setDescription

        public void setDescription​(String description)
        Specified by:
        setDescription in interface org.gcube.informationsystem.base.reference.Attribute
      • isMandatory

        public boolean isMandatory()
        Specified by:
        isMandatory in interface org.gcube.informationsystem.base.reference.AttributeDefinition
        Specified by:
        isMandatory in interface AttributeProperty
      • setMandatory

        public void setMandatory​(boolean mandatory)
        Specified by:
        setMandatory in interface org.gcube.informationsystem.base.reference.AttributeDefinition
      • isNotnull

        public boolean isNotnull()
        Specified by:
        isNotnull in interface org.gcube.informationsystem.base.reference.AttributeDefinition
        Specified by:
        isNotnull in interface AttributeProperty
      • setNotnull

        public void setNotnull​(boolean notnull)
        Specified by:
        setNotnull in interface org.gcube.informationsystem.base.reference.AttributeDefinition
      • getMax

        public Integer getMax()
        Specified by:
        getMax in interface org.gcube.informationsystem.base.reference.Attribute
        Specified by:
        getMax in interface AttributeProperty
      • setMax

        public void setMax​(Integer max)
        Specified by:
        setMax in interface org.gcube.informationsystem.base.reference.Attribute
      • getMin

        public Integer getMin()
        Specified by:
        getMin in interface org.gcube.informationsystem.base.reference.Attribute
        Specified by:
        getMin in interface AttributeProperty
      • setMin

        public void setMin​(Integer min)
        Specified by:
        setMin in interface org.gcube.informationsystem.base.reference.Attribute
      • getRegexp

        public String getRegexp()
        Specified by:
        getRegexp in interface org.gcube.informationsystem.base.reference.Attribute
        Specified by:
        getRegexp in interface AttributeProperty
      • setRegexp

        public void setRegexp​(String regexp)
        Specified by:
        setRegexp in interface org.gcube.informationsystem.base.reference.Attribute
      • getPropertyType

        public String getPropertyType()
        Specified by:
        getPropertyType in interface org.gcube.informationsystem.base.reference.Attribute
        Specified by:
        getPropertyType in interface AttributeProperty
      • setPropertyType

        public void setPropertyType​(String type)
        Specified by:
        setPropertyType in interface org.gcube.informationsystem.base.reference.Attribute
      • getPropertyTypeName

        public org.gcube.informationsystem.types.PropertyTypeName getPropertyTypeName()
        Specified by:
        getPropertyTypeName in interface org.gcube.informationsystem.base.reference.Attribute
      • getDefaultValue

        public Object getDefaultValue()
        Specified by:
        getDefaultValue in interface org.gcube.informationsystem.base.reference.Attribute
        Specified by:
        getDefaultValue in interface AttributeProperty
      • setDefaultValue

        public void setDefaultValue​(Object defaultValue)
        Specified by:
        setDefaultValue in interface org.gcube.informationsystem.base.reference.Attribute