Class LocalName_1

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

public class LocalName_1 extends ScalarSystemFunction
This class supports the local-name() function
  • Constructor Details Link icon

    • LocalName_1 Link icon

      public LocalName_1()
  • Method Details Link icon

    • evaluate Link icon

      public AtomicValue evaluate(Item item, XPathContext context) throws XPathException
      Description copied from class: ScalarSystemFunction
      Abstract method that must be supplied in subclasses to perform the evaluation
      Specified by:
      evaluate in class ScalarSystemFunction
      Parameters:
      item - the supplied argument
      context - the dynamic context
      Returns:
      the result of the evaluation
      Throws:
      XPathException - if a dynamic error occurs
    • resultWhenEmpty Link icon

      public Sequence resultWhenEmpty()
      Description copied from class: ScalarSystemFunction
      Method that may be supplied in subclasses, to indicate the result that is returned when an empty sequence is supplied as the argument value. The default is to return the empty sequence
      Overrides:
      resultWhenEmpty in class ScalarSystemFunction
      Returns:
      the result of evaluation when the supplied argument is an empty sequence
    • getElaborator Link icon

      public Elaborator getElaborator()
      Make an elaborator for this expression
      Overrides:
      getElaborator in class SystemFunction
      Returns:
      a suitable elaborator