public final class BijectiveNsMap extends Object
Currently only used by stream writers, but could be more generally useful too.
Modifier and Type | Method and Description |
---|---|
String |
addGeneratedMapping(String prefixBase,
NamespaceContext ctxt,
String uri,
int[] seqArr)
Method used to add a dynamic binding, and return the prefix
used to bind the specified namespace URI.
|
String |
addMapping(String prefix,
String uri)
Method to add a new prefix-to-URI mapping for the current scope.
|
BijectiveNsMap |
createChild() |
static BijectiveNsMap |
createEmpty() |
String |
findPrefixByUri(String uri) |
String |
findUriByPrefix(String prefix) |
List<String> |
getPrefixesBoundToUri(String uri,
List<String> l) |
int |
localSize() |
int |
size() |
String |
toString() |
public static BijectiveNsMap createEmpty()
public BijectiveNsMap createChild()
public int size()
public int localSize()
public String addMapping(String prefix, String uri)
prefix
- Prefix to binduri
- URI to bind to the prefixpublic String addGeneratedMapping(String prefixBase, NamespaceContext ctxt, String uri, int[] seqArr)
Copyright © 2018 FasterXML. All rights reserved.