V
- the type for the values stored in the mappublic interface NameMap<V> extends Map<QName,V>
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(String name)
Whether the map contains the string name as a key.
|
<T> T |
get(QName name,
Class<T> as)
Returns the value of the QName, cast to the supplied type.
|
V |
get(String name)
Returns the value of the string name.
|
<T> T |
get(String name,
Class<T> as)
Returns the value of the string name, cast to the supplied type.
|
NamespaceContext |
getNamespaceContext()
Returns the namespace context (if any) that declares the
namespace bindings used to convert prefixed string names
into QNames.
|
V |
put(String name,
V value)
Specifies the value of the string name.
|
V |
remove(String name)
Removes the key-value pair from the map.
|
void |
setNamespaceContext(NamespaceContext context)
Specifies a namespace context that declares the
namespace bindings used to convert prefixed string names
into QNames.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
NamespaceContext getNamespaceContext()
void setNamespaceContext(NamespaceContext context)
context
- the namespace context (if any)boolean containsKey(String name)
name
- the key expressed as a stringV get(String name)
name
- the key expressed as a string<T> T get(QName name, Class<T> as)
T
- the type for the valuename
- the keyas
- the type for the value<T> T get(String name, Class<T> as)
T
- the type for the valuename
- the key expressed as a stringas
- the type for the valueV put(String name, V value)
name
- the key expressed as a stringvalue
- the value of the keyCopyright © 2013-2016 MarkLogic Corporation.