public class PedigreeMapItem extends DelegatingMapItem implements MapItem, PedigreeValue
Pedigree:
that is, retained information about how the map was selected within a JSON-like tree.| Constructor and Description |
|---|
PedigreeMapItem(MapItem base)
Create a PedigreeMapItem with an empty pedigree
|
PedigreeMapItem(MapItem base,
Pedigree pedigree)
Create a PedigreeMapItem with a known pedigree
|
| Modifier and Type | Method and Description |
|---|---|
GroundedValue<?> |
get(AtomicValue key)
Get the value of the entry in the map with a specified key, retaining information
about how that value was selected
|
Pedigree |
getPedigree()
Get the pedigree of this map item, providing information as to how it was selected.
|
java.lang.Iterable<KeyValuePair> |
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
|
addEntry, conforms, getBaseItem, getItemType, getKeyUType, isEmpty, keys, remove, size, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEntry, atomize, call, conforms, deepEquals, effectiveBooleanValue, export, getAnnotations, getArity, getDescription, getFunctionItemType, getFunctionName, getGenre, getItemType, getItemTypeOfSequence, getKeyUType, getOperandRoles, getStringValue, getStringValueCS, getTypedValue, isArray, isEmpty, isKnownToConform, isMap, isTrustedResultType, itemAt, keys, makeNewContext, mapToString, remove, size, toShortStringargumentArraygetLength, head, isStreamed, iterate, iterator, reduce, subsequence, toGroundedValueasIterable, materializemakeRepeatablegetBaseItem, getOriginpublic PedigreeMapItem(MapItem base)
base - the underlying map itempublic GroundedValue<?> get(AtomicValue key)
get in interface MapItemget in class DelegatingMapItemkey - the key of the required entrypublic java.lang.Iterable<KeyValuePair> keyValuePairs()
keyValuePairs in interface MapItemkeyValuePairs in class DelegatingMapItempublic Pedigree getPedigree()
getPedigree in interface PedigreeValueCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.