public class Who extends Element
Modifier and Type | Class and Description |
---|---|
static class |
Who.Rel
Relationship between the containing entity and the contained person.
|
Modifier and Type | Field and Description |
---|---|
static AttributeKey<java.lang.String> |
EMAIL
Email address.
|
static ElementKey<java.lang.Void,Who> |
KEY
The key for this element.
|
static AttributeKey<java.lang.String> |
REL
Relationship between the containing entity and the contained person.
|
static AttributeKey<java.lang.String> |
VALUE_STRING
Simple string value that can be used as a representation of this person.
|
Modifier | Constructor and Description |
---|---|
|
Who()
Constructs an instance using the default key.
|
protected |
Who(ElementKey<?,? extends Who> key)
Subclass constructor, allows subclasses to supply their own element key.
|
protected |
Who(ElementKey<?,? extends Who> 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 |
---|---|
AttendeeStatus |
getAttendeeStatus()
Returns the event attendee status.
|
AttendeeType |
getAttendeeType()
Returns the event attendee type.
|
java.lang.String |
getEmail()
Returns the email address.
|
EntryLink |
getEntryLink()
Returns the nested person entry.
|
java.lang.String |
getRel()
Returns the relationship between the containing entity and the contained
person.
|
java.lang.String |
getValueString()
Returns the simple string value that can be used as a representation of
this person.
|
boolean |
hasAttendeeStatus()
Returns whether it has the event attendee status.
|
boolean |
hasAttendeeType()
Returns whether it has the event attendee type.
|
boolean |
hasEmail()
Returns whether it has the email address.
|
boolean |
hasEntryLink()
Returns whether it has the nested person entry.
|
boolean |
hasRel()
Returns whether it has the relationship between the containing entity and
the contained person.
|
boolean |
hasValueString()
Returns whether it has the simple string value that can be used as a
representation of this person.
|
Who |
lock()
Locks this element.
|
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
|
Who |
setAttendeeStatus(AttendeeStatus attendeeStatus)
Sets the event attendee status.
|
Who |
setAttendeeType(AttendeeType attendeeType)
Sets the event attendee type.
|
Who |
setEmail(java.lang.String email)
Sets the email address.
|
Who |
setEntryLink(EntryLink entryLink)
Sets the nested person entry.
|
Who |
setRel(java.lang.String rel)
Sets the relationship between the containing entity and the contained
person.
|
Who |
setValueString(java.lang.String valueString)
Sets the simple string value that can be used as a representation of this
person.
|
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,Who> KEY
public static final AttributeKey<java.lang.String> EMAIL
public static final AttributeKey<java.lang.String> REL
public static final AttributeKey<java.lang.String> VALUE_STRING
public Who()
protected Who(ElementKey<?,? extends Who> key)
protected Who(ElementKey<?,? extends Who> 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 Who lock()
Element
public AttendeeStatus getAttendeeStatus()
public Who setAttendeeStatus(AttendeeStatus attendeeStatus)
attendeeStatus
- event attendee status or null
to resetpublic boolean hasAttendeeStatus()
public AttendeeType getAttendeeType()
public Who setAttendeeType(AttendeeType attendeeType)
attendeeType
- event attendee type or null
to resetpublic boolean hasAttendeeType()
public java.lang.String getEmail()
public Who setEmail(java.lang.String email)
email
- email address or null
to resetpublic boolean hasEmail()
public EntryLink getEntryLink()
public Who setEntryLink(EntryLink entryLink)
entryLink
- nested person entry or null
to resetpublic boolean hasEntryLink()
public java.lang.String getRel()
public Who setRel(java.lang.String rel)
rel
- relationship between the containing entity and the contained
person or null
to resetpublic boolean hasRel()
public java.lang.String getValueString()
public Who setValueString(java.lang.String valueString)
valueString
- simple string value that can be used as a representation
of this person or null
to resetpublic boolean hasValueString()