public static final class DOFObjectID.Attribute extends java.lang.Object implements java.lang.Comparable<DOFObjectID.Attribute>, DOFImmutable, java.io.Serializable
DOFObjectID
,
Serialized FormModifier and Type | Field and Description |
---|---|
static byte |
BINDING_PROVIDER
This Attribute identifies the provider of a binding.
|
static byte |
GROUP
Group attribute.
|
static byte |
MAX_IDENTIFIER
The max attribute identifier.
|
static byte |
PROVIDER
Provider attribute.
|
static byte |
SESSION
Session attribute.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DOFObjectID.Attribute other) |
static DOFObjectID.Attribute |
create(byte type,
byte[] value)
Construct an attribute using binary data.
|
static DOFObjectID.Attribute |
create(byte type,
DOFObjectID value)
Construct an attribute using a DOFObjectID.
|
boolean |
equals(java.lang.Object other) |
byte |
getType()
Get the type of the attribute.
|
byte[] |
getValue()
Get the data associated with this attribute.
|
DOFObjectID |
getValueObjectID()
Return the DOFObjectID associated with this attribute, or null if the content is not an object identifier.
|
int |
hashCode() |
java.lang.String |
toStandardString()
Convert an attribute to its standardized text form.
|
java.lang.String |
toString()
Convert an attribute to its standardized text form.
|
public static final byte PROVIDER
public static final byte SESSION
public static final byte GROUP
public static final byte BINDING_PROVIDER
public static final byte MAX_IDENTIFIER
public byte getType()
public DOFObjectID getValueObjectID()
public byte[] getValue()
public java.lang.String toStandardString()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(DOFObjectID.Attribute other)
compareTo
in interface java.lang.Comparable<DOFObjectID.Attribute>
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static DOFObjectID.Attribute create(byte type, byte[] value)
type
- The type of attribute. This must be one of the 'type' constants defined in this class, or another registered type (valid range is 0 - 127).value
- The attribute value. Except for types PROVIDER
and GROUP
this value may be null, in which case the attribute is added with no
associated data.public static DOFObjectID.Attribute create(byte type, DOFObjectID value)