org.apache.commons.jxpath

Class XMLDocumentContainer

Implemented Interfaces:
Container

public class XMLDocumentContainer
extends java.lang.Object
implements Container

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.
Version:
$Revision: 1.11 $ $Date: 2004/02/29 14:17:42 $
Author:
Dmitri Plotnikov

Constructor Summary

XMLDocumentContainer(Source source)
XMLDocumentContainer(URL xmlURL)

Method Summary

Object
getValue()
Reads XML, caches it internally and returns the Document.
void
setValue(Object value)
Throws an UnsupportedOperationException

Constructor Details

XMLDocumentContainer

public XMLDocumentContainer(Source source)

XMLDocumentContainer

public XMLDocumentContainer(URL xmlURL)
Parameters:

Method Details

getValue

public Object getValue()
Reads XML, caches it internally and returns the Document.
Specified by:
getValue in interface Container

setValue

public void setValue(Object value)
Throws an UnsupportedOperationException
Specified by:
setValue in interface Container