Package net.sf.saxon.ma
Class Parcel
- java.lang.Object
-
- net.sf.saxon.ma.map.MapItem
-
- net.sf.saxon.ma.map.SingleEntryMap
-
- net.sf.saxon.ma.Parcel
-
- All Implemented Interfaces:
Callable
,Function
,GroundedValue
,Item
,Sequence
public class Parcel extends SingleEntryMap
A Parcel is a way of wrapping an arbitrary sequence as a single item. It is implemented as a single-entry map, the single key being the string "value", and the corresponding value being the wrapped value.
-
-
Field Summary
Fields Modifier and Type Field Description static StringValue
parcelKey
The key of the single entry, that is the string "value"static RecordTest
TYPE
The type of the singleton map: a record type, effectivelyrecord(value: item()*)
-
Fields inherited from class net.sf.saxon.ma.map.SingleEntryMap
key, value
-
-
Constructor Summary
Constructors Constructor Description Parcel(GroundedValue content)
Create a parcel
-
Method Summary
-
Methods inherited from class net.sf.saxon.ma.map.SingleEntryMap
addEntry, conforms, get, getItemType, getKey, getKeyUType, getValue, isEmpty, keys, keyValuePairs, remove, size
-
Methods inherited from class net.sf.saxon.ma.map.MapItem
atomize, call, deepEquals, effectiveBooleanValue, export, getAnnotations, getArity, getDescription, getFunctionItemType, getFunctionName, getGenre, getItemTypeOfSequence, getOperandRoles, getSerialNumber, getTypedValue, getUnicodeStringValue, isArray, isKnownToConform, isMap, isTrustedResultType, itemAt, makeNewContext, mapToString, toShortString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.om.Function
isSequenceVariadic
-
Methods inherited from interface net.sf.saxon.om.GroundedValue
asIterable, concatenate, containsNode, materialize
-
Methods inherited from interface net.sf.saxon.om.Item
getLength, getStringValue, head, isStreamed, iterate, reduce, subsequence
-
Methods inherited from interface net.sf.saxon.om.Sequence
makeRepeatable
-
-
-
-
Field Detail
-
parcelKey
public static final StringValue parcelKey
The key of the single entry, that is the string "value"
-
TYPE
public static RecordTest TYPE
The type of the singleton map: a record type, effectivelyrecord(value: item()*)
-
-
Constructor Detail
-
Parcel
public Parcel(GroundedValue content)
Create a parcel- Parameters:
content
- the value to be wrapped
-
-