Class AttributeOption


  • public class AttributeOption
    extends BaseData
    Cheetah Loyalty Data Model for Item Options for each Attribute
    • Constructor Summary

      Constructors 
      Constructor Description
      AttributeOption()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getAttributeId()  
      java.lang.String getCode()
      Returns the code of the Attribute option
      java.lang.String getHint()
      Returns the hint to describe this attribute option
      java.lang.String getLabel()
      Returns the label of the Attribute option
      boolean isDefault()
      Returns if the attribute option is set to default.
      void setAttributeId​(int attributeId)  
      void setCode​(java.lang.String code)
      Sets the code of the Attribute option
      void setDefault​(boolean aDefault)
      Sets the attribute option to be the default attribute option
      void setHint​(java.lang.String hint)
      Sets the hint of this attribute option
      void setLabel​(java.lang.String label)
      Sets the label of the attribute option
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AttributeOption

        public AttributeOption()
    • Method Detail

      • getAttributeId

        public int getAttributeId()
      • setAttributeId

        public void setAttributeId​(int attributeId)
      • getCode

        public java.lang.String getCode()
        Returns the code of the Attribute option
        Returns:
        String code
      • setCode

        public void setCode​(java.lang.String code)
        Sets the code of the Attribute option
        Parameters:
        code - String
      • getLabel

        public java.lang.String getLabel()
        Returns the label of the Attribute option
        Returns:
        String label
      • setLabel

        public void setLabel​(java.lang.String label)
        Sets the label of the attribute option
        Parameters:
        label - String
      • isDefault

        public boolean isDefault()
        Returns if the attribute option is set to default. If attribute options is default, it should be selected
        Returns:
        boolean
      • setDefault

        public void setDefault​(boolean aDefault)
        Sets the attribute option to be the default attribute option
        Parameters:
        aDefault - true to indicated this attribute as default, else false
      • getHint

        public java.lang.String getHint()
        Returns the hint to describe this attribute option
        Returns:
        String hint
      • setHint

        public void setHint​(java.lang.String hint)
        Sets the hint of this attribute option
        Parameters:
        hint - String