|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fasterxml.aalto.dom.BijectiveNsMap
public final class BijectiveNsMap
Helper class that implements "bijective map" (Map that allows use of values as keys and vice versa, bidirectional access), and is specifically used for storing namespace binding information. One thing worth noting is that Strings stored are NOT assumed to have been unified (interned) -- if they were, different implementation would be more optimal.
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static BijectiveNsMap createEmpty()
public BijectiveNsMap createChild()
public String findUriByPrefix(String prefix)
public String findPrefixByUri(String uri)
public List<String> getPrefixesBoundToUri(String uri, List<String> l)
public int size()
public int localSize()
public String addMapping(String prefix, String uri)
prefix
- Prefix to binduri
- URI to bind to the prefix
public String addGeneratedMapping(String prefixBase, NamespaceContext ctxt, String uri, int[] seqArr)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |