|
|||||||||
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.
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 |
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 |
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 |
getHrefResolved()
Get unresolved URI of the collection, 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 |
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 |
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 String getAccept()
public void setAccept(String accept)
public String getHref()
public void setHref(String href)
public String getHrefResolved()
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 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 |