|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.model.Element
com.google.gdata.model.gd.ExtendedProperty
public class ExtendedProperty
Stores a limited amount of custom data as an auxiliary property of the enclosing entity.
Nested Class Summary | |
---|---|
static class |
ExtendedProperty.Realm
Limit on who may see and modify this extended property. |
Field Summary | |
---|---|
static ElementKey<java.lang.Void,ExtendedProperty> |
KEY
The key for this element. |
static AttributeKey<java.lang.String> |
NAME
Name of the property expressed as a URI. |
static AttributeKey<java.lang.String> |
REALM
Limit on who may see and modify this extended property. |
static AttributeKey<java.lang.String> |
VALUE
Property value. |
Constructor Summary | |
---|---|
|
ExtendedProperty()
Constructs an instance using the default key. |
protected |
ExtendedProperty(ElementKey<?,? extends ExtendedProperty> key)
Subclass constructor, allows subclasses to supply their own element key. |
protected |
ExtendedProperty(ElementKey<?,? extends ExtendedProperty> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing Element instance. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getName()
Returns the name of the property expressed as a URI. |
java.lang.String |
getRealm()
Returns the limit on who may see and modify this extended property. |
java.lang.String |
getValue()
Returns the property value. |
int |
hashCode()
|
boolean |
hasName()
Returns whether it has the name of the property expressed as a URI. |
boolean |
hasRealm()
Returns whether it has the limit on who may see and modify this extended property. |
boolean |
hasValue()
Returns whether it has the property value. |
ExtendedProperty |
lock()
Locks this element. |
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element. |
ExtendedProperty |
setName(java.lang.String name)
Sets the name of the property expressed as a URI. |
ExtendedProperty |
setRealm(java.lang.String realm)
Sets the limit on who may see and modify this extended property. |
ExtendedProperty |
setValue(java.lang.String value)
Sets the property value. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ElementKey<java.lang.Void,ExtendedProperty> KEY
public static final AttributeKey<java.lang.String> NAME
public static final AttributeKey<java.lang.String> REALM
public static final AttributeKey<java.lang.String> VALUE
Constructor Detail |
---|
public ExtendedProperty()
protected ExtendedProperty(ElementKey<?,? extends ExtendedProperty> key)
protected ExtendedProperty(ElementKey<?,? extends ExtendedProperty> key, Element source)
Element
instance. Will use the given ElementKey
as the key
for the element. This constructor is used when adapting from one element
key to another. You cannot call this constructor directly, instead use
Element.createElement(ElementKey, Element)
.
key
- The key to use for this element.source
- source elementMethod Detail |
---|
public static void registerMetadata(MetadataRegistry registry)
public ExtendedProperty lock()
Element
lock
in class Element
public java.lang.String getName()
public ExtendedProperty setName(java.lang.String name)
name
- name of the property expressed as a URI or null
to
reset
public boolean hasName()
public java.lang.String getRealm()
public ExtendedProperty setRealm(java.lang.String realm)
realm
- limit on who may see and modify this extended property or
null
to reset
public boolean hasRealm()
public java.lang.String getValue()
public ExtendedProperty setValue(java.lang.String value)
value
- property value or null
to reset
public boolean hasValue()
public boolean equals(java.lang.Object obj)
equals
in class Element
public int hashCode()
hashCode
in class Element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |