Class Nilled_1

All Implemented Interfaces:
Iterable<Function>, Callable, Function, GroundedValue<Function>, Item<Function>, Sequence<Function>

public class Nilled_1 extends SystemFunction implements Callable
This class supports the nilled() function
  • Constructor Details

    • Nilled_1

      public Nilled_1()
  • Method Details

    • getNilledProperty

      public static BooleanValue getNilledProperty(NodeInfo node)
      Determine whether a node has the nilled property
      Parameters:
      node - the node in question (if null, the function returns null)
      Returns:
      the value of the nilled accessor. Returns null for any node other than an element node. For an element node, returns true if the element has been validated and has an xsi:nil attribute whose value is true.
    • isNilled

      public static boolean isNilled(NodeInfo node)
      Determine whether a node is nilled. Returns true if the value of the nilled property is true; false if the value is false or absent
      Parameters:
      node - the node to be tested
      Returns:
      true if the node is nilled
    • call

      public ZeroOrOne<BooleanValue> call(XPathContext context, Sequence[] arguments) throws XPathException
      Evaluate the expression
      Specified by:
      call in interface Callable
      Specified by:
      call in interface Function
      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