V
- the type for the values stored in the mapjava.util.Map<javax.xml.namespace.QName,V>
DocumentMetadataHandle.DocumentProperties
,
RuleDefinition.RuleMetadata
public interface NameMap<V>
extends java.util.Map<javax.xml.namespace.QName,V>
Modifier and Type | Method | Description |
---|---|---|
boolean |
containsKey(java.lang.String name) |
Whether the map contains the string name as a
key.
|
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.
|
<T> T |
get(javax.xml.namespace.QName name,
java.lang.Class<T> as) |
Returns the value of the QName, 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.
|
clear, compute, computeIfAbsent, computeIfPresent,
containsKey, containsValue, entry, entrySet, equals, forEach, get,
getOrDefault, hashCode, isEmpty, keySet, merge, of, of, of, of, of,
of, of, of, of, of, of, ofEntries, put, putAll, putIfAbsent,
remove, remove, replace, replace, replaceAll, size,
values
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 © 2022 MarkLogic Corporation