|
|||||||||
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.Where
public class Where
Describes a place (not necessarily a specific geographical location).
Nested Class Summary | |
---|---|
static class |
Where.Rel
Meaning of this location. |
Field Summary | |
---|---|
static ElementKey<java.lang.Void,Where> |
KEY
The key for this element. |
static AttributeKey<java.lang.String> |
LABEL
User-readable label that identifies this location in case multiple locations may be present. |
static AttributeKey<java.lang.String> |
REL
Meaning of this location. |
static AttributeKey<java.lang.String> |
VALUE_STRING
Text description of the place. |
Constructor Summary | |
---|---|
|
Where()
Constructs an instance using the default key. |
protected |
Where(ElementKey<?,? extends Where> key)
Subclass constructor, allows subclasses to supply their own element key. |
protected |
Where(ElementKey<?,? extends Where> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing Element instance. |
Method Summary | |
---|---|
EntryLink |
getEntryLink()
Returns the nested person or venue (Contact) entry. |
java.lang.String |
getLabel()
Returns the user-readable label that identifies this location in case multiple locations may be present. |
java.lang.String |
getRel()
Returns the meaning of this location. |
java.lang.String |
getValueString()
Returns the text description of the place. |
boolean |
hasEntryLink()
Returns whether it has the nested person or venue (Contact) entry. |
boolean |
hasLabel()
Returns whether it has the user-readable label that identifies this location in case multiple locations may be present. |
boolean |
hasRel()
Returns whether it has the meaning of this location. |
boolean |
hasValueString()
Returns whether it has the text description of the place. |
Where |
lock()
Locks this element. |
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element. |
Where |
setEntryLink(EntryLink entryLink)
Sets the nested person or venue (Contact) entry. |
Where |
setLabel(java.lang.String label)
Sets the user-readable label that identifies this location in case multiple locations may be present. |
Where |
setRel(java.lang.String rel)
Sets the meaning of this location. |
Where |
setValueString(java.lang.String valueString)
Sets the text description of the place. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ElementKey<java.lang.Void,Where> KEY
public static final AttributeKey<java.lang.String> LABEL
public static final AttributeKey<java.lang.String> REL
public static final AttributeKey<java.lang.String> VALUE_STRING
Constructor Detail |
---|
public Where()
protected Where(ElementKey<?,? extends Where> key)
protected Where(ElementKey<?,? extends Where> 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 Where lock()
Element
lock
in class Element
public EntryLink getEntryLink()
public Where setEntryLink(EntryLink entryLink)
entryLink
- nested person or venue (Contact) entry or null
to
reset
public boolean hasEntryLink()
public java.lang.String getLabel()
public Where setLabel(java.lang.String label)
label
- user-readable label that identifies this location in case
multiple locations may be present or null
to reset
public boolean hasLabel()
public java.lang.String getRel()
public Where setRel(java.lang.String rel)
rel
- meaning of this location or null
to reset
public boolean hasRel()
public java.lang.String getValueString()
public Where setValueString(java.lang.String valueString)
valueString
- text description of the place or null
to reset
public boolean hasValueString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |