public class NamespaceDeclarationStack extends Object
Constructor and Description |
---|
NamespaceDeclarationStack() |
NamespaceDeclarationStack(XMLReader xmlReader) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getActiveNamespaces() |
String |
getPrefix(String uri) |
String |
getUri(String getKey) |
void |
popNamespaces()
Pop element out of the namespace declaration stack and notifying
ContentHandler if required. |
XMLReader |
popReader()
Pop the current XMLReader off the XMLReader stack.
|
Attributes |
pushNamespaces(String qName,
String namespace,
Attributes attributes)
Pushing a new element to the stack.
|
void |
pushReader(XMLReader reader)
Push a new XMLReader instance onto the XMLReader Stack.
|
public NamespaceDeclarationStack()
public NamespaceDeclarationStack(XMLReader xmlReader)
public Attributes pushNamespaces(String qName, String namespace, Attributes attributes) throws SAXException
qName
- Element QName.namespace
- Element namespace.attributes
- optional attributes or null, single element could declare multiple namespacesSAXException
public void popNamespaces() throws SAXException
ContentHandler
if required.SAXException
public void pushReader(XMLReader reader)
reader
- The reader instance.public XMLReader popReader()
Copyright © 2014. All rights reserved.