T
- the type of valuepublic abstract class DeviceModelAttribute<T>
extends java.lang.Object
DeviceModel
.Modifier and Type | Class and Description |
---|---|
static class |
DeviceModelAttribute.Access
Access rules for an attribute.
|
static class |
DeviceModelAttribute.Type
An enumeration of the data types an attribute may contain.
|
Modifier | Constructor and Description |
---|---|
protected |
DeviceModelAttribute() |
Modifier and Type | Method and Description |
---|---|
abstract DeviceModelAttribute.Access |
getAccess()
Return the access rules for the attribute.
|
abstract java.lang.String |
getAlias()
Deprecated.
Use
getName() |
T |
getDefaultValue()
Get the default value of the attribute as defined by the device model.
|
abstract java.lang.String |
getDescription()
A human friendly description of the attribute.
|
abstract java.lang.Number |
getLowerBound()
For
DeviceModelAttribute.Type.NUMBER only, give the lower bound of the
acceptable range of values. |
abstract java.lang.String |
getModel()
Get the URN of the device type model this attribute comes from.
|
abstract java.lang.String |
getName()
Get the attribute name.
|
abstract DeviceModelAttribute.Type |
getType()
The data type of the attribute.
|
abstract java.lang.Number |
getUpperBound()
For
DeviceModelAttribute.Type.NUMBER only, give the upper bound of the
acceptable range of values. |
public abstract java.lang.String getName()
public abstract java.lang.String getModel()
public abstract java.lang.String getDescription()
public abstract DeviceModelAttribute.Type getType()
public abstract java.lang.Number getLowerBound()
DeviceModelAttribute.Type.NUMBER
only, give the lower bound of the
acceptable range of values. Null is always returned for attributes
other than NUMBER
type.public abstract java.lang.Number getUpperBound()
DeviceModelAttribute.Type.NUMBER
only, give the upper bound of the
acceptable range of values. Null is always returned for attributes
other than NUMBER
type.public abstract DeviceModelAttribute.Access getAccess()
@Deprecated public abstract java.lang.String getAlias()
getName()
public T getDefaultValue()
defaultValue
for the attribute in the device model, then this method will return
null
. The value null
is not a default value.null
if no default is defined