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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addEntry, 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, toShortString
argumentArray
getLength, head, isStreamed, iterate, iterator, reduce, subsequence, toGroundedValue
asIterable, materialize
makeRepeatable
getBaseItem, getOrigin
public PedigreeMapItem(MapItem base)
base
- the underlying map itempublic GroundedValue<?> get(AtomicValue key)
get
in interface MapItem
get
in class DelegatingMapItem
key
- the key of the required entrypublic java.lang.Iterable<KeyValuePair> keyValuePairs()
keyValuePairs
in interface MapItem
keyValuePairs
in class DelegatingMapItem
public Pedigree getPedigree()
getPedigree
in interface PedigreeValue
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.