Difference between revisions of "Attribute Object"

From Hubitat Documentation
Jump to: navigation, search
(Created page with "==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...")
 
Line 7: Line 7:
 
:: 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.
  
:;
+
==Methods==
 +
===<code>getValues</code>===
 +
 
 +
:;Signature
 +
:: <code>List<String> getValues()</code>
 +
 
 +
:;Parameters
 +
:: none
 +
 
 +
:;Returns
 +
:: List<String> - the list of possible values for the attribute.

Revision as of 14:53, 22 May 2019

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, BOOL, 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.