@Deprecated
public class Collection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
accepts
Deprecated.
|
private java.lang.String |
baseURI
Deprecated.
|
private java.util.List<Categories> |
categories
Deprecated.
|
private org.jdom2.Element |
collectionElement
Deprecated.
|
static java.lang.String |
ENTRY_TYPE
Deprecated.
|
private java.lang.String |
href
Deprecated.
|
private java.lang.String |
title
Deprecated.
|
private java.lang.String |
titleType
Deprecated.
|
Constructor and Description |
---|
Collection(org.jdom2.Element e)
Deprecated.
Load self from XML element
|
Collection(org.jdom2.Element e,
java.lang.String baseURI)
Deprecated.
Load self from XML element and base URI for resolving relative URIs
|
Collection(java.lang.String title,
java.lang.String titleType,
java.lang.String href)
Deprecated.
Collection MUST have title and href.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(java.lang.String ct)
Deprecated.
Returns true if contentType is accepted by collection.
|
void |
addAccept(java.lang.String accept)
Deprecated.
|
void |
addCategories(Categories cats)
Deprecated.
Workspace can have multiple Categories objects
|
org.jdom2.Element |
collectionToElement()
Deprecated.
Serialize an AtomService.Collection into an XML element
|
Collection |
elementToCollection(org.jdom2.Element element)
Deprecated.
Deserialize an Atom service collection XML element into an object
|
java.util.List<java.lang.String> |
getAccepts()
Deprecated.
List of content-type ranges accepted by collection.
|
java.util.List<Categories> |
getCategories()
Deprecated.
Get categories allowed by collection.
|
java.lang.String |
getHref()
Deprecated.
The URI of the collection
|
java.lang.String |
getHrefResolved()
Deprecated.
Get resolved URI of the collection, or null if impossible to determine
|
java.lang.String |
getHrefResolved(java.lang.String relativeUri)
Deprecated.
Get resolved URI using collection's baseURI, or null if impossible to determine
|
java.lang.String |
getTitle()
Deprecated.
Must have human readable title
|
java.lang.String |
getTitleType()
Deprecated.
Type of title ("text", "html" or "xhtml")
|
protected void |
parseCollectionElement(org.jdom2.Element element)
Deprecated.
|
void |
setAccepts(java.util.List<java.lang.String> accepts)
Deprecated.
|
void |
setHref(java.lang.String href)
Deprecated.
Set URI of collection
|
void |
setTitle(java.lang.String title)
Deprecated.
Set title of collection.
|
void |
setTitleType(java.lang.String titleType)
Deprecated.
Type of title ("text", "html" or "xhtml")
|
public static final java.lang.String ENTRY_TYPE
private final java.util.List<Categories> categories
private org.jdom2.Element collectionElement
private java.lang.String baseURI
private java.lang.String title
private java.lang.String titleType
private java.util.List<java.lang.String> accepts
private java.lang.String href
public Collection(java.lang.String title, java.lang.String titleType, java.lang.String href)
title
- Title for collectiontitleType
- Content type of title (null for plain text)href
- Collection URI.public Collection(org.jdom2.Element e) throws ProponoException
ProponoException
public Collection(org.jdom2.Element e, java.lang.String baseURI) throws ProponoException
ProponoException
public java.util.List<java.lang.String> getAccepts()
public void addAccept(java.lang.String accept)
public void setAccepts(java.util.List<java.lang.String> accepts)
public java.lang.String getHref()
public void setHref(java.lang.String href)
public java.lang.String getHrefResolved()
public java.lang.String getHrefResolved(java.lang.String relativeUri)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String getTitleType()
public void setTitleType(java.lang.String titleType)
public void addCategories(Categories cats)
public java.util.List<Categories> getCategories()
com.rometools.rome.propono.atom.common.Categories
objects.public boolean accepts(java.lang.String ct)
public org.jdom2.Element collectionToElement()
public Collection elementToCollection(org.jdom2.Element element) throws ProponoException
ProponoException
protected void parseCollectionElement(org.jdom2.Element element) throws ProponoException
ProponoException