public class PedigreeMapItem extends DelegatingMapItem implements 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
atomize, call, deepEquals, effectiveBooleanValue, export, getAnnotations, getArity, getDescription, getFunctionItemType, getFunctionName, getGenre, getItemTypeOfSequence, getOperandRoles, getTypedValue, getUnicodeStringValue, isArray, isKnownToConform, isMap, isTrustedResultType, itemAt, makeNewContext, mapToString, toShortString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getOrigin
isSequenceVariadic
getLength, getStringValue, head, isStreamed, iterate, reduce, subsequence
asIterable, concatenate, containsNode, materialize
makeRepeatable
public PedigreeMapItem(MapItem base)
base
- the underlying map itempublic GroundedValue get(AtomicValue key)
get
in class DelegatingMapItem
key
- the key of the required entrypublic java.lang.Iterable<KeyValuePair> keyValuePairs()
keyValuePairs
in class DelegatingMapItem
public Pedigree getPedigree()
getPedigree
in interface PedigreeValue
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.