|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.purl.sword.base.XmlElement
org.w3.atom.Entry
public class Entry
Represents an ATOM entry.
| Field Summary |
|---|
| Fields inherited from class org.purl.sword.base.XmlElement |
|---|
DATE_FORMAT, localName, prefix |
| Constructor Summary | |
|---|---|
Entry()
Create a new instance of the class and initialise it. |
|
| Method Summary | |
|---|---|
void |
addAuthors(Author author)
Add an author to the Entry. |
void |
addCategory(String category)
Add a category. |
void |
addContributor(Contributor contributor)
Add a contributor. |
void |
addLink(Link link)
Get the link for this Entry. |
void |
clearAuthors()
Clear the list of authors. |
void |
clearCategories()
Clear the list of categories. |
void |
clearContributors()
Clear the list of contributors. |
void |
clearLinks()
Clear the list of links. |
Iterator<Author> |
getAuthors()
Get an iterator for the authors in the Entry. |
Iterator<String> |
getCategories()
Get an iterator for the categories in this Entry. |
Content |
getContent()
Get the content element for this Entry. |
Iterator<Contributor> |
getContributors()
Get a list of contributors. |
String |
getId()
Get the ID for this Entry. |
Iterator<Link> |
getLinks()
Get the list of links for this Entry. |
String |
getPublished()
Get the published date, expressed as a String. |
Rights |
getRights()
Get the rights for this Entry. |
Source |
getSource()
Get the source for this Entry. |
Summary |
getSummary()
Get the summary. |
Title |
getTitle()
Get the title. |
String |
getUpdated()
Get the updated date, expressed as a String. |
nu.xom.Element |
marshall()
Mashall the data stored in this object into Element objects. |
void |
setContent(Content content)
Set the content element for this Entry. |
void |
setId(String id)
Set the ID for this Entry. |
void |
setPublished(String published)
Set the published date. |
void |
setRights(Rights rights)
Set the rights for this Entry. |
void |
setSource(Source source)
Set the source for this entry. |
void |
setSummary(Summary summary)
Set the summary. |
void |
setTitle(Title title)
Set the title. |
void |
setUpdated(String updated)
Set the updated date. |
void |
unmarshall(nu.xom.Element entry)
Unmarshall the contents of the Entry element into the internal data objects in this object. |
| Methods inherited from class org.purl.sword.base.XmlElement |
|---|
dateToString, getQualifiedName, getQualifiedName, isInstanceOf, stringToDate, unmarshallBoolean, unmarshallDate, unmarshallInteger, unmarshallString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Entry()
| Method Detail |
|---|
public nu.xom.Element marshall()
marshall in interface SwordElementInterface
public void unmarshall(nu.xom.Element entry)
throws UnmarshallException
unmarshall in interface SwordElementInterfaceentry - The Entry element to process.
UnmarshallException - If the element does not contain an ATOM entry
element, or if there is a problem processing the element or any
subelements.public Iterator<Author> getAuthors()
public void addAuthors(Author author)
author - The author to add.public void clearAuthors()
public Iterator<String> getCategories()
public void addCategory(String category)
category - the category to add.public void clearCategories()
public Content getContent()
public void setContent(Content content)
content - public Iterator<Contributor> getContributors()
public void addContributor(Contributor contributor)
contributor - The contributor.public void clearContributors()
public String getId()
public void setId(String id)
id - The ID.public Iterator<Link> getLinks()
public void addLink(Link link)
link - The link.public void clearLinks()
public String getPublished()
public void setPublished(String published)
throws ParseException
published - The string.
ParseException, - if the date does not match format.
ParseExceptionpublic Rights getRights()
public void setRights(Rights rights)
rights - The rights.public Source getSource()
public void setSource(Source source)
source - The source.public Summary getSummary()
public void setSummary(Summary summary)
summary - The summary.public Title getTitle()
public void setTitle(Title title)
title - The title.public String getUpdated()
public void setUpdated(String updated)
throws ParseException
updated - The string.
ParseException, - if the date does not match format.
ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||