public static class Identifier.SourceIdentifier extends Identifier
StorageContentMetadata.Identifier.SerializedId, Identifier.SourceIdentifier, Identifier.TriggerIdentifierattributeId, capabilityId, deviceNodeId, networkId, resourceEui, ruleId, sceneId, zoneId| Constructor and Description |
|---|
SourceIdentifier(Identifier id)
A constructor to create
SourceIdentifier for the origin of InfoRequest. |
SourceIdentifier(java.lang.String networkId,
long deviceNodeId,
java.lang.String resourceEui)
An overloaded constructor to create
SourceIdentifier
for the origin of InfoRequest. |
SourceIdentifier(java.lang.String networkId,
long deviceNodeId,
java.lang.String resourceEui,
int capabilityId,
int attributeId)
An overloaded constructor to create
SourceIdentifier
for the origin of InfoRequest. |
| Modifier and Type | Method and Description |
|---|---|
<T extends Rule> |
getRule()
A generic method to fetch rule for the identifier instance.
|
<T extends Scene> |
getScene()
A generic method to fetch scene for the identifier instance.
|
<T extends Zone> |
getZone()
A generic method to fetch zone for the identifier instance.
|
equals, fromJson, fromJson, fromJsonTree, fromJsonTree, fromSerializable, getAttribute, getCapability, getDevice, getIdentifier, getIdentifier, getIdentifier, getIdentifier, getIdentifier, getIdentifier, getIdentifier, getIdentifier, getNetwork, getResource, hashCode, toJson, toJson, toJsonTree, toJsonTree, toSerializable, toStringpublic SourceIdentifier(Identifier id)
SourceIdentifier for the origin of InfoRequest.id - Identifier to be used to create a new SourceIdentifier.public SourceIdentifier(java.lang.String networkId,
long deviceNodeId,
java.lang.String resourceEui)
SourceIdentifier
for the origin of InfoRequest.networkId - ID of the network generated after successful creation of the network.deviceNodeId - Node ID of the device in the network.resourceEui - Unique identifier of the resource in the parent device.public SourceIdentifier(java.lang.String networkId,
long deviceNodeId,
java.lang.String resourceEui,
int capabilityId,
int attributeId)
SourceIdentifier
for the origin of InfoRequest.networkId - ID of the network generated after successful creation of the network.deviceNodeId - Node ID of the device in the network.resourceEui - Unique identifier of the resource in the parent device.capabilityId - Capability ID of the parent resource.attributeId - Attribute ID of parent capability.public <T extends Zone> T getZone()
IdentifiergetZone in class IdentifierT - any immediate subclass of Zone classpublic <T extends Scene> T getScene()
IdentifiergetScene in class IdentifierT - any immediate subclass of Scene classpublic <T extends Rule> T getRule()
IdentifiergetRule in class IdentifierT - any immediate subclass of Rule class