QName) which are in
scope. This is useful when building or navigating a dom4j document.
| Modifier and Type | Field and Description |
|---|---|
| private Map | currentNamespaceCache
A cache of current namespace context cache of mapping from qualifiedName to QName |
| private Namespace | defaultNamespace
Caches the default namespace defined via xmlns="" |
| private DocumentFactory | documentFactory
The factory used to create new |
| private ArrayList | namespaceCacheList
The cache of qualifiedNames to QNames per namespace context |
| private ArrayList | namespaceStack
The Stack of namespaces |
| private Map | rootNamespaceCache
A cache of mapping from qualifiedName to QName before any namespaces are declared |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Namespace | Returns: DOCUMENT ME!DOCUMENT ME! prefix, String DOCUMENT ME! uri)Adds a new namespace to the stack |
| public void | |
| public boolean | |
| protected Namespace | Returns: DOCUMENT ME!DOCUMENT ME! prefix, String DOCUMENT ME! namespaceURI)Factory method to creeate new Namespace instances. |
| protected QName | Returns: DOCUMENT ME!DOCUMENT ME! localName, String DOCUMENT ME! qualifiedName, Namespace DOCUMENT ME! namespace)Factory method to creeate new QName instances. |
| protected Namespace | Returns: DOCUMENT ME!Attempts to find the current default namespace on the stack right now or returns null if one could not be found |
| public QName | |
| public Namespace | |
| public DocumentFactory | |
| public Namespace | Returns: the namespace at the specified index on the stackDOCUMENT ME! index)DOCUMENT ME! |
| protected Map | |
| public Namespace | Returns: the namespace for the given prefix or null if it could not be found.DOCUMENT ME! prefix)DOCUMENT ME! |
| public QName | |
| public String | |
| public Namespace | |
| public Namespace | |
| public void | |
| public void | |
| protected QName | |
| protected Namespace | Returns: DOCUMENT ME!DOCUMENT ME! index)Removes the namespace at the given index of the stack |
| public void | |
| public int | |
| public String |
| currentNamespaceCache | back to summary |
|---|---|
| private Map<String, QName> currentNamespaceCache A cache of current namespace context cache of mapping from qualifiedName to QName | |
| defaultNamespace | back to summary |
|---|---|
| private Namespace defaultNamespace Caches the default namespace defined via xmlns="" | |
| documentFactory | back to summary |
|---|---|
| private DocumentFactory documentFactory The factory used to create new | |
| namespaceCacheList | back to summary |
|---|---|
| private ArrayList<Map<String, QName>> namespaceCacheList The cache of qualifiedNames to QNames per namespace context | |
| namespaceStack | back to summary |
|---|---|
| private ArrayList<Namespace> namespaceStack The Stack of namespaces | |
| rootNamespaceCache | back to summary |
|---|---|
| private Map<String, QName> rootNamespaceCache A cache of mapping from qualifiedName to QName before any namespaces are declared | |
| NamespaceStack | back to summary |
|---|---|
| public NamespaceStack() | |
| NamespaceStack | back to summary |
|---|---|
| public NamespaceStack(DocumentFactory documentFactory) | |
| addNamespace | back to summary |
|---|---|
| public Namespace addNamespace(String prefix, String uri) Adds a new namespace to the stack | |
| clear | back to summary |
|---|---|
| public void clear() Clears the stack | |
| contains | back to summary |
|---|---|
| public boolean contains(Namespace namespace) DOCUMENT ME!
| |
| createNamespace | back to summary |
|---|---|
| protected Namespace createNamespace(String prefix, String namespaceURI) Factory method to creeate new Namespace instances. By default this method interns the Namespace | |
| createQName | back to summary |
|---|---|
| protected QName createQName(String localName, String qualifiedName, Namespace namespace) Factory method to creeate new QName instances. By default this method interns the QName | |
| findDefaultNamespace | back to summary |
|---|---|
| protected Namespace findDefaultNamespace() Attempts to find the current default namespace on the stack right now or returns null if one could not be found
| |
| getAttributeQName | back to summary |
|---|---|
| public QName getAttributeQName(String namespaceURI, String localName, String qualifiedName) | |
| getDefaultNamespace | back to summary |
|---|---|
| public Namespace getDefaultNamespace() | |
| getDocumentFactory | back to summary |
|---|---|
| public DocumentFactory getDocumentFactory() | |
| getNamespace | back to summary |
|---|---|
| public Namespace getNamespace(int index) DOCUMENT ME!
| |
| getNamespaceCache | back to summary |
|---|---|
| protected Map | |
| getNamespaceForPrefix | back to summary |
|---|---|
| public Namespace getNamespaceForPrefix(String prefix) DOCUMENT ME! | |
| getQName | back to summary |
|---|---|
| public QName getQName(String namespaceURI, String localName, String qualifiedName) | |
| getURI | back to summary |
|---|---|
| public String getURI(String prefix) DOCUMENT ME! | |
| pop | back to summary |
|---|---|
| public Namespace pop() Pops the most recently used
| |
| pop | back to summary |
|---|---|
| public Namespace pop(String prefix) Pops a namepace from the stack with the given prefix and URI | |
| push | back to summary |
|---|---|
| public void push(Namespace namespace) Pushes the given namespace onto the stack so that its prefix becomes available.
| |
| push | back to summary |
|---|---|
| public void push(String prefix, String uri) Adds a namepace to the stack with the given prefix and URI | |
| pushQName | back to summary |
|---|---|
| protected QName pushQName(String localName, String qualifiedName, Namespace namespace, String prefix) Adds the QName to the stack of available QNames | |
| remove | back to summary |
|---|---|
| protected Namespace remove(int index) Removes the namespace at the given index of the stack
| |
| setDocumentFactory | back to summary |
|---|---|
| public void setDocumentFactory(DocumentFactory documentFactory) | |
| size | back to summary |
|---|---|
| public int size() DOCUMENT ME!
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |