|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.model.Attribute
public final class Attribute
A data attribute in an instance document. Contains the key that identifies the attribute (name + type) and the value of the attribute.
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
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 value
java.lang.NullPointerException - if the value was null
java.lang.IllegalArgumentException - if the value is not of a valid type
java.lang.IllegalStateException - if this attribute is lockedpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||