public class

Who

extends Element
java.lang.Object
   ↳ com.google.gdata.model.Element
     ↳ com.google.gdata.model.gd.Who

Class Overview

Describes a person associated with the containing entity.

Summary

Nested Classes
class Who.Rel Relationship between the containing entity and the contained person. 
Fields
public static final AttributeKey<String> EMAIL Email address.
public static final ElementKey<Void, Who> KEY The key for this element.
public static final AttributeKey<String> REL Relationship between the containing entity and the contained person.
public static final AttributeKey<String> VALUE_STRING Simple string value that can be used as a representation of this person.
[Expand]
Inherited Fields
From class com.google.gdata.model.Element
Public Constructors
Who()
Constructs an instance using the default key.
Protected Constructors
Who(ElementKey<?, ? extends Who> key)
Subclass constructor, allows subclasses to supply their own element key.
Who(ElementKey<?, ? extends Who> key, Element source)
Constructs a new instance by doing a shallow copy of data from an existing Element instance.
Public Methods
AttendeeStatus getAttendeeStatus()
Returns the event attendee status.
AttendeeType getAttendeeType()
Returns the event attendee type.
String getEmail()
Returns the email address.
EntryLink getEntryLink()
Returns the nested person entry.
String getRel()
Returns the relationship between the containing entity and the contained person.
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(String email)
Sets the email address.
Who setEntryLink(EntryLink entryLink)
Sets the nested person entry.
Who setRel(String rel)
Sets the relationship between the containing entity and the contained person.
Who setValueString(String valueString)
Sets the simple string value that can be used as a representation of this person.
[Expand]
Inherited Methods
From class com.google.gdata.model.Element
From class java.lang.Object

Fields

public static final AttributeKey<String> EMAIL

Email address.

public static final ElementKey<Void, Who> KEY

The key for this element.

public static final AttributeKey<String> REL

Relationship between the containing entity and the contained person.

public static final AttributeKey<String> VALUE_STRING

Simple string value that can be used as a representation of this person.

Public Constructors

public Who ()

Constructs an instance using the default key.

Protected Constructors

protected Who (ElementKey<?, ? extends Who> key)

Subclass constructor, allows subclasses to supply their own element key.

Parameters
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. 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 createElement(ElementKey, Element).

Parameters
key The key to use for this element.
source Source element

Public Methods

public AttendeeStatus getAttendeeStatus ()

Returns the event attendee status.

Returns
  • event attendee status

public AttendeeType getAttendeeType ()

Returns the event attendee type.

Returns
  • event attendee type

public String getEmail ()

Returns the email address.

Returns
  • email address

public EntryLink getEntryLink ()

Returns the nested person entry.

Returns
  • nested person entry

public String getRel ()

Returns the relationship between the containing entity and the contained person.

Returns
  • relationship between the containing entity and the contained person

public String getValueString ()

Returns the simple string value that can be used as a representation of this person.

Returns
  • simple string value that can be used as a representation of this person

public boolean hasAttendeeStatus ()

Returns whether it has the event attendee status.

Returns
  • whether it has the event attendee status

public boolean hasAttendeeType ()

Returns whether it has the event attendee type.

Returns
  • whether it has the event attendee type

public boolean hasEmail ()

Returns whether it has the email address.

Returns
  • whether it has the email address

public boolean hasEntryLink ()

Returns whether it has the nested person entry.

Returns
  • whether it has the nested person entry

public boolean hasRel ()

Returns whether it has the relationship between the containing entity and the contained person.

Returns
  • whether it has the relationship between the containing entity and the contained person

public boolean hasValueString ()

Returns whether it has the simple string value that can be used as a representation of this person.

Returns
  • whether it has the simple string value that can be used as a representation of this person

public Who lock ()

Locks this element. A locked element cannot have any changes made to its content or its attributes or child elements. This will also lock all attributes and child elements as well. Once this method has been called, this element can be safely published to other threads.

public static void registerMetadata (MetadataRegistry registry)

Registers the metadata for this element.

Parameters
registry

public Who setAttendeeStatus (AttendeeStatus attendeeStatus)

Sets the event attendee status.

Parameters
attendeeStatus Event attendee status or null to reset
Returns
  • this to enable chaining setters

public Who setAttendeeType (AttendeeType attendeeType)

Sets the event attendee type.

Parameters
attendeeType Event attendee type or null to reset
Returns
  • this to enable chaining setters

public Who setEmail (String email)

Sets the email address.

Parameters
email Email address or null to reset
Returns
  • this to enable chaining setters

public Who setEntryLink (EntryLink entryLink)

Sets the nested person entry.

Parameters
entryLink Nested person entry or null to reset
Returns
  • this to enable chaining setters

public Who setRel (String rel)

Sets the relationship between the containing entity and the contained person.

Parameters
rel Relationship between the containing entity and the contained person or null to reset
Returns
  • this to enable chaining setters

public Who setValueString (String valueString)

Sets the simple string value that can be used as a representation of this person.

Parameters
valueString Simple string value that can be used as a representation of this person or null to reset
Returns
  • this to enable chaining setters