Class Attribute
- java.lang.Object
-
- com.cheetahdigital.corekit.models.data.BaseData
-
- com.cheetahdigital.rewards.core.model.Attribute
-
public class Attribute extends BaseData
-
-
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 Attributejava.lang.String
getLabel()
Returns the label of the attributejava.lang.String
getName()
Returns the name of the attributevoid
setAttributeOptions(java.util.List<AttributeOption> attributeOptions)
Sets the attribute options for this Attributevoid
setDataType(java.lang.String dataType)
Sets the data type of the Attributevoid
setHint(java.lang.String hint)
Sets the hint of the Attributevoid
setLabel(java.lang.String label)
Sets the label of the attributevoid
setName(java.lang.String name)
Sets the name of the attribute-
Methods inherited from class com.cheetahdigital.corekit.models.data.BaseData
getId, getIntegrationId, setId, setIntegrationId
-
-
-
-
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
-
getAttributeOptions
public java.util.List<AttributeOption> getAttributeOptions()
- Returns:
- a list of
AttributeOption
-
setAttributeOptions
public void setAttributeOptions(java.util.List<AttributeOption> attributeOptions)
Sets the attribute options for this Attribute- Parameters:
attributeOptions
- list ofAttributeOption
-
-