|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MapItem
Interface supported by different implementations of an XDM map item
Field Summary |
---|
Fields inherited from interface net.sf.saxon.om.ValueRepresentation |
---|
EMPTY_VALUE_ARRAY |
Method Summary | |
---|---|
ValueRepresentation<? extends Item> |
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<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 |
Methods inherited from interface net.sf.saxon.om.FunctionItem |
---|
curry, deepEquals, getArity, getFunctionItemType, getFunctionName, invoke |
Methods inherited from interface net.sf.saxon.om.Item |
---|
getStringValue, getStringValueCS, getTypedValue |
Method Detail |
---|
String getCollationName()
StringCollator getCollation()
ValueRepresentation<? extends Item> get(AtomicValue key, XPathContext context) throws XPathException
key
- the value of the keycontext
- the XPath dynamic evaluation context
XPathException
- if a dynamic error occursint size()
boolean isEmpty()
UnfailingIterator<AtomicValue> keys()
MapItem remove(AtomicValue key, XPathContext context) throws XPathException
key
- the key of the entry to be removedcontext
- the XPath dynamic context
XPathException
- if a dynamic error occursAtomicType getKeyType(TypeHierarchy th)
th
- the type hierarchy
SequenceType getValueType(TypeHierarchy th)
th
- the type hierarchy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |