|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.ext.atom.Text
public class Text
A Text construct contains human-readable text, usually in small quantities. The content of Text constructs is Language-Sensitive.
Constructor Summary | |
---|---|
Text(MediaType type)
Constructor. |
|
Text(MediaType type,
java.lang.String content)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getContent()
Returns the content. |
MediaType |
getType()
Returns the content type. |
void |
setContent(java.lang.String content)
Sets the content. |
void |
setType(MediaType type)
Sets the content type. |
static void |
writeElement(XmlWriter writer,
java.util.Date date,
java.lang.String namespace,
java.lang.String localName)
Writes the current object as an XML element using the given SAX writer. |
void |
writeElement(XmlWriter writer,
java.lang.String localName)
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 Text(MediaType type)
type
- The content type.public Text(MediaType type, java.lang.String content)
type
- The content type.content
- The content.Method Detail |
---|
public static void writeElement(XmlWriter writer, java.util.Date date, java.lang.String namespace, java.lang.String localName) throws org.xml.sax.SAXException
writer
- The SAX writer.namespace
- The element namespace URI.localName
- The local name of the element.
org.xml.sax.SAXException
public java.lang.String getContent()
public MediaType getType()
public void setContent(java.lang.String content)
content
- The content.public void setType(MediaType type)
type
- The content type.public void writeElement(XmlWriter writer, java.lang.String localName) throws org.xml.sax.SAXException
writer
- The SAX writer.localName
- The local name of the element.
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |