|
||||||||||
| 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.Content
public class Content
Represents an ATOM Content element.
| Field Summary | |
|---|---|
static String |
ATTR_SRC
The identifier for the src attribute. |
static String |
ATTR_TYPE
The identifier for the type attribute. |
| Fields inherited from class org.purl.sword.base.XmlElement |
|---|
DATE_FORMAT, localName, prefix |
| Constructor Summary | |
|---|---|
Content()
Create a new instance and set the prefix to 'atom' and the local name to 'content'. |
|
| Method Summary | |
|---|---|
String |
getSource()
Get the Source. |
String |
getType()
Get the type. |
nu.xom.Element |
marshall()
Marshall the data in this object to an Element object. |
void |
setSource(String source)
Set the Source. |
void |
setType(String type)
Set the type for the content. |
void |
unmarshall(nu.xom.Element content)
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, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ATTR_SRC
public static final String ATTR_TYPE
| Constructor Detail |
|---|
public Content()
| Method Detail |
|---|
public String getSource()
public void setSource(String source)
source - The source.public String getType()
public void setType(String type)
throws InvalidMediaTypeException
application/zip.
type - The specified type.
InvalidMediaTypeException - If the specified type is null or
it does not match the specified pattern.public nu.xom.Element marshall()
marshall in interface SwordElementInterface
public void unmarshall(nu.xom.Element content)
throws UnmarshallException
unmarshall in interface SwordElementInterfacecontent - 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 | |||||||||