public final class Attribute extends Object
| Modifier and Type | Method and Description |
|---|---|
AttributeKey<?> |
getAttributeKey()
Returns the attribute key of this attribute.
|
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(Object value)
Sets the value of the attribute.
|
String |
toString() |
public boolean isLocked()
lock(). Once an
attribute has been locked it cannot be unlocked.public Attribute lock()
public AttributeKey<?> getAttributeKey()
public Object getValue()
public Attribute setValue(Object value)
value - attribute valueNullPointerException - if the value was nullIllegalArgumentException - if the value is not of a valid typeIllegalStateException - if this attribute is lockedCopyright © 2012. All Rights Reserved.