Class UnparsedText

All Implemented Interfaces:
Callable, PushableFunction, FunctionItem, GroundedValue, Item, Sequence

public class UnparsedText extends UnparsedTextFunction implements PushableFunction
Implementation of fn:unparsed-text() - with one argument or two
  • Constructor Details

    • UnparsedText

      public UnparsedText()
  • Method Details

    • call

      public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException
      Evaluate the expression
      Specified by:
      call in interface Callable
      Parameters:
      context - the dynamic evaluation context
      arguments - the values of the arguments, supplied as SequenceIterators
      Returns:
      the result of the evaluation, in the form of a SequenceIterator
      Throws:
      XPathException - if a dynamic error occurs during the evaluation of the expression
    • process

      public void process(Outputter destination, XPathContext context, Sequence[] arguments) throws XPathException
      Description copied from interface: PushableFunction
      Evaluate the function in "push" mode
      Specified by:
      process in interface PushableFunction
      Parameters:
      destination - the destination for the function result
      context - the dynamic evaluation context
      arguments - the supplied arguments to the function
      Throws:
      XPathException - if a dynamic error occurs during the evaluation
    • evalUnparsedText

      public static StringValue evalUnparsedText(StringValue hrefVal, String base, String encoding, XPathContext context) throws XPathException
      Evaluation of the unparsed-text function
      Parameters:
      hrefVal - the relative URI
      base - the base URI
      encoding - the encoding to be used
      context - dynamic evaluation context
      Returns:
      the result of the function
      Throws:
      XPathException - if evaluation fails
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception