V
- the type for the values stored in the map
public interface NameMap<V>
extends java.util.Map<javax.xml.namespace.QName,V>
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(java.lang.String name)
Whether the map contains the string name as a
key.
|
<T> T |
get(javax.xml.namespace.QName name,
java.lang.Class<T> as)
Returns the value of the QName, cast to the
supplied type.
|
V |
get(java.lang.String name)
Returns the value of the string name.
|
<T> T |
get(java.lang.String name,
java.lang.Class<T> as)
Returns the value of the string name, cast to
the supplied type.
|
javax.xml.namespace.NamespaceContext |
getNamespaceContext()
Returns the namespace context (if any) that
declares the namespace bindings used to convert prefixed string
names into QNames.
|
V |
put(java.lang.String name,
V value)
Specifies the value of the string name.
|
V |
remove(java.lang.String name)
Removes the key-value pair from the map.
|
void |
setNamespaceContext(javax.xml.namespace.NamespaceContext context)
Specifies a namespace context that declares the
namespace bindings used to convert prefixed string names into
QNames.
|
javax.xml.namespace.NamespaceContext getNamespaceContext()
void setNamespaceContext(javax.xml.namespace.NamespaceContext context)
context
- the namespace context (if any)boolean containsKey(java.lang.String name)
name
- the key expressed as a stringV get(java.lang.String name)
name
- the key expressed as a string<T> T get(javax.xml.namespace.QName name, java.lang.Class<T> as)
T
- the type for the valuename
- the keyas
- the type for the value<T> T get(java.lang.String name, java.lang.Class<T> as)
T
- the type for the valuename
- the key expressed as a stringas
- the type for the valueV put(java.lang.String name, V value)
name
- the key expressed as a stringvalue
- the value of the keyV remove(java.lang.String name)
name
- the key expressed as a stringCopyright © 2024 MarkLogic Corporation. All Rights Reserved.