|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.milyn.namespace.NamespaceDeclarationStack
public class NamespaceDeclarationStack
This class is responsible for managing namespace declarations.
| Constructor Summary | |
|---|---|
NamespaceDeclarationStack()
|
|
NamespaceDeclarationStack(XMLReader xmlReader)
|
|
| Method Summary | |
|---|---|
Map<String,String> |
getActiveNamespaces()
|
String |
getPrefix(String uri)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamespaceDeclarationStack()
public NamespaceDeclarationStack(XMLReader xmlReader)
| Method Detail |
|---|
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 namespaces
SAXException - if an error is encountered when attempting to push
the element to the stack.
public void popNamespaces()
throws SAXException
ContentHandler if required.
SAXException - if an error occurs when attempting to pop the
element out of the stack.public void pushReader(XMLReader reader)
reader - The reader instance.public XMLReader popReader()
public String getPrefix(String uri)
public Map<String,String> getActiveNamespaces()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||