|
||||||||||
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,
String content)
Constructor. |
|
Text(String content)
Constructor. |
Method Summary | |
---|---|
String |
getContent()
Returns the content. |
MediaType |
getType()
Returns the content type. |
void |
setContent(String content)
Sets the content. |
void |
setType(MediaType type)
Sets the content type. |
String |
toString()
|
static void |
writeElement(XmlWriter writer,
Date date,
String namespace,
String localName)
Writes the current object as an XML element using the given SAX writer. |
void |
writeElement(XmlWriter writer,
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, wait, wait, wait |
Constructor Detail |
---|
public Text(MediaType type)
type
- The content type.public Text(MediaType type, String content)
type
- The content type.content
- The content.public Text(String content)
content
- The content.Method Detail |
---|
public static void writeElement(XmlWriter writer, Date date, String namespace, String localName) throws SAXException
writer
- The SAX writer.namespace
- The element namespace URI.localName
- The local name of the element.
SAXException
public String getContent()
public MediaType getType()
public void setContent(String content)
content
- The content.public void setType(MediaType type)
type
- The content type.public String toString()
toString
in class Object
public void writeElement(XmlWriter writer, String localName) throws SAXException
writer
- The SAX writer.localName
- The local name of the element.
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |