org.apache.commons.jxpath
Class XMLDocumentContainer
java.lang.Object
org.apache.commons.jxpath.XMLDocumentContainer
- Container
public class XMLDocumentContainer
extends java.lang.Object
An XML document container reads and parses XML only when it is
accessed. JXPath traverses Containers transparently -
you use the same paths to access objects in containers as you
do to access those objects directly. You can create
XMLDocumentContainers for various XML documents that may or
may not be accessed by XPaths. If they are, they will be automatically
read, parsed and traversed. If they are not - they won't be
read at all.
$Revision: 1.11 $ $Date: 2004/02/29 14:17:42 $
Object | getValue() - Reads XML, caches it internally and returns the Document.
|
void | setValue(Object value) - Throws an UnsupportedOperationException
|
XMLDocumentContainer
public XMLDocumentContainer(Source source)
XMLDocumentContainer
public XMLDocumentContainer(URL xmlURL)
getValue
public Object getValue()
Reads XML, caches it internally and returns the Document.
- getValue in interface Container
setValue
public void setValue(Object value)
Throws an UnsupportedOperationException
- setValue in interface Container