| |
|
| java.lang.Object org.purl.sword.base.XmlElement org.w3.atom.Content
Field Summary | |
final public static String | ATTR_SRC The identifier for the src attribute. | final public static String | ATTR_TYPE The identifier for the type attribute. |
Constructor Summary | |
public | Content() Create a new instance and set the prefix to
'atom' and the local name to 'content'. |
Method Summary | |
public String | getSource() Get the Source. | public String | getType() Get the type. | public Element | marshall() Marshall the data in this object to an Element object.
A XOM Element that holds the data for this Content element. | public void | setSource(String source) Set the Source. | public void | setType(String type) Set the type for the content. | public void | unmarshall(Element content) Unmarshall the content element into the data in this object. |
ATTR_SRC | final public static String ATTR_SRC(Code) | | The identifier for the src attribute.
|
ATTR_TYPE | final public static String ATTR_TYPE(Code) | | The identifier for the type attribute.
|
Content | public Content()(Code) | | Create a new instance and set the prefix to
'atom' and the local name to 'content'.
|
getSource | public String getSource()(Code) | | Get the Source.
The Source. |
getType | public String getType()(Code) | | Get the type.
The type. |
marshall | public Element marshall()(Code) | | Marshall the data in this object to an Element object.
A XOM Element that holds the data for this Content element. |
setSource | public void setSource(String source)(Code) | | Set the Source.
Parameters: source - The source. |
setType | public void setType(String type) throws InvalidMediaTypeException(Code) | | Set the type for the content. This should match the pattern
".* /.*" [Note, there is no space before the /, this has been added
to allow this text to be written in a Java comment.].
An example of the type is application/zip .
Parameters: type - The specified type. throws: InvalidMediaTypeException - If the specified type is null orit does not match the specified pattern. |
unmarshall | public void unmarshall(Element content) throws UnmarshallException(Code) | | Unmarshall the content element into the data in this object.
throws: UnmarshallException - If the element does not contain acontent element or if there are problemsaccessing the data. |
|
|
|