Class Document

    • Constructor Detail

      • Document

        public Document()
    • Method Detail

      • computeSpecialProperties

        public int computeSpecialProperties()
        Get the static properties of this expression (other than its type). The result is bit-signficant. These properties are used for optimizations. In general, if property bit is set, it is true, but if it is unset, the value is unknown.
        Overrides:
        computeSpecialProperties in class SystemFunction
      • iterate

        public SequenceIterator iterate​(XPathContext context)
                                 throws XPathException
        iterate() handles evaluation of the function: it returns a sequence of Document nodes
        Specified by:
        iterate in interface Expression
        Overrides:
        iterate in class ComputedExpression
        Parameters:
        context - supplies the context for evaluation
        Returns:
        a SequenceIterator that can be used to iterate over the result of the expression
        Throws:
        XPathException - if any dynamic error occurs evaluating the expression
      • makeDoc

        public static NodeInfo makeDoc​(java.lang.String href,
                                       java.lang.String baseURL,
                                       XPathContext c,
                                       javax.xml.transform.SourceLocator locator)
                                throws XPathException
        Supporting routine to load one external document given a URI (href) and a baseURI
        Throws:
        XPathException
      • sendDocuments

        public void sendDocuments​(XPathContext context,
                                  Receiver out)
                           throws XPathException
        Copy the documents identified by this expression to a given Receiver. This method is used only when it is known that the documents are being copied, because there is then no problem about node identity.
        Throws:
        XPathException
      • sendDoc

        public static void sendDoc​(java.lang.String href,
                                   java.lang.String baseURL,
                                   XPathContext c,
                                   javax.xml.transform.SourceLocator locator,
                                   Receiver out)
                            throws XPathException
        Supporting routine to push one external document given a URI (href) and a baseURI to a given Receiver. This method cannot handle fragment identifiers
        Throws:
        XPathException