Interface EntityAttrOption

  • All Superinterfaces:
    ChildEntity, java.lang.Cloneable, PersistenceEntity
    All Known Implementing Classes:
    EntityAttrOptionBase

    public interface EntityAttrOption
    extends ChildEntity
    EntityAttrOption: an option of entity attribute value. A list of options is the select items from which to choose attribute value. Selected option values are stored in persistence as an attribute value , but option names are for display only.

    For example, color options:

     name               value
     -------------------------
     Red                 R
     Blue                B
     Green               G
     
    Since:
    5.4
    • Field Detail

      • PROPERTY_ATTRIBUTE

        static final java.lang.String PROPERTY_ATTRIBUTE
        Property name: attribute
        See Also:
        Constant Field Values
      • PROPERTY_NAME

        static final java.lang.String PROPERTY_NAME
        Property name: name
        See Also:
        Constant Field Values
      • PROPERTY_VALUE

        static final java.lang.String PROPERTY_VALUE
        Property name: value
        See Also:
        Constant Field Values
    • Method Detail

      • getAttribute

        EntityAttr getAttribute()
        Get the attribute with which this option is associated.
        Returns:
        EntityAttr instance
      • setAttribute

        void setAttribute​(EntityAttr attribute)
        Set the attribute with which this option is associated.
        Parameters:
        attribute - EntityAttr instance
      • getValue

        java.lang.String getValue()
        Get option value.
        Returns:
        value
      • setValue

        void setValue​(java.lang.String value)
        Set option value.
        Parameters:
        value -
      • getName

        java.lang.String getName()
        Get option display name for the option value.
        Returns:
        display name on device.
      • setName

        void setName​(java.lang.String name)
        Set option display name for the option value.
        Parameters:
        name - display name on device.