Difference between revisions of "Attribute Object"

From Hubitat Documentation
Jump to: navigation, search
(Properties)
Line 3: Line 3:
 
:: id - Long: the unique id of this attribute.
 
:: id - Long: the unique id of this attribute.
 
:: version - Long: the database version of this attribute.
 
:: version - Long: the database version of this attribute.
:: dataType - String: The type of data that is stored in this attribute, possible values are (ENUM, STRING, DYNAMIC_ENUM, JSON_OBJECT, NUMBER, BOOL, DATE, VECTOR3).
+
:: dataType - String: The type of data that is stored in this attribute, possible values are (ENUM, STRING, DYNAMIC_ENUM, JSON_OBJECT, NUMBER, DATE, VECTOR3).
 
:: name - String: the name of this attribute.
 
:: name - String: the name of this attribute.
 
:: possibleValues - List<String>: a list of possible values for this attribute if dataType is ENUM.
 
:: possibleValues - List<String>: a list of possible values for this attribute if dataType is ENUM.

Revision as of 18:27, 16 March 2021

Properties

id - Long: the unique id of this attribute.
version - Long: the database version of this attribute.
dataType - String: The type of data that is stored in this attribute, possible values are (ENUM, STRING, DYNAMIC_ENUM, JSON_OBJECT, NUMBER, DATE, VECTOR3).
name - String: the name of this attribute.
possibleValues - List<String>: a list of possible values for this attribute if dataType is ENUM.

Methods

getValues

Signature
List<String> getValues()
Parameters
none
Returns
List<String> - the list of possible values for the attribute.