Class XMLDocumentContainer

  • All Implemented Interfaces:
    java.io.Serializable, Container

    public class XMLDocumentContainer
    extends java.lang.Object
    implements Container
    Deprecated.
    1.1 Please use DocumentContainer
    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: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
    Author:
    Dmitri Plotnikov
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      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

      Constructors 
      Constructor Description
      XMLDocumentContainer​(java.net.URL xmlURL)
      Deprecated.
      Create a new XMLDocumentContainer.
      XMLDocumentContainer​(javax.xml.transform.Source source)
      Deprecated.
      Create a new XMLDocumentContainer.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      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

      • document

        private java.lang.Object document
        Deprecated.
      • xmlURL

        private java.net.URL xmlURL
        Deprecated.
      • source

        private javax.xml.transform.Source source
        Deprecated.
    • Constructor Detail

      • XMLDocumentContainer

        public XMLDocumentContainer​(java.net.URL xmlURL)
        Deprecated.
        Create a new XMLDocumentContainer.
        Parameters:
        xmlURL - a URL for an XML file. Use getClass().getResource(resourceName) to load XML from a resource file.
      • XMLDocumentContainer

        public XMLDocumentContainer​(javax.xml.transform.Source source)
        Deprecated.
        Create a new XMLDocumentContainer.
        Parameters:
        source - XML source
    • Method Detail

      • getValue

        public java.lang.Object getValue()
        Deprecated.
        Reads XML, caches it internally and returns the Document.
        Specified by:
        getValue in interface Container
        Returns:
        Object value
      • setValue

        public void setValue​(java.lang.Object value)
        Deprecated.
        Throws an UnsupportedOperationException
        Specified by:
        setValue in interface Container
        Parameters:
        value - to set