Class UnparsedTextAvailable

    • Constructor Detail

      • UnparsedTextAvailable

        public UnparsedTextAvailable()
    • Method Detail

      • evaluateItem

        public Item evaluateItem​(XPathContext context)
                          throws XPathException
        This method handles evaluation of the function: it returns a StringValue in the case of unparsed-text(), or a BooleanValue in the case of unparsed-text-available(). In the case of unparsed-text-lines() this shouldn't be called, but we deal with it anyway.
        Overrides:
        evaluateItem in class UnparsedText
        Parameters:
        context - The context in which the expression is to be evaluated
        Returns:
        the node or atomic value that results from evaluating the expression; or null to indicate that the result is an empty sequence
        Throws:
        XPathException - if any dynamic error occurs evaluating the expression