public final class Attribute
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
AttributeKey<?> |
getAttributeKey()
Returns the attribute key of this attribute.
|
java.lang.Object |
getValue()
Returns the untyped attribute value.
|
boolean |
isLocked()
Returns true if this attribute has been locked using
lock(). |
Attribute |
lock()
Locks this attribute.
|
Attribute |
setValue(java.lang.Object value)
Sets the value of the attribute.
|
java.lang.String |
toString() |
public boolean isLocked()
lock(). Once an
attribute has been locked it cannot be unlocked.public Attribute lock()
public AttributeKey<?> getAttributeKey()
public java.lang.Object getValue()
public Attribute setValue(java.lang.Object value)
value - attribute valuejava.lang.NullPointerException - if the value was nulljava.lang.IllegalArgumentException - if the value is not of a valid typejava.lang.IllegalStateException - if this attribute is lockedpublic java.lang.String toString()
toString in class java.lang.Object