|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jxpath.XMLDocumentContainer
DocumentContainer
public class XMLDocumentContainer
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.
Field Summary | |
---|---|
private DocumentContainer |
delegate
Deprecated. |
private java.lang.Object |
document
Deprecated. |
private javax.xml.transform.Source |
source
Deprecated. |
private java.net.URL |
xmlURL
Deprecated. |
Constructor Summary | |
---|---|
XMLDocumentContainer(javax.xml.transform.Source source)
Deprecated. Create a new XMLDocumentContainer. |
|
XMLDocumentContainer(java.net.URL xmlURL)
Deprecated. Create a new XMLDocumentContainer. |
Method Summary | |
---|---|
java.lang.Object |
getValue()
Deprecated. Reads XML, caches it internally and returns the Document. |
void |
setValue(java.lang.Object value)
Deprecated. Throws an UnsupportedOperationException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private DocumentContainer delegate
private java.lang.Object document
private java.net.URL xmlURL
private javax.xml.transform.Source source
Constructor Detail |
---|
public XMLDocumentContainer(java.net.URL xmlURL)
xmlURL
- a URL for an XML file. Use getClass().getResource(resourceName)
to load XML from a resource file.public XMLDocumentContainer(javax.xml.transform.Source source)
source
- XML sourceMethod Detail |
---|
public java.lang.Object getValue()
getValue
in interface Container
public void setValue(java.lang.Object value)
setValue
in interface Container
value
- to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |