|
||||||||||
| 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.base.Collection
public class Collection
A representation of a SWORD Collection. http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_APP_Profile_0.5
| Field Summary | |
|---|---|
static String |
ELEMENT_NAME
The element name. |
| Fields inherited from class org.purl.sword.base.XmlElement |
|---|
DATE_FORMAT, localName, prefix |
| Constructor Summary | |
|---|---|
Collection()
Create a new instance. |
|
Collection(String location)
Create a new instance and set the initial location for the collection. |
|
| Method Summary | |
|---|---|
void |
addAccepts(String accepts)
Add an accepts entry. |
void |
clearAccepts()
Remove all of the accepts associated with this Collection. |
String |
getAbstract()
Get the DC Term abstract. |
String[] |
getAccepts()
Retrieve an array that holds all of the Accept details. |
List<String> |
getAcceptsList()
Retrieve an array that holds all of the Accept details. |
String |
getCollectionPolicy()
Get the collection policy. |
String |
getFormatNamespace()
Get the format namespace. |
String |
getLocation()
Get the location. |
boolean |
getMediation()
Get the mediation value. |
String |
getNamespace()
Deprecated. Use getFormatNamespace() |
String |
getTitle()
Get the title. |
String |
getTreatment()
Get the treatment value. |
nu.xom.Element |
marshall()
Marshall the data in this object to an Element object. |
void |
setAbstract(String abstractString)
Set the abstract. |
void |
setCollectionPolicy(String collectionPolicy)
Set the collection policy. |
void |
setFormatNamespace(String namespace)
Set the format namespace. |
void |
setLocation(String location)
Set the location. |
void |
setMediation(boolean mediation)
Set the mediation value. |
void |
setNamespace(String namespace)
Deprecated. Use setFormatNamespace |
void |
setTitle(String title)
Set the title. |
void |
setTreatment(String treatment)
Set the treatment. |
String |
toString()
Get a string representation of this object. |
void |
unmarshall(nu.xom.Element collection)
Unmarshall the content element into the data 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, wait, wait, wait |
| Field Detail |
|---|
public static final String ELEMENT_NAME
| Constructor Detail |
|---|
public Collection()
public Collection(String location)
location - The initial location, expressed as a URL.| Method Detail |
|---|
public String[] getAccepts()
public List<String> getAcceptsList()
public void addAccepts(String accepts)
accepts - The accepts value.public void clearAccepts()
public String getCollectionPolicy()
public void setCollectionPolicy(String collectionPolicy)
collectionPolicy - The collection policy.public String getLocation()
public void setLocation(String location)
location - The location.public boolean getMediation()
public void setMediation(boolean mediation)
mediation - The mediation value.public String getNamespace()
public String getFormatNamespace()
public void setNamespace(String namespace)
namespace - the namespace to setpublic void setFormatNamespace(String namespace)
namespace - The namespace.public String getAbstract()
public void setAbstract(String abstractString)
abstractString - The abstract.public void setTitle(String title)
title - The title.public String getTitle()
null if no title has been set.public String getTreatment()
public void setTreatment(String treatment)
treatment - The treatment.public String toString()
toString in class Objectpublic nu.xom.Element marshall()
marshall in interface SwordElementInterface
public void unmarshall(nu.xom.Element collection)
throws UnmarshallException
unmarshall in interface SwordElementInterfacecollection - The data to unmarshall.
UnmarshallException - If the element does not contain a
content element or if there are problems
accessing the data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||