public interface MapItem extends FunctionItem, Iterable<KeyValuePair>
Modifier and Type | Interface and Description |
---|---|
static class |
MapItem.TimeZoneStatus |
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
|
MapItem.TimeZoneStatus |
getTimeZoneStatus()
Ask whether the map includes calendar values with a timezone, calendar values without a timezone, or neither.
|
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, getArity, getFunctionItemType, getFunctionName, iterate
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()
MapItem.TimeZoneStatus getTimeZoneStatus()
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()
SequenceType getValueType()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.