@Deprecated public class Collection extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ENTRY_TYPE
Deprecated.
|
Constructor and Description |
---|
Collection(org.jdom2.Element e)
Deprecated.
Load self from XML element
|
Collection(org.jdom2.Element e,
String baseURI)
Deprecated.
Load self from XML element and base URI for resolving relative URIs
|
Collection(String title,
String titleType,
String href)
Deprecated.
Collection MUST have title and href.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(String ct)
Deprecated.
Returns true if contentType is accepted by collection.
|
void |
addAccept(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
|
List<String> |
getAccepts()
Deprecated.
List of content-type ranges accepted by collection.
|
List<Categories> |
getCategories()
Deprecated.
Get categories allowed by collection.
|
String |
getHref()
Deprecated.
The URI of the collection
|
String |
getHrefResolved()
Deprecated.
Get resolved URI of the collection, or null if impossible to determine
|
String |
getHrefResolved(String relativeUri)
Deprecated.
Get resolved URI using collection's baseURI, or null if impossible to determine
|
String |
getTitle()
Deprecated.
Must have human readable title
|
String |
getTitleType()
Deprecated.
Type of title ("text", "html" or "xhtml")
|
protected void |
parseCollectionElement(org.jdom2.Element element)
Deprecated.
|
void |
setAccepts(List<String> accepts)
Deprecated.
|
void |
setHref(String href)
Deprecated.
Set URI of collection
|
void |
setTitle(String title)
Deprecated.
Set title of collection.
|
void |
setTitleType(String titleType)
Deprecated.
Type of title ("text", "html" or "xhtml")
|
public static final String ENTRY_TYPE
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.jdom2.Element e) throws ProponoException
ProponoException
public Collection(org.jdom2.Element e, String baseURI) throws ProponoException
ProponoException
public List<String> getAccepts()
public void addAccept(String accept)
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<Categories> getCategories()
com.rometools.rome.propono.atom.common.Categories
objects.public boolean accepts(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
Copyright © 2021. All rights reserved.