public abstract class DeviceCapabilities
extends java.util.Dictionary
implements javax.provisioning.Capabilities
| Constructor and Description |
|---|
DeviceCapabilities() |
| Modifier and Type | Method and Description |
|---|---|
abstract DeviceCapability |
addDeviceCapability(java.lang.String capabilityName,
java.lang.String capabilityValue)
Assigns a new capability with the supplied value to the capability set of the device.
|
abstract DeviceCapability[] |
getDeviceCapabilities()
Returns all device capabilities assigned with the device object.
|
abstract DeviceCapability[] |
getDeviceCapability(java.lang.String name)
Returns device capabilities assigned with the supplied name or
null if the
device has no such capability. |
abstract boolean |
isReadOnly(java.lang.String name,
java.lang.String value)
Returns if this property with a given name and value can be manually modified.
|
abstract void |
reset()
Discards any changes made to the capabilities set of the device since the
last
update() method. |
abstract void |
update()
Commits the changes made to the capabilities set of the device.
|
public abstract DeviceCapability[] getDeviceCapabilities()
public abstract DeviceCapability[] getDeviceCapability(java.lang.String name) throws ManagementException
null if the
device has no such capability.name - the name of the requested device capability.DeviceCapability objects encapsulating the values
of the capability and methods for modifying them.ManagementException - if a system error occurs.public abstract DeviceCapability addDeviceCapability(java.lang.String capabilityName, java.lang.String capabilityValue) throws ManagementException
update() is called.capabilityName - name of the new capability.capabilityValue - value of the new capability.DeviceCapability object encapsulating the value of the added
capability and methods for modifying it.ManagementException - if a system error occurs.public abstract boolean isReadOnly(java.lang.String name,
java.lang.String value)
name - name of the platform capability.value - value of the device capability.true if the capability is read only.public abstract void update()
throws ManagementException
ManagementException - if a system error occurs.public abstract void reset()
throws ManagementException
update() method.ManagementException - if a system error occurs.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.