public interface MapItem extends Function, Iterable<KeyValuePair>
Modifier and Type | Method and Description |
---|---|
Sequence |
get(AtomicValue key)
Get an entry from the Map
|
AtomicType |
getKeyType()
Get the lowest common item type of the keys in the map
|
UType |
getKeyUType()
Get the lowest common item type of the keys in the map
|
SequenceType |
getValueType()
Get the lowest common sequence type of all the values in the map
|
boolean |
isEmpty()
Ask whether the map is empty
|
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, getArity, getDescription, getFunctionItemType, getFunctionName, getOperandRoles, isArray, isMap, iterate
atomize, getStringValue, getStringValueCS, head
effectiveBooleanValue, getLength, getStringValue, getStringValueCS, head, itemAt, reduce, subsequence
Sequence get(AtomicValue key)
key
- the value of the keyint size()
boolean isEmpty()
AtomicIterator keys()
Iterator<KeyValuePair> iterator()
iterator
in interface Iterable<KeyValuePair>
MapItem remove(AtomicValue key) throws XPathException
key
- the key of the entry to be removedXPathException
- if a dynamic error occursAtomicType getKeyType()
UType getKeyUType()
SequenceType getValueType()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.