Package com.saxonica.xsltextn.pedigree
Class PedigreeMapItem
java.lang.Object
net.sf.saxon.ma.map.MapItem
com.saxonica.xsltextn.pedigree.DelegatingMapItem
com.saxonica.xsltextn.pedigree.PedigreeMapItem
- All Implemented Interfaces:
PedigreeValue,Callable,FunctionItem,GroundedValue,Item,Sequence
A
PedigreeMapItem represents an XDM map together with a Pedigree:
that is, retained information about how the map was selected within a JSON-like tree.-
Constructor Summary
ConstructorsConstructorDescriptionPedigreeMapItem(MapItem base) Create a PedigreeMapItem with an empty pedigreePedigreeMapItem(MapItem base, Pedigree pedigree) Create a PedigreeMapItem with a known pedigree -
Method Summary
Modifier and TypeMethodDescriptionget(AtomicValue key) Get the value of the entry in the map with a specified key, retaining information about how that value was selectedGet the pedigree of this map item, providing information as to how it was selected.Get an iterable collection of key-value pairs representing the entries in this map; any entry whose value is a singleton array or map will itself have a pedigree indicating how it was selectedMethods inherited from class com.saxonica.xsltextn.pedigree.DelegatingMapItem
addEntry, conforms, getBaseItem, getItemType, getKeyUType, isEmpty, keys, remove, size, toStringMethods inherited from class net.sf.saxon.ma.map.MapItem
atomize, call, deepEqual40, deepEquals, effectiveBooleanValue, entries, export, getAnnotations, getArity, getDescription, getFunctionItemType, getFunctionName, getGenre, getItemTypeOfSequence, getOperandRoles, getTypedValue, getUnicodeStringValue, isArray, isKnownToConform, isMap, isTrustedResultType, itemAt, makeNewContext, mapToString, toShortStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sf.saxon.om.FunctionItem
isSequenceVariadicMethods inherited from interface net.sf.saxon.om.GroundedValue
asIterable, concatenate, containsNode, materializeMethods inherited from interface net.sf.saxon.om.Item
getLength, getStringValue, head, isStreamed, iterate, reduce, subsequenceMethods inherited from interface com.saxonica.xsltextn.pedigree.PedigreeValue
getOriginMethods inherited from interface net.sf.saxon.om.Sequence
makeRepeatable
-
Constructor Details
-
PedigreeMapItem
Create a PedigreeMapItem with an empty pedigree- Parameters:
base- the underlying map item
-
PedigreeMapItem
Create a PedigreeMapItem with a known pedigree- Parameters:
base- the underlying array item
-
-
Method Details
-
get
Get the value of the entry in the map with a specified key, retaining information about how that value was selected- Overrides:
getin classDelegatingMapItem- Parameters:
key- the key of the required entry- Returns:
- the corresponding value, which will itself have a pedigree if it is a singleton map or array; or null if there is no entry with this key
-
keyValuePairs
Get an iterable collection of key-value pairs representing the entries in this map; any entry whose value is a singleton array or map will itself have a pedigree indicating how it was selected- Overrides:
keyValuePairsin classDelegatingMapItem- Returns:
- the entries in this map as an iterable collection
-
getPedigree
Get the pedigree of this map item, providing information as to how it was selected.- Specified by:
getPedigreein interfacePedigreeValue- Returns:
- the pedigree of this map item
-