|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.resteasy.plugins.providers.atom.CommonAttributes
org.jboss.resteasy.plugins.providers.atom.Content
public class Content
Represents an atom:content element.
Per RFC4287:
The "atom:content" element either contains or links to the content of
the entry. The content of atom:content is Language-Sensitive.
atomInlineTextContent =
element atom:content {
atomCommonAttributes,
attribute type { "text" | "html" }?,
(text)*
}
atomInlineXHTMLContent =
element atom:content {
atomCommonAttributes,
attribute type { "xhtml" },
xhtmlDiv
}
atomInlineOtherContent =
element atom:content {
atomCommonAttributes,
attribute type { atomMediaType }?,
(text|anyElement)*
}
atomOutOfLineContent =
element atom:content {
atomCommonAttributes,
attribute type { atomMediaType }?,
attribute src { atomUri },
empty
}
atomContent = atomInlineTextContent
| atomInlineXHTMLContent
| atomInlineOtherContent
| atomOutOfLineContent
| Field Summary | |
|---|---|
protected JAXBContextFinder |
finder
|
| Constructor Summary | |
|---|---|
Content()
|
|
| Method Summary | ||
|---|---|---|
org.w3c.dom.Element |
getElement()
Get content as an XML Element if the content is XML. |
|
java.lang.Object |
getJAXBObject()
Returns previous extracted jaxbobject from a call to getJAXBObject(Class |
|
|
getJAXBObject(java.lang.Class<T> clazz)
Extract the content as the provided JAXB annotated type. |
|
java.lang.String |
getText()
If content is text, return it as a String. |
|
MediaType |
getType()
Mime type of the content |
|
void |
setElement(org.w3c.dom.Element element)
Set the content to an XML Element |
|
protected void |
setFinder(JAXBContextFinder finder)
|
|
void |
setJAXBObject(java.lang.Object obj)
|
|
void |
setText(java.lang.String text)
Set content as text |
|
void |
setType(MediaType type)
|
|
void |
setType(java.lang.String type)
|
|
| Methods inherited from class org.jboss.resteasy.plugins.providers.atom.CommonAttributes |
|---|
getBase, getExtensionAttributes, getLanguage, setBase, setLanguage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JAXBContextFinder finder
| Constructor Detail |
|---|
public Content()
| Method Detail |
|---|
protected void setFinder(JAXBContextFinder finder)
public MediaType getType()
public void setType(MediaType type)
public void setType(java.lang.String type)
public java.lang.String getText()
public void setText(java.lang.String text)
text - public org.w3c.dom.Element getElement()
public void setElement(org.w3c.dom.Element element)
element -
public <T> T getJAXBObject(java.lang.Class<T> clazz)
throws javax.xml.bind.JAXBException
clazz -
javax.xml.bind.JAXBExceptionpublic java.lang.Object getJAXBObject()
public void setJAXBObject(java.lang.Object obj)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||