public static final class DOFObjectID.Source extends DOFObjectID
Modifier and Type | Class and Description |
---|---|
static class |
DOFObjectID.Source.Type
Implementation of
DOFType that matches DOFObjectID.Source . |
DOFObjectID.Attribute, DOFObjectID.Authentication, DOFObjectID.Domain, DOFObjectID.Source
Modifier and Type | Field and Description |
---|---|
static DOFObjectID.Source.Type |
TYPE
This is the default type for all Source values.
|
ALL_OBJECTS, BROADCAST, CLASS_AS, CLASS_AWS_RESOURCE_ID, CLASS_BROADCAST, CLASS_DOMAIN, CLASS_EMAIL, CLASS_EUI48, CLASS_EUI64, CLASS_GUID, CLASS_HIDLC, CLASS_IPV4, CLASS_IPV6, CLASS_LODLC, CLASS_MAC, CLASS_ODP, CLASS_SMART_ENERGY_SYSTEM_SERIAL_NUMBER, DOMAIN_BROADCAST
Modifier and Type | Method and Description |
---|---|
static DOFObjectID.Source |
create(byte[] buffer)
Create a DOFObjectID.Source from a byte[] of data.
|
static DOFObjectID.Source |
create(byte[] data,
int offset)
Create a DOFObjectID.Source from a byte[] of data at an offset.
|
static DOFObjectID.Source |
create(DOFMarshalContext context,
java.lang.Object state,
DOFPacket packet)
Create a DOFObjectID.Source from serial form.
|
static DOFObjectID.Source |
create(DOFObjectID id)
Create an DOFObjectID.Source from a DOFObjectID.
|
static DOFObjectID.Source |
create(int idClass,
byte[] data)
Create an DOFObjectID.Source given its class and byte data.
|
static DOFObjectID.Source |
create(java.lang.String identifier)
Construct a DOFObjectID.Source using the standard format.
|
compareTo, create, create, create, create, equals, equalsIgnoreAttributes, getAttribute, getAttributes, getBase, getBytes, getData, getDataString, getDOFType, getIDClass, hasAttribute, hasAttributes, hashCode, isBroadcast, isCompatibleWith, isMulticast, isUnicast, marshal, matchesAtLeast, toStandardString, toString
public static final DOFObjectID.Source.Type TYPE
public static DOFObjectID.Source create(DOFObjectID id)
id
- The DOFObjectID to create the identifier. Cannot have attributes. Cannot be of type BROADCAST. Data size
cannot be greater than 20.public static DOFObjectID.Source create(byte[] buffer)
buffer
- The binary data to create the identifier. There may be additional data in the buffer after the object
identifier that is ignored. This must not be null.public static DOFObjectID.Source create(byte[] data, int offset)
data
- The data to create the identifier from. There may be addition data in the array but after the
object identifier that will be ignored. This must not be null.offset
- The offset into the data where the identifier begins. This must not be negative.public static DOFObjectID.Source create(int idClass, byte[] data)
idClass
- The class of the identifier. This must be within the valid range.data
- The identifier. This will be stored in the object identifier without parsing. This must not
be null. The length must be valid (<= MAX_ID_LENGTH).public static DOFObjectID.Source create(java.lang.String identifier)
identifier
- The standard format string for the object identifier.public static DOFObjectID.Source create(DOFMarshalContext context, java.lang.Object state, DOFPacket packet) throws DOFMarshalException
context
- The context of the unmarshalling to be performed.state
- The state in which the unmarshalling is done. This may affect the result.packet
- The buffer which contains the serialized form of the object. Must not be null.DOFMarshalException
- If there are errors in the data or the buffer.Marshallable