|
||||||||||
| 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.TextConstruct
public class TextConstruct
Represents a text construct in the ATOM elements. This is a superclass of several elements within this implementation.
| Field Summary |
|---|
| Fields inherited from class org.purl.sword.base.XmlElement |
|---|
DATE_FORMAT, localName, prefix |
| Constructor Summary | |
|---|---|
TextConstruct(String name)
Create a new instance. |
|
TextConstruct(String prefix,
String name)
Create a new instance, specifying the prefix and local name. |
|
| Method Summary | |
|---|---|
String |
getContent()
Get the content in this TextConstruct. |
ContentType |
getType()
Get the type. |
nu.xom.Element |
marshall()
Marshall the data in this object to an Element object. |
void |
setContent(String content)
Set the content. |
void |
setType(ContentType type)
Set the type. |
void |
unmarshall(nu.xom.Element text)
Unmarshall the text element into 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 TextConstruct(String prefix,
String name)
prefix - The prefix.name - The local name.public TextConstruct(String name)
name - The name that will be applied.| Method Detail |
|---|
public nu.xom.Element marshall()
marshall in interface SwordElementInterface
public void unmarshall(nu.xom.Element text)
throws UnmarshallException
unmarshall in interface SwordElementInterfacetext - The text element.
UnmarshallException - If the specified element is not of
the correct type, where the localname is used
to specify the valid name. Also thrown
if there is an issue accessing the data.public String getContent()
public void setContent(String content)
content - The content.public ContentType getType()
public void setType(ContentType type)
type - The type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||