public class Where extends Element
Modifier and Type | Class and Description |
---|---|
static class |
Where.Rel
Meaning of this location.
|
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier | Constructor and Description |
---|---|
|
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. |
Modifier and Type | Method and Description |
---|---|
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.
|
adapt, adapt, addElement, addElement, addElement, clear, createElement, createElement, eq, equals, getAttributeCount, getAttributeIterator, getAttributeIterator, getAttributeValue, getAttributeValue, getDefaultKey, getElement, getElement, getElementCount, getElementId, getElementIterator, getElementIterator, getElementKey, getElements, getElements, getElementSet, getElementSet, getElementValue, getElementValue, getTextValue, getTextValue, hasAttribute, hasAttribute, hasElement, hasElement, hashCode, hasTextValue, isLocked, narrow, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, sameClassAs, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, toString, validate, visit
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
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 elementpublic static void registerMetadata(MetadataRegistry registry)
public Where lock()
Element
public EntryLink getEntryLink()
public Where setEntryLink(EntryLink entryLink)
entryLink
- nested person or venue (Contact) entry or null
to
resetpublic 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 resetpublic boolean hasLabel()
public java.lang.String getRel()
public Where setRel(java.lang.String rel)
rel
- meaning of this location or null
to resetpublic boolean hasRel()
public java.lang.String getValueString()
public Where setValueString(java.lang.String valueString)
valueString
- text description of the place or null
to resetpublic boolean hasValueString()