|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.ext.atom.Content
public class Content
Either contains or links to the content of the entry.
Constructor Summary | |
---|---|
Content()
Constructor. |
Method Summary | |
---|---|
Reference |
getExternalRef()
Returns the reference to the external representation. |
MediaType |
getExternalType()
Returns the expected media type of the external content. |
Representation |
getInlineContent()
Returns the representation for inline content. |
boolean |
isExternal()
Indicates if the content is available externally. |
boolean |
isInline()
Indicates if the content is available inline. |
void |
setExternalRef(Reference externalRef)
Sets the reference to the external representation. |
void |
setExternalType(MediaType externalType)
Sets the expected media type of the external content. |
void |
setInlineContent(Representation inlineContent)
Sets the representation for inline content. |
void |
writeElement(XmlWriter writer)
Writes the current object as an XML element using the given SAX writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Content()
Method Detail |
---|
public Reference getExternalRef()
public MediaType getExternalType()
public Representation getInlineContent()
public boolean isExternal()
public boolean isInline()
public void setExternalRef(Reference externalRef)
externalRef
- The reference to the external representation.public void setExternalType(MediaType externalType)
externalType
- The expected media type of the external content.public void setInlineContent(Representation inlineContent)
inlineContent
- The representation for inline content.public void writeElement(XmlWriter writer) throws org.xml.sax.SAXException
writer
- The SAX writer.
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |