org.purl.sword.base
Interface SwordElementInterface

All Known Implementing Classes:
Accept, Author, BasicBooleanContentElement, BasicContentElement, BasicIntegerContentElement, BasicStringContentElement, Category, Collection, Content, Contributor, DcAbstract, Email, Entry, Generator, Id, Link, Name, Published, Rights, Service, Source, Summary, SwordAcceptPackaging, SwordCollectionPolicy, SWORDEntry, SWORDErrorDocument, SwordMaxUploadSize, SwordMediation, SwordNoOp, SwordPackaging, SwordService, SwordTreatment, SwordUserAgent, SwordVerbose, SwordVerboseDescription, SwordVersion, TextConstruct, Title, Updated, Uri, Workspace

public interface SwordElementInterface

Common methods that should be supported by all classes that represent data in the SWORD api.

Author:
Neil Taylor

Method Summary
 nu.xom.Element marshall()
          Marshall the data in the object to the XOM Element.
 void unmarshall(nu.xom.Element element)
          Unmarshall the data in the specified element and store it in the object.
 

Method Detail

marshall

nu.xom.Element marshall()
Marshall the data in the object to the XOM Element.

Returns:
The Element.

unmarshall

void unmarshall(nu.xom.Element element)
                throws UnmarshallException
Unmarshall the data in the specified element and store it in the object.

Parameters:
element - The data to unmarshall.
Throws:
UnmarshallException - If the element is not of the correct type, or if there is an error unmarshalling the data.


Copyright © 2010 The DSpace Foundation. All Rights Reserved.