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

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

    Fields
    Modifier and Type
    Field
    Description
    protected Object
     
    protected String
     
    protected String
     

    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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
     
     
     
    org.gcube.informationsystem.types.PropertyTypeName
     
     
    boolean
     
    boolean
     
    void
    setDefaultValue(Object defaultValue)
     
    void
    setDescription(String description)
     
    void
    setMandatory(boolean mandatory)
     
    void
     
    void
     
    void
     
    void
    setNotnull(boolean notnull)
     
    void
     
    void
    setRegexp(String regexp)
     
     

    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

    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
  • Field Details

    • name

      protected String name
    • description

      protected String description
    • defaultValue

      protected Object defaultValue
  • Constructor Details

    • AttributePropertyImpl

      public AttributePropertyImpl()
  • Method Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class org.gcube.informationsystem.base.impl.ElementImpl