public interface MapItem extends Function, java.lang.Iterable<KeyValuePair>
| Modifier and Type | Method and Description |
|---|---|
MapItem |
addEntry(AtomicValue key,
Sequence value)
Create a new map containing the existing entries in the map plus an additional entry,
without modifying the original.
|
boolean |
conforms(AtomicType keyType,
SequenceType valueType,
TypeHierarchy th)
Ask whether the map conforms to a given map type
|
Sequence |
get(AtomicValue key)
Get an entry from the Map
|
MapType |
getItemType(TypeHierarchy th)
Get the type of the map.
|
UType |
getKeyUType()
Get the lowest common item type of the keys in the map
|
boolean |
isEmpty()
Ask whether the map is empty
|
java.util.Iterator<KeyValuePair> |
iterator()
Get the set of all key-value pairs in the map
|
AtomicIterator |
keys()
Get the set of all key values in the map.
|
MapItem |
remove(AtomicValue key)
Remove an entry from the map
|
int |
size()
Get the size of the map
|
call, deepEquals, export, getAnnotations, getArity, getDescription, getFunctionItemType, getFunctionName, getOperandRoles, isArray, isMap, isTrustedResultType, iterate, makeNewContextatomize, getStringValue, getStringValueCS, headeffectiveBooleanValue, getLength, getStringValue, getStringValueCS, head, itemAt, reduce, subsequenceSequence get(AtomicValue key)
key - the value of the keyint size()
boolean isEmpty()
AtomicIterator keys()
java.util.Iterator<KeyValuePair> iterator()
iterator in interface java.lang.Iterable<KeyValuePair>MapItem addEntry(AtomicValue key, Sequence value)
key - the key of the new entryvalue - the value associated with the new entryMapItem remove(AtomicValue key)
key - the key of the entry to be removedboolean conforms(AtomicType keyType, SequenceType valueType, TypeHierarchy th)
keyType - the required keyTypevalueType - the required valueTypeth - the type hierarchy cache for the configurationMapType getItemType(TypeHierarchy th)
UType getKeyUType()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.