|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rometools.propono.atom.common.Collection
public class Collection
Models an Atom workspace collection.
Field Summary | |
---|---|
static String |
ENTRY_TYPE
|
Constructor Summary | |
---|---|
Collection(org.jdom.Element e)
Load self from XML element |
|
Collection(org.jdom.Element e,
String baseURI)
Load self from XML element and base URI for resolving relative URIs |
|
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 |
addAccept(String accept)
|
void |
addCategories(Categories cats)
Workspace can have multiple Categories objects |
org.jdom.Element |
collectionToElement()
Serialize an AtomService.Collection into an XML element |
Collection |
elementToCollection(org.jdom.Element element)
Deserialize an Atom service collection XML element into an object |
List |
getAccepts()
List of content-type ranges accepted by collection. |
List |
getCategories()
Get categories allowed by collection. |
String |
getHref()
The URI of the collection |
String |
getHrefResolved()
Get resolved URI of the collection, or null if impossible to determine |
String |
getHrefResolved(String relativeUri)
Get resolved URI using collection's baseURI, or null if impossible to determine |
String |
getTitle()
Must have human readable title |
String |
getTitleType()
Type of title ("text", "html" or "xhtml") |
protected void |
parseCollectionElement(org.jdom.Element element)
|
void |
setAccepts(List accepts)
|
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 |
Field Detail |
---|
public static final String ENTRY_TYPE
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.public Collection(org.jdom.Element e) throws ProponoException
ProponoException
public Collection(org.jdom.Element e, String baseURI) throws ProponoException
ProponoException
Method Detail |
---|
public List getAccepts()
public void addAccept(String accept)
public void setAccepts(List accepts)
public String getHref()
public void setHref(String href)
public String getHrefResolved()
public String getHrefResolved(String relativeUri)
public String getTitle()
public void setTitle(String title)
public String getTitleType()
public void setTitleType(String titleType)
public void addCategories(Categories cats)
public List getCategories()
com.sun.syndication.propono.atom.common.Categories
objects.public boolean accepts(String ct)
public org.jdom.Element collectionToElement()
public Collection elementToCollection(org.jdom.Element element) throws ProponoException
ProponoException
protected void parseCollectionElement(org.jdom.Element element) throws ProponoException
ProponoException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |