@Generated(value="org.jsonschema2pojo") public class Activity extends Object implements Serializable
An activity construct recounts what an actor did to an object in the past. If there is no actor it simply describes the change.
Constructor and Description |
---|
Activity() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Actor |
getActor()
Describes the entity that performed the activity.
|
Map<String,Object> |
getAdditionalProperties() |
String |
getContent()
Natural-language description of the activity encoded as a single JSON String containing HTML markup.
|
Generator |
getGenerator()
Describes the application that generated the activity.
|
Icon |
getIcon()
An IRI[RFC3987] identifying an image resource provides a visual representation of the activity, intended for human consumption.
|
String |
getId()
Uniquely identifies each activity within the service
(Required)
|
List<String> |
getLinks()
Links between this object and other resources as defined in Web Linking
|
ActivityObject |
getObject()
object
|
Provider |
getProvider()
Describes the application that published the activity.
|
org.joda.time.DateTime |
getPublished()
The date and time at which the activity occurred.
|
ActivityObject |
getTarget()
object
|
String |
getTitle()
Natural-language title or headline for the activity encoded as a single JSON String containing HTML markup.
|
org.joda.time.DateTime |
getUpdated()
The date and time at which a previously published activity has been modified.
|
String |
getUrl()
An IRI [RFC3987] identifying a resource providing an HTML representation of the activity.
|
String |
getVerb()
verb
|
int |
hashCode() |
void |
setActor(Actor actor)
Describes the entity that performed the activity.
|
void |
setAdditionalProperty(String name,
Object value) |
void |
setContent(String content)
Natural-language description of the activity encoded as a single JSON String containing HTML markup.
|
void |
setGenerator(Generator generator)
Describes the application that generated the activity.
|
void |
setIcon(Icon icon)
An IRI[RFC3987] identifying an image resource provides a visual representation of the activity, intended for human consumption.
|
void |
setId(String id)
Uniquely identifies each activity within the service
(Required)
|
void |
setLinks(List<String> links)
Links between this object and other resources as defined in Web Linking
|
void |
setObject(ActivityObject object)
object
|
void |
setProvider(Provider provider)
Describes the application that published the activity.
|
void |
setPublished(org.joda.time.DateTime published)
The date and time at which the activity occurred.
|
void |
setTarget(ActivityObject target)
object
|
void |
setTitle(String title)
Natural-language title or headline for the activity encoded as a single JSON String containing HTML markup.
|
void |
setUpdated(org.joda.time.DateTime updated)
The date and time at which a previously published activity has been modified.
|
void |
setUrl(String url)
An IRI [RFC3987] identifying a resource providing an HTML representation of the activity.
|
void |
setVerb(String verb)
verb
|
String |
toString() |
Activity |
withActor(Actor actor) |
Activity |
withAdditionalProperty(String name,
Object value) |
Activity |
withContent(String content) |
Activity |
withGenerator(Generator generator) |
Activity |
withIcon(Icon icon) |
Activity |
withId(String id) |
Activity |
withLinks(List<String> links) |
Activity |
withObject(ActivityObject object) |
Activity |
withProvider(Provider provider) |
Activity |
withPublished(org.joda.time.DateTime published) |
Activity |
withTarget(ActivityObject target) |
Activity |
withTitle(String title) |
Activity |
withUpdated(org.joda.time.DateTime updated) |
Activity |
withUrl(String url) |
Activity |
withVerb(String verb) |
public String getId()
public void setId(String id)
id
- The idpublic Actor getActor()
public void setActor(Actor actor)
actor
- The actorpublic String getVerb()
Identifies the action that the activity describes. An activity MUST contain a verb property whose value is a JSON String that is non-empty and matches either the "isegment-nz-nc" or the "IRI" production in [RFC3987]. Note that the use of a relative reference other than a simple name is not allowed. (Required)
public void setVerb(String verb)
Identifies the action that the activity describes. An activity MUST contain a verb property whose value is a JSON String that is non-empty and matches either the "isegment-nz-nc" or the "IRI" production in [RFC3987]. Note that the use of a relative reference other than a simple name is not allowed. (Required)
verb
- The verbpublic ActivityObject getObject()
Basic object on the web. The only required property is the id
public void setObject(ActivityObject object)
Basic object on the web. The only required property is the id
object
- The objectpublic Activity withObject(ActivityObject object)
public ActivityObject getTarget()
Basic object on the web. The only required property is the id
public void setTarget(ActivityObject target)
Basic object on the web. The only required property is the id
target
- The targetpublic Activity withTarget(ActivityObject target)
public org.joda.time.DateTime getPublished()
public void setPublished(org.joda.time.DateTime published)
published
- The publishedpublic Activity withPublished(org.joda.time.DateTime published)
public org.joda.time.DateTime getUpdated()
public void setUpdated(org.joda.time.DateTime updated)
updated
- The updatedpublic Activity withUpdated(org.joda.time.DateTime updated)
public Generator getGenerator()
public void setGenerator(Generator generator)
generator
- The generatorpublic Icon getIcon()
public void setIcon(Icon icon)
icon
- The iconpublic Provider getProvider()
public void setProvider(Provider provider)
provider
- The providerpublic String getTitle()
public void setTitle(String title)
title
- The titlepublic String getContent()
public void setContent(String content)
content
- The contentpublic String getUrl()
public void setUrl(String url)
url
- The urlpublic List<String> getLinks()
public void setLinks(List<String> links)
links
- The linksCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.