public class NamespaceSupport extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
NamespaceSupport.Prefixes |
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
fContext
Context indexes.
|
protected int |
fCurrentContext
The current context.
|
protected String[] |
fNamespace
Namespace binding information.
|
protected int |
fNamespaceSize
The top of the namespace information array.
|
protected String[] |
fPrefixes |
static String |
XML_URI
The XML Namespace ("http://www.w3.org/XML/1998/namespace").
|
static String |
XMLNS_URI
XML Information Set REC
all namespace attributes (including those named xmlns,
whose [prefix] property has no value) have a namespace URI of http://www.w3.org/2000/xmlns/
|
| Constructor and Description |
|---|
NamespaceSupport()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
declarePrefix(String prefix,
String uri) |
Enumeration |
getAllPrefixes() |
String |
getDeclaredPrefixAt(int index) |
int |
getDeclaredPrefixCount() |
String |
getPrefix(String uri) |
String |
getURI(String prefix) |
void |
popContext() |
void |
pushContext() |
void |
reset() |
public static final String XML_URI
public static final String XMLNS_URI
protected String[] fNamespace
fNamespaceSize,
fContextprotected int fNamespaceSize
protected int[] fContext
fNamespaceSizeprotected int fCurrentContext
protected String[] fPrefixes
public void reset()
NamespaceContext.reset()public void pushContext()
NamespaceContext.pushContext()public void popContext()
NamespaceContext.popContext()public String getURI(String prefix)
NamespaceContext.getURI(String)public String getPrefix(String uri)
NamespaceContext.getPrefix(String)public int getDeclaredPrefixCount()
public String getDeclaredPrefixAt(int index)
public Enumeration getAllPrefixes()
NamespaceContext.getAllPrefixes()Copyright © 2018 JBoss by Red Hat. All rights reserved.