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
,
fContext
protected int fNamespaceSize
protected int[] fContext
fNamespaceSize
protected int fCurrentContext
protected String[] fPrefixes
public void reset()
org.apache.xerces.xni.NamespaceContext#reset()
public void pushContext()
org.apache.xerces.xni.NamespaceContext#pushContext()
public void popContext()
org.apache.xerces.xni.NamespaceContext#popContext()
public boolean declarePrefix(String prefix, String uri)
org.apache.xerces.xni.NamespaceContext#declarePrefix(String, String)
public String getURI(String prefix)
org.apache.xerces.xni.NamespaceContext#getURI(String)
public String getPrefix(String uri)
org.apache.xerces.xni.NamespaceContext#getPrefix(String)
public int getDeclaredPrefixCount()
org.apache.xerces.xni.NamespaceContext#getDeclaredPrefixCount()
public String getDeclaredPrefixAt(int index)
org.apache.xerces.xni.NamespaceContext#getDeclaredPrefixAt(int)
public Enumeration getAllPrefixes()
org.apache.xerces.xni.NamespaceContext#getAllPrefixes()
Copyright © 2007-2019. All Rights Reserved.