Class Parcel

All Implemented Interfaces:
GroundedValue, Item, Sequence, AnyExternalObject

public class Parcel extends ObjectValue<GroundedValue>
A Parcel is a way of wrapping an arbitrary sequence as a single item. It is implemented as a Java extension object. It is used in particular to wrap the context value when this is not a single item: this is to avoid disruption to the large amount of Saxon code that is written to assume the context value will be a single item (which it is most of the time).
  • Constructor Details

    • Parcel

      public Parcel(GroundedValue content)
      Create a parcel
      Parameters:
      content - the value to be wrapped
  • Method Details