|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.gwt.resource.Variant
org.restlet.gwt.resource.Representation
org.restlet.gwt.resource.XmlRepresentation
public class XmlRepresentation
XML representation based on an XML DOM document. DOM is a standard XML object model defined by the W3C.
| Field Summary |
|---|
| Fields inherited from class org.restlet.gwt.resource.Representation |
|---|
UNKNOWN_SIZE |
| Constructor Summary | |
|---|---|
XmlRepresentation(MediaType mediaType)
Constructor for an empty document. |
|
XmlRepresentation(MediaType mediaType,
Document xmlDocument)
Constructor from an existing DOM document. |
|
XmlRepresentation(Representation xmlRepresentation)
Constructor. |
|
| Method Summary | |
|---|---|
Document |
getDocument()
Returns the wrapped DOM document. |
String |
getText()
Converts the representation to a string value. |
void |
release()
Releases the wrapped DOM document and the source XML representation if they have been defined. |
void |
setDocument(Document dom)
Sets the wrapped DOM document. |
| Methods inherited from class org.restlet.gwt.resource.Representation |
|---|
createEmpty, getDownloadName, getExpirationDate, getModificationDate, getSize, getTag, isAvailable, isDownloadable, isTransient, setAvailable, setDownloadable, setDownloadName, setExpirationDate, setModificationDate, setSize, setTag, setTransient |
| Methods inherited from class org.restlet.gwt.resource.Variant |
|---|
getCharacterSet, getEncodings, getIdentifier, getLanguages, getMediaType, setCharacterSet, setEncodings, setIdentifier, setIdentifier, setLanguages, setMediaType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlRepresentation(MediaType mediaType)
mediaType - The representation's media type.
public XmlRepresentation(MediaType mediaType,
Document xmlDocument)
mediaType - The representation's media type.xmlDocument - The source DOM document.public XmlRepresentation(Representation xmlRepresentation)
xmlRepresentation - A source XML representation to parse.| Method Detail |
|---|
public Document getDocument()
public String getText()
Representation
getText in class Representationpublic void release()
release in class Representationpublic void setDocument(Document dom)
dom - The wrapped DOM document.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||