public class SimpleCollectionInfo extends java.lang.Object implements CollectionInfo, java.io.Serializable
| Constructor and Description |
|---|
SimpleCollectionInfo(java.lang.String title,
java.lang.String href,
java.lang.String... accepts) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCategoriesInfo(CategoriesInfo... catinfos) |
Collection |
asCollectionElement(RequestContext request)
Converts this to an instance of the FOM Collection interface
|
boolean |
equals(java.lang.Object obj) |
java.lang.String[] |
getAccepts(RequestContext request)
Returns an array of MIME media types for the app:collection element's
app:accept elements.
|
CategoriesInfo[] |
getCategoriesInfo(RequestContext request)
Return the collection of CategoriesInfo objects for the app:collection
element's app:categories elements.
|
java.lang.String |
getHref(RequestContext request)
Get the value of the app:collection element's href attribute.
|
java.lang.String |
getTitle(RequestContext request)
Get the value of the app:collection element's atom:title element.
|
int |
hashCode() |
void |
setCategoriesInfo(CategoriesInfo... catinfos) |
public SimpleCollectionInfo(java.lang.String title,
java.lang.String href,
java.lang.String... accepts)
public java.lang.String[] getAccepts(RequestContext request)
CollectionInfogetAccepts in interface CollectionInfopublic java.lang.String getHref(RequestContext request)
CollectionInfogetHref in interface CollectionInfopublic java.lang.String getTitle(RequestContext request)
CollectionInfogetTitle in interface CollectionInfopublic CategoriesInfo[] getCategoriesInfo(RequestContext request)
CollectionInfogetCategoriesInfo in interface CollectionInfopublic void addCategoriesInfo(CategoriesInfo... catinfos)
public void setCategoriesInfo(CategoriesInfo... catinfos)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic Collection asCollectionElement(RequestContext request)
CollectionInfoasCollectionElement in interface CollectionInfoCopyright © 2010 - 2020 Adobe. All Rights Reserved