| |
|
| java.lang.Object org.restlet.resource.Variant org.restlet.resource.Representation org.restlet.resource.StreamRepresentation org.restlet.resource.OutputRepresentation org.restlet.resource.XmlRepresentation
All known Subclasses: org.restlet.resource.SaxRepresentation, org.restlet.resource.DomRepresentation,
XmlRepresentation | abstract public class XmlRepresentation extends OutputRepresentation implements NamespaceContext(Code) | | Representation based on an XML document. It knows how to evaluate XPath
expressions and how to manage a namespace context.
author: Jerome Louvel (contact@noelios.com) |
XmlRepresentation | public XmlRepresentation(MediaType mediaType)(Code) | | Constructor.
Parameters: mediaType - The representation's mediaType. |
XmlRepresentation | public XmlRepresentation(MediaType mediaType, long expectedSize)(Code) | | Constructor.
Parameters: mediaType - The representation's mediaType. Parameters: expectedSize - The expected input stream size. |
getBoolean | public Boolean getBoolean(String expression)(Code) | | Evaluates an XPath expression as a boolean. If the evaluation fails, null
will be returned.
The evaluation result. |
getNode | public Node getNode(String expression)(Code) | | Evaluates an XPath expression as a DOM Node. If the evaluation fails,
null will be returned.
The evaluation result. |
getNodes | public NodeSet getNodes(String expression)(Code) | | Evaluates an XPath expression as a DOM NodeList. If the evaluation fails,
null will be returned.
The evaluation result. |
getNumber | public Double getNumber(String expression)(Code) | | Evaluates an XPath expression as a number. If the evaluation fails, null
will be returned.
The evaluation result. |
getText | public String getText(String expression)(Code) | | Evaluates an XPath expression as a string.
The evaluation result. |
isNamespaceAware | public boolean isNamespaceAware()(Code) | | Indicates if processing is namespace aware.
True if processing is namespace aware. |
putNamespace | public void putNamespace(String prefix, String namespaceURI)(Code) | | Puts a new mapping between a prefix and a namespace URI.
Parameters: prefix - The namespace prefix. Parameters: namespaceURI - The namespace URI. |
setNamespaceAware | public void setNamespaceAware(boolean namespaceAware)(Code) | | Indicates if processing is namespace aware.
Parameters: namespaceAware - Indicates if processing is namespace aware. |
Fields inherited from org.restlet.resource.Variant | final public static long UNKNOWN_SIZE(Code)(Java Doc)
|
|
|
|