Class Person
- java.lang.Object
-
- com.rometools.rome.feed.atom.Entry
-
- com.rometools.modules.activitystreams.types.ActivityObject
-
- com.rometools.modules.activitystreams.types.Person
-
- All Implemented Interfaces:
HasLocation,Extendable,Serializable,Cloneable
public class Person extends ActivityObject
The "person" Object type represents a user account. This is often represents a person, but might also be a company or fictitious character that is being represented by a user account.
The "person" Object type is identified by the URI http://activitystrea.ms/schema/1.0/person.
A person has the following additional components:
- Display Name
- A name that can be used for the person in the user interface. This is often a name by which the individual is known in a given context; no restriction is placed on what kind of name may be used here. Represented by the Name component of the base Object Construct.
- Avatar
- A link to an "avatar" or "userpic" image for the user. Represented by the Representative Image component of the base Object Construct.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Person()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkgetAvatar()Get the value of avatarStringgetTypeIRI()voidsetAvatar(Link newavatar)Set the value of avatar-
Methods inherited from class com.rometools.modules.activitystreams.types.ActivityObject
getAddress, getLocation, setAddress, setLocation
-
Methods inherited from class com.rometools.rome.feed.atom.Entry
clone, equals, findRelatedLink, getAlternateLinks, getAuthors, getCategories, getContents, getContributors, getCreated, getForeignMarkup, getId, getIssued, getModified, getModule, getModules, getOtherLinks, getPublished, getRights, getSource, getSummary, getTitle, getTitleEx, getUpdated, getXmlBase, hashCode, isMediaEntry, setAlternateLinks, setAuthors, setCategories, setContents, setContributors, setCreated, setForeignMarkup, setId, setIssued, setModified, setModules, setOtherLinks, setPublished, setRights, setSource, setSummary, setTitle, setTitleEx, setUpdated, setXmlBase, toString
-
-
-
-
Method Detail
-
getTypeIRI
public String getTypeIRI()
- Specified by:
getTypeIRIin classActivityObject
-
getAvatar
public Link getAvatar()
Get the value of avatar- Returns:
- the value of avatar
-
setAvatar
public void setAvatar(Link newavatar)
Set the value of avatar- Parameters:
newavatar- new value of avatar
-
-