Note
unlike with input side resolvers, here we can not assume that prefixes or URIs given are canonicalized (interned), and identity comparison can not be used exclusively.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String[] | _nsStrings
Array that contains { prefix, ns-uri } pairs, up to (but not including)
index |
| pack-priv int | |
| pack-priv final int | |
| pack-priv static final int | DEFAULT_ARRAY_SIZE
Let's plan for having up to 14 explicit namespace declarations (in addition to 2 defaults, 'xml' and 'xmlns') |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv String | Returns: If the prefix was already bound, the URI it was bound to: null if it's a new binding for the current scope.Prefix to bind prefix, String URI to bind to the prefix uri)Method to add a new prefix-to-URI mapping for the current scope. |
| public NsBinder | |
| public static NsBinder | |
| public String | |
| public String | |
| pack-priv String | generatePrefix(String prefixBase, NamespaceContext ctxt, int[] seqArr)
Method used to generate a new prefix that does not conflict with an existing bound prefix. |
| public List | |
| public int | |
| public int | |
| public String |
| _nsStrings | back to summary |
|---|---|
| pack-priv String[] _nsStrings Array that contains { prefix, ns-uri } pairs, up to (but not including)
index | |
| _scopeEnd | back to summary |
|---|---|
| pack-priv int _scopeEnd | |
| _scopeStart | back to summary |
|---|---|
| pack-priv final int _scopeStart | |
| DEFAULT_ARRAY_SIZE | back to summary |
|---|---|
| pack-priv static final int DEFAULT_ARRAY_SIZE Let's plan for having up to 14 explicit namespace declarations (in addition to 2 defaults, 'xml' and 'xmlns') | |
| NsBinder | back to summary |
|---|---|
| private NsBinder(int scopeStart, String[] strs) | |
| addMapping | back to summary |
|---|---|
| pack-priv String addMapping(String prefix, String uri) Method to add a new prefix-to-URI mapping for the current scope. Note that it should NOT be used for the default namespace declaration | |
| createChild | back to summary |
|---|---|
| public NsBinder createChild() | |
| createEmpty | back to summary |
|---|---|
| public static NsBinder createEmpty() | |
| findPrefixByUri | back to summary |
|---|---|
| public String findPrefixByUri(String uri) | |
| findUriByPrefix | back to summary |
|---|---|
| public String findUriByPrefix(String prefix) | |
| generatePrefix | back to summary |
|---|---|
| pack-priv String generatePrefix(String prefixBase, NamespaceContext ctxt, int[] seqArr) Method used to generate a new prefix that does not conflict with an existing bound prefix. | |
| getPrefixesBoundToUri | back to summary |
|---|---|
| public List | |
| localSize | back to summary |
|---|---|
| public int localSize() | |
| size | back to summary |
|---|---|
| public int size() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |