|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.serializer.dom3.NamespaceSupport
public class NamespaceSupport
Namespace support for XML document handlers. This class doesn't perform any error checking and assumes that all strings passed as arguments to methods are unique symbols. The SymbolTable class can be used for this purpose. Derived from org.apache.xerces.util.NamespaceSupport
Nested Class Summary | |
---|---|
protected class |
NamespaceSupport.Prefixes
|
Field Summary | |
---|---|
protected int[] |
fContext
Context indexes. |
protected int |
fCurrentContext
The current context. |
protected java.lang.String[] |
fNamespace
Namespace binding information. |
protected int |
fNamespaceSize
The top of the namespace information array. |
protected java.lang.String[] |
fPrefixes
|
(package private) static java.lang.String |
PREFIX_XML
|
(package private) static java.lang.String |
PREFIX_XMLNS
|
static java.lang.String |
XML_URI
The XML Namespace ("http://www.w3.org/XML/1998/namespace"). |
static java.lang.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 Summary | |
---|---|
NamespaceSupport()
Default constructor. |
Method Summary | |
---|---|
boolean |
declarePrefix(java.lang.String prefix,
java.lang.String uri)
|
java.util.Enumeration |
getAllPrefixes()
|
java.lang.String |
getDeclaredPrefixAt(int index)
|
int |
getDeclaredPrefixCount()
|
java.lang.String |
getPrefix(java.lang.String uri)
|
java.lang.String |
getURI(java.lang.String prefix)
|
void |
popContext()
|
void |
pushContext()
|
void |
reset()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final java.lang.String PREFIX_XML
static final java.lang.String PREFIX_XMLNS
public static final java.lang.String XML_URI
public static final java.lang.String XMLNS_URI
protected java.lang.String[] fNamespace
fNamespaceSize
,
fContext
protected int fNamespaceSize
protected int[] fContext
fNamespaceSize
protected int fCurrentContext
protected java.lang.String[] fPrefixes
Constructor Detail |
---|
public NamespaceSupport()
Method Detail |
---|
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(java.lang.String prefix, java.lang.String uri)
org.apache.xerces.xni.NamespaceContext#declarePrefix(String, String)
public java.lang.String getURI(java.lang.String prefix)
org.apache.xerces.xni.NamespaceContext#getURI(String)
public java.lang.String getPrefix(java.lang.String uri)
org.apache.xerces.xni.NamespaceContext#getPrefix(String)
public int getDeclaredPrefixCount()
org.apache.xerces.xni.NamespaceContext#getDeclaredPrefixCount()
public java.lang.String getDeclaredPrefixAt(int index)
org.apache.xerces.xni.NamespaceContext#getDeclaredPrefixAt(int)
public java.util.Enumeration getAllPrefixes()
org.apache.xerces.xni.NamespaceContext#getAllPrefixes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |