|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.syndication.propono.atom.common.Collection
public class Collection
Models an Atom workspace collection.
Constructor Summary | |
---|---|
Collection(String title,
String titleType,
String href)
Collection MUST have title and href. |
Method Summary | |
---|---|
boolean |
accepts(String ct)
Returns true if contentType is accepted by collection. |
void |
addCategories(Categories cats)
Workspace can have multiple Categories objects |
static org.jdom.Element |
collectionToElement(Collection collection)
Serialize an AtomService.Collection into an XML element |
static Collection |
elementToCollection(org.jdom.Element element)
Deserialize an Atom service collection XML element into an object |
String |
getAccept()
Comma separated list of media-ranges accepted by collection. |
List |
getCategories()
Get categories allowed by collection. |
String |
getHref()
The URI of the collection |
String |
getTitle()
Must have human readable title |
String |
getTitleType()
Type of title ("text", "html" or "xhtml") |
void |
setAccept(String accept)
Get content-type range accepted by collection. |
void |
setHref(String href)
Set URI of collection |
void |
setTitle(String title)
Set title of collection. |
void |
setTitleType(String titleType)
Type of title ("text", "html" or "xhtml") |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Collection(String title, String titleType, String href)
title
- Title for collectiontitleType
- Content type of title (null for plain text)href
- Collection URI.Method Detail |
---|
public String getAccept()
public void setAccept(String accept)
public String getHref()
public void setHref(String href)
public String getTitle()
public void setTitle(String title)
public String getTitleType()
public void setTitleType(String titleType)
public void addCategories(Categories cats)
public List getCategories()
Categories
objects.public boolean accepts(String ct)
public static org.jdom.Element collectionToElement(Collection collection)
public static Collection elementToCollection(org.jdom.Element element)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |