protected class XMLOutputter.NamespaceStack extends Object
Modifier | Constructor and Description |
---|---|
protected |
NamespaceStack() |
Modifier and Type | Method and Description |
---|---|
String |
getURI(String prefix)
Given a prefix, this will return the namespace URI most
rencently (topmost) associated with that prefix.
|
String |
pop()
This will remove the topmost (most recently added)
, and return its prefix. |
void |
push(org.jdom2.Namespace ns)
This will add a new
to those currently available. |
int |
size()
This returns the number of available namespaces.
|
String |
toString()
This will print out the size and current stack, from the
most recently added
to
the "oldest," all to System.out . |
public void push(org.jdom2.Namespace ns)
Namespace
to those currently available.ns
- Namespace
to add.public String pop()
Namespace
, and return its prefix.String
- the popped namespace prefix.public int size()
int
- size of the namespace stack.public String getURI(String prefix)
prefix
- String
namespace prefix.String
- the namespace URI for that prefix.Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.