namespaceToPrefixMap, prefixes
Constructor and Description |
---|
MutablePrefixMap() |
MutablePrefixMap(PrefixMap map) |
MutablePrefixMap(String ns,
String prefix) |
Modifier and Type | Method and Description |
---|---|
void |
add(String prefix,
String uri)
Add a prefix and its uri to the map.
|
void |
add(String prefix,
String uri,
boolean onlyIfUnique)
Adds a prefix and uri to this namespace map.
|
void |
addAll(PrefixMap map)
Adds all information from one
PrefixMap to another |
void |
addAll(PrefixMap map,
boolean onlyIfUnique)
Adds all information from one
PrefixMap to another |
void |
remove(String prefix) |
PrefixMap |
toImmutable()
Creates an immutable version of this prefix map
|
clone, containsNamespace, containsPrefix, equals, getAllNamespaces, getAllPrefixes, getNamespaceForPrefix, getPrefixesForNamespace, toMutable
public MutablePrefixMap()
public MutablePrefixMap(PrefixMap map)
public PrefixMap toImmutable()
public void add(String prefix, String uri)
prefix
- A namespace prefix string, such as "fx"
.uri
- The corresponding namespace URI, such as http://ns.adobe.com/mxml/2009
.public void add(String prefix, String uri, boolean onlyIfUnique)
prefix
- the prefix to adduri
- the namespace to add for the given prefixonlyIfUnique
- If the mapping is not unique, it will be added only
if this flag is set to false. A mapping is considering unique if a prefix
has not already been definedpublic void addAll(PrefixMap map, boolean onlyIfUnique)
PrefixMap
to anothermap
- the PrefixMap
where our data is coming fromonlyIfUnique
- If the mapping is not unique, it will be added only
if this flag is set to false. A mapping is considering unique if a prefix
has not already been definedpublic void addAll(PrefixMap map)
PrefixMap
to anothermap
- the PrefixMap
where our data is coming frompublic void remove(String prefix)
Copyright © 2016 The Apache Software Foundation. All rights reserved.