public class Property extends Object
Constructor and Description |
---|
Property(String name,
String type,
String value)
Creates a Property object with
name as the identifier, and the
value . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
AccessControl |
getAccessControl()
Returns Access Control of this property
|
Optional<Object> |
getMax()
Get the maximum value associated with this Property, which is immutable.
|
Optional<String> |
getMetaData()
Get the meta data information associated with this Property
|
Optional<Object> |
getMin()
Get the minimum value associated with this Property, which is immutable.
|
String |
getName()
Get the name of the Property, which is immutable.
|
String |
getType()
Get the class type of the Property.
|
String |
getValue()
Get the value of this Property.
|
int |
hashCode() |
String |
toString() |
public String getName()
public String getType()
public Optional<Object> getMin()
public Optional<Object> getMax()
public String getValue()
This call by itself will not result in a call to the underlying network.
public Optional<String> getMetaData()
Note: For ZigBee Attribute Properties, you can use deserialize the meta data into a
ZigBeePropertyMetaData
via
ZigBeePropertyMetaData.fromJSON(String)
method
Example:
String metaData = getMetaData().get; //assuming there is meta data information ZigBeePropertyMetaData data = ZigBeePropertyMetaData.from(metaData);
ZigBeePropertyMetaData
public AccessControl getAccessControl()
AccessControl
information. Will return AccessControl.UNKNOWN
if access control information
cannot be determine at the momentCopyright © 2020. All rights reserved.