public interface MapItem extends FunctionItem, Item
Modifier and Type | Method and Description |
---|---|
Sequence |
get(AtomicValue key,
XPathContext context)
Get an entry from the Map
|
StringCollator |
getCollation()
Get the collation of the map
|
String |
getCollationName()
Get the name of the collation of the map
|
AtomicType |
getKeyType(TypeHierarchy th)
Get the lowest common item type of the keys in the map
|
SequenceType |
getValueType(TypeHierarchy th)
Get the lowest common sequence type of all the values in the map
|
boolean |
isEmpty()
Ask whether the map is empty
|
UnfailingIterator<? extends AtomicValue> |
keys()
Get the set of all key values in the map.
|
MapItem |
remove(AtomicValue key,
XPathContext context)
Remove an entry from the map
|
int |
size()
Get the size of the map
|
call, deepEquals, getArity, getFunctionItemType, getFunctionName
getStringValue, getStringValueCS
effectiveBooleanValue, getLength, getStringValue, getStringValueCS, itemAt, reduce, subsequence
String getCollationName()
StringCollator getCollation()
Sequence get(AtomicValue key, XPathContext context) throws XPathException
key
- the value of the keycontext
- the XPath dynamic evaluation contextXPathException
- if a dynamic error occursint size()
boolean isEmpty()
UnfailingIterator<? extends AtomicValue> keys()
MapItem remove(AtomicValue key, XPathContext context) throws XPathException
key
- the key of the entry to be removedcontext
- the XPath dynamic contextXPathException
- if a dynamic error occursAtomicType getKeyType(TypeHierarchy th)
th
- the type hierarchySequenceType getValueType(TypeHierarchy th)
th
- the type hierarchyCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.