@Generated(value="org.jsonschema2pojo") public class Collection extends Object implements Serializable
A collection is a generic list of Objects of any object type. The objectType of each item in the collection MAY be omitted if the type of object can be established through context. The collection is used primarily as the root of an Activity Streams document, but can be used as the value of extension properties in a variety of situations.
Constructor and Description |
---|
Collection() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Map<String,Object> |
getAdditionalProperties() |
List<Item> |
getItems()
An array containing a listing of Objects of any object type.
|
List<Object> |
getLinks()
Links between an this object and other resources as defined in Web Linking
|
Long |
getTotalItems()
Non-negative integer specifying the total number of activities within the stream.
|
String |
getUrl()
An IRI [RFC3987] referencing a JSON document containing the full listing of objects in the collection.
|
int |
hashCode() |
void |
setAdditionalProperty(String name,
Object value) |
void |
setItems(List<Item> items)
An array containing a listing of Objects of any object type.
|
void |
setLinks(List<Object> links)
Links between an this object and other resources as defined in Web Linking
|
void |
setTotalItems(Long totalItems)
Non-negative integer specifying the total number of activities within the stream.
|
void |
setUrl(String url)
An IRI [RFC3987] referencing a JSON document containing the full listing of objects in the collection.
|
String |
toString() |
Collection |
withAdditionalProperty(String name,
Object value) |
Collection |
withItems(List<Item> items) |
Collection |
withLinks(List<Object> links) |
Collection |
withTotalItems(Long totalItems) |
Collection |
withUrl(String url) |
@BeanProperty(value="url") public String getUrl()
@BeanProperty(value="url") public void setUrl(String url)
url
- The urlpublic Collection withUrl(String url)
@BeanProperty(value="totalItems") public Long getTotalItems()
@BeanProperty(value="totalItems") public void setTotalItems(Long totalItems)
totalItems
- The totalItemspublic Collection withTotalItems(Long totalItems)
@BeanProperty(value="items") public List<Item> getItems()
@BeanProperty(value="items") public void setItems(List<Item> items)
items
- The itemspublic Collection withItems(List<Item> items)
@BeanProperty(value="links") public List<Object> getLinks()
@BeanProperty(value="links") public void setLinks(List<Object> links)
links
- The linkspublic Collection withLinks(List<Object> links)
@BeanProperty(name="*") public void setAdditionalProperty(String name, Object value)
public Collection withAdditionalProperty(String name, Object value)
Copyright © 2018 The Apache Software Foundation. All rights reserved.