@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) |
ActivityObject |
getActor()
object
|
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(ActivityObject actor)
object
|
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(ActivityObject 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) |
@BeanProperty(value="id") public String getId()
@BeanProperty(value="id") public void setId(String id)
id
- The id@BeanProperty(value="actor") public ActivityObject getActor()
Basic object on the web. The only required property is the id
@BeanProperty(value="actor") public void setActor(ActivityObject actor)
Basic object on the web. The only required property is the id
actor
- The actorpublic Activity withActor(ActivityObject actor)
@BeanProperty(value="verb") public 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)
@BeanProperty(value="verb") 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 verb@BeanProperty(value="object") public ActivityObject getObject()
Basic object on the web. The only required property is the id
@BeanProperty(value="object") public void setObject(ActivityObject object)
Basic object on the web. The only required property is the id
object
- The objectpublic Activity withObject(ActivityObject object)
@BeanProperty(value="target") public ActivityObject getTarget()
Basic object on the web. The only required property is the id
@BeanProperty(value="target") public void setTarget(ActivityObject target)
Basic object on the web. The only required property is the id
target
- The targetpublic Activity withTarget(ActivityObject target)
@BeanProperty(value="published") public org.joda.time.DateTime getPublished()
@BeanProperty(value="published") public void setPublished(org.joda.time.DateTime published)
published
- The publishedpublic Activity withPublished(org.joda.time.DateTime published)
@BeanProperty(value="updated") public org.joda.time.DateTime getUpdated()
@BeanProperty(value="updated") public void setUpdated(org.joda.time.DateTime updated)
updated
- The updatedpublic Activity withUpdated(org.joda.time.DateTime updated)
@BeanProperty(value="generator") public Generator getGenerator()
@BeanProperty(value="generator") public void setGenerator(Generator generator)
generator
- The generator@BeanProperty(value="icon") public Icon getIcon()
@BeanProperty(value="icon") public void setIcon(Icon icon)
icon
- The icon@BeanProperty(value="provider") public Provider getProvider()
@BeanProperty(value="provider") public void setProvider(Provider provider)
provider
- The provider@BeanProperty(value="title") public String getTitle()
@BeanProperty(value="title") public void setTitle(String title)
title
- The title@BeanProperty(value="content") public String getContent()
@BeanProperty(value="content") public void setContent(String content)
content
- The content@BeanProperty(value="url") public String getUrl()
@BeanProperty(value="url") public void setUrl(String url)
url
- The url@BeanProperty(value="links") public List<String> getLinks()
@BeanProperty(value="links") public void setLinks(List<String> links)
links
- The links@BeanProperty(name="*") public void setAdditionalProperty(String name, Object value)
Copyright © 2018 The Apache Software Foundation. All rights reserved.