Class TreatFn.ZeroOrOne

All Implemented Interfaces:
Callable, FunctionItem, GroundedValue, Item, Sequence
Enclosing class:
TreatFn

public static class TreatFn.ZeroOrOne extends TreatFn
  • Constructor Details

    • ZeroOrOne

      public ZeroOrOne()
  • Method Details

    • getRequiredCardinality

      public int getRequiredCardinality()
      Specified by:
      getRequiredCardinality in class TreatFn
    • getErrorCodeForTypeErrors

      public String getErrorCodeForTypeErrors()
      Description copied from class: TreatFn
      Return the error code to be used for type errors
      Specified by:
      getErrorCodeForTypeErrors in class TreatFn
      Returns:
      the error code to be used for type errors in the function call. Normally XPTY0004, but different codes are used for functions such as exactly-one()