Class Attribute

    • Constructor Detail

      • Attribute

        public Attribute()
    • Method Detail

      • featureType

        public Attribute featureType​(Long featureType)
      • getFeatureType

        public Long getFeatureType()
        Get featureType
        Returns:
        featureType
      • setFeatureType

        public void setFeatureType​(Long featureType)
      • getKey

        public String getKey()
        Name of the attribute.
        Returns:
        key
      • setKey

        public void setKey​(String key)
      • getType

        @Valid
        public @Valid TMAttributeType getType()
        Get type
        Returns:
        type
      • getEditable

        public Boolean getEditable()
        Whether the attribute can be edited.
        Returns:
        editable
      • setEditable

        public void setEditable​(Boolean editable)
      • getEditAlias

        public String getEditAlias()
        Alias to use in edit mode.
        Returns:
        editAlias
      • setEditAlias

        public void setEditAlias​(String editAlias)
      • getDefaultValue

        public String getDefaultValue()
        Default value for this attribute. The value may need to be coerced to the correct type.
        Returns:
        defaultValue
      • setDefaultValue

        public void setDefaultValue​(String defaultValue)
      • getNullable

        public Boolean getNullable()
        Whether the attribute can be null.
        Returns:
        nullable
      • setNullable

        public void setNullable​(Boolean nullable)
      • addValueListItem

        public Attribute addValueListItem​(String valueListItem)
      • getValueList

        public List<String> getValueList()
        List of possible values for this attribute. The value may need to be coerced to the correct type.
        Returns:
        valueList
      • setValueList

        public void setValueList​(List<String> valueList)
      • allowValueListOnly

        public Attribute allowValueListOnly​(Boolean allowValueListOnly)
      • getAllowValueListOnly

        public Boolean getAllowValueListOnly()
        Whether the attribute can only have values from the valueList.
        Returns:
        allowValueListOnly
      • setAllowValueListOnly

        public void setAllowValueListOnly​(Boolean allowValueListOnly)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object