|
||||||||||
| 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.Content
public class Content
Represents an ATOM Content element.
| Field Summary | |
|---|---|
static String |
ATTRIBUTE_SRC
The identifier for the src attribute. |
static String |
ATTRIBUTE_TYPE
The identifier for the type attribute. |
| Fields inherited from class org.purl.sword.base.XmlElement |
|---|
DATE_FORMAT, DATE_FORMATS, xmlName |
| Constructor Summary | |
|---|---|
Content()
Create a new instance and set the prefix to 'atom' and the local name to 'content'. |
|
| Method Summary | |
|---|---|
static XmlName |
elementName()
|
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. |
String |
toString()
Get a string representation. |
void |
unmarshall(nu.xom.Element content)
Unmarshall the data in the specified element and store it in the object. |
SwordValidationInfo |
unmarshall(nu.xom.Element content,
Properties validationProperties)
Unmarshall the content element into the data in this object. |
protected SwordValidationInfo |
validate(List<SwordValidationInfo> elements,
List<SwordValidationInfo> attributes,
Properties validationContext)
|
SwordValidationInfo |
validate(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, wait, wait, wait |
| Field Detail |
|---|
public static final String ATTRIBUTE_SRC
public static final String ATTRIBUTE_TYPE
| Constructor Detail |
|---|
public Content()
| Method Detail |
|---|
public static XmlName elementName()
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
SwordElementInterface
unmarshall in interface SwordElementInterfacecontent - The data to unmarshall.
UnmarshallException - If the element is not of the
correct type, or if there is an error unmarshalling the data.
public SwordValidationInfo unmarshall(nu.xom.Element content,
Properties validationProperties)
throws UnmarshallException
UnmarshallException - If the element does not contain a
content element or if there are problems
accessing the data.public SwordValidationInfo validate(Properties validationContext)
validate in class XmlElement
protected SwordValidationInfo validate(List<SwordValidationInfo> elements,
List<SwordValidationInfo> attributes,
Properties validationContext)
elements - attributes -
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||