Note about implementation: Location information is only needed (and only needs to passed) if access is made via extended interface; one that can return information about actual Namespace event objects.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | mFirstLocalNs
Index of first namespace pair in mNamespaces that is declared in scope of element for which this context was constructed. |
| pack-priv final Location | |
| pack-priv final String[] | mNamespaces
Array that contains 2 Strings for each declared default namespace (including default namespace declarations); first is the prefix, second URI. |
| pack-priv final int | mNsLength
Number of entries in |
| pack-priv transient ArrayList | mNsList
List only needed to support List accessor from start-element event; created lazily if/as needed. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | doGetNamespaceURI(String
Non-null, non-empty prefix (base-class verifies these
constraints) to find namespace URI for. prefix)Implements abstract com.
|
| public String | |
| public Iterator | |
| public Iterator | |
| public void | outputNamespaceDeclarations(Writer w)
Implements abstract com. Method called by |
| public void |
| mFirstLocalNs | back to summary |
|---|---|
| pack-priv final int mFirstLocalNs Index of first namespace pair in mNamespaces that is declared
in scope of element for which this context was constructed. May be
equal to | |
| mLocation | back to summary |
|---|---|
| pack-priv final Location mLocation | |
| mNamespaces | back to summary |
|---|---|
| pack-priv final String[] mNamespaces Array that contains 2 Strings for each declared default namespace (including default namespace declarations); first is the prefix, second URI. | |
| mNsLength | back to summary |
|---|---|
| pack-priv final int mNsLength Number of entries in | |
| mNsList | back to summary |
|---|---|
| pack-priv transient ArrayList<Namespace> mNsList List only needed to support List accessor from start-element event; created lazily if/as needed. | |
| CompactNsContext | back to summary |
|---|---|
| public CompactNsContext(Location loc, String[] namespaces, int nsLen, int firstLocal) | |
| doGetNamespaceURI | back to summary |
|---|---|
| public String doGetNamespaceURI(String prefix) Implements abstract com. | |
| doGetPrefix | back to summary |
|---|---|
| public String doGetPrefix(String nsURI) Implements abstract com.
| |
| doGetPrefixes | back to summary |
|---|---|
| public Iterator Implements abstract com.
| |
| getNamespaces | back to summary |
|---|---|
| public Iterator Implements abstract com.
| |
| outputNamespaceDeclarations | back to summary |
|---|---|
| public void outputNamespaceDeclarations(Writer w) throws IOException Implements abstract com. Method called by
| |
| outputNamespaceDeclarations | back to summary |
|---|---|
| public void outputNamespaceDeclarations(XMLStreamWriter w) throws XMLStreamException Implements abstract com.
| |