Class Attribute


  • public class Attribute
    extends BaseData
    Cheetah Loyalty Data Model for Reward Attributes that are set by the Reward Classes
    • Constructor Summary

      Constructors 
      Constructor Description
      Attribute()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<AttributeOption> getAttributeOptions()  
      java.lang.String getDataType()
      Returns the data type of the Attribute (e.g.
      java.lang.String getHint()
      Returns the hint for the Attribute
      java.lang.String getLabel()
      Returns the label of the attribute
      java.lang.String getName()
      Returns the name of the attribute
      void setAttributeOptions​(java.util.List<AttributeOption> attributeOptions)
      Sets the attribute options for this Attribute
      void setDataType​(java.lang.String dataType)
      Sets the data type of the Attribute
      void setHint​(java.lang.String hint)
      Sets the hint of the Attribute
      void setLabel​(java.lang.String label)
      Sets the label of the attribute
      void setName​(java.lang.String name)
      Sets the name of the attribute
      • Methods inherited from class java.lang.Object

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

      • Attribute

        public Attribute()
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the attribute
        Returns:
        String name
      • setName

        public void setName​(java.lang.String name)
        Sets the name of the attribute
        Parameters:
        name - String name of Attribute
      • getLabel

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

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

        public java.lang.String getDataType()
        Returns the data type of the Attribute (e.g. string, int)
        Returns:
        String data type
      • setDataType

        public void setDataType​(java.lang.String dataType)
        Sets the data type of the Attribute
        Parameters:
        dataType - String datatype
      • getHint

        public java.lang.String getHint()
        Returns the hint for the Attribute
        Returns:
        String hint
      • setHint

        public void setHint​(java.lang.String hint)
        Sets the hint of the Attribute
        Parameters:
        hint - String hint
      • setAttributeOptions

        public void setAttributeOptions​(java.util.List<AttributeOption> attributeOptions)
        Sets the attribute options for this Attribute
        Parameters:
        attributeOptions - list of AttributeOption