|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.purl.sword.base.XmlElement
org.purl.sword.atom.Entry
public class Entry
Represents an ATOM entry.
| Field Summary | |
|---|---|
static String |
ELEMENT_CATEGORY
Deprecated. |
static String |
ELEMENT_GENERATOR
Deprecated. |
static String |
ELEMENT_ID
Deprecated. |
static String |
ELEMENT_NAME
Deprecated. |
static String |
ELEMENT_PUBLISHED
Deprecated. |
static String |
ELEMENT_UPDATED
Deprecated. |
| Fields inherited from class org.purl.sword.base.XmlElement |
|---|
DATE_FORMAT, DATE_FORMATS, xmlName |
| Constructor Summary | |
|---|---|
Entry()
Create a new instance of the class and initialise it. |
|
Entry(String prefix,
String element)
Create a new instance of the class an initalise it, setting the element namespace and name. |
|
Entry(String prefix,
String element,
String namespaceUri)
|
|
Entry(XmlName name)
|
|
| 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. |
static XmlName |
elementName()
|
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. |
Generator |
getGenerator()
Get the generator for this Entry. |
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()
Deprecated. |
Summary |
getSummary()
Get the summary. |
Title |
getTitle()
Get the title. |
String |
getUpdated()
Get the updated date, expressed as a String. |
protected void |
initialise()
|
protected boolean |
isElementChecked(XmlName elementName)
|
nu.xom.Element |
marshall()
Marshal the data stored in this object into Element objects. |
protected void |
marshallElements(nu.xom.Element entry)
|
void |
setContent(Content content)
Set the content element for this Entry. |
void |
setGenerator(Generator generator)
Set the generator 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)
Deprecated. |
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)
Unmarshal the contents of the Entry element into the internal data objects in this object. |
SwordValidationInfo |
unmarshall(nu.xom.Element entry,
Properties validationProperties)
|
SwordValidationInfo |
unmarshallWithoutValidate(nu.xom.Element entry,
Properties validationProperties)
|
SwordValidationInfo |
validate(Properties validationContext)
|
protected SwordValidationInfo |
validate(SwordValidationInfo info,
Properties validationContext)
|
| Methods inherited from class org.purl.sword.base.XmlElement |
|---|
createValidAttributeInfo, getQualifiedName, getQualifiedName, getQualifiedNameWithPrefix, getXmlName, handleIncorrectElement, isInstanceOf, isInstanceOf, processUnexpectedAttributes, processUnexpectedAttributes, unmarshallBoolean, unmarshallInteger, unmarshallString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Deprecated public static final String ELEMENT_NAME
@Deprecated public static final String ELEMENT_ID
@Deprecated public static final String ELEMENT_PUBLISHED
@Deprecated public static final String ELEMENT_UPDATED
@Deprecated public static final String ELEMENT_CATEGORY
@Deprecated public static final String ELEMENT_GENERATOR
| Constructor Detail |
|---|
public Entry()
public Entry(String prefix,
String element)
prefix - The namespace prefix of the elementelement - The element name
public Entry(String prefix,
String element,
String namespaceUri)
prefix - element - namespaceUri - public Entry(XmlName name)
| Method Detail |
|---|
public static XmlName elementName()
protected boolean isElementChecked(XmlName elementName)
protected void initialise()
public nu.xom.Element marshall()
marshall in interface SwordElementInterfaceprotected void marshallElements(nu.xom.Element entry)
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 SwordValidationInfo unmarshallWithoutValidate(nu.xom.Element entry,
Properties validationProperties)
throws UnmarshallException
UnmarshallException
public SwordValidationInfo unmarshall(nu.xom.Element entry,
Properties validationProperties)
throws UnmarshallException
UnmarshallExceptionpublic SwordValidationInfo validate(Properties validationContext)
validate in class XmlElement
protected SwordValidationInfo validate(SwordValidationInfo info,
Properties validationContext)
info - validationContext -
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 Generator getGenerator()
public void setGenerator(Generator generator)
generator - 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)
published - The string.public Rights getRights()
public void setRights(Rights rights)
rights - The rights.@Deprecated public Source getSource()
@Deprecated 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)
updated - The string.setPublished
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||