public class NSStack extends Object
Constructor and Description |
---|
NSStack() |
Modifier and Type | Method and Description |
---|---|
void |
add(String namespaceURI,
String prefix)
Add a mapping for a namespaceURI to the specified prefix to the top
frame in the stack.
|
List<Mapping> |
cloneFrame()
Return a copy of the current frame.
|
void |
dump(String dumpPrefix)
Produce a trace dump of the entire stack, starting from the top and
including frame markers.
|
String |
getNamespaceURI(String prefix)
Given a prefix, return the associated namespace (if any).
|
String |
getPrefix(String namespaceURI)
Return an active prefix for the given namespaceURI, including
the default prefix ("").
|
String |
getPrefix(String namespaceURI,
boolean noDefault)
Return an active prefix for the given namespaceURI.
|
Mapping |
next()
Return the next namespace mapping in the top frame.
|
void |
pop()
Remove the top frame from the stack.
|
void |
push()
Create a new frame at the top of the stack.
|
Mapping |
topOfFrame()
Reset the embedded iterator in this class to the top of the current
(i.e., last) frame.
|
public void push()
public void pop()
public List<Mapping> cloneFrame()
public Mapping topOfFrame()
public Mapping next()
public void add(String namespaceURI, String prefix)
public String getPrefix(String namespaceURI, boolean noDefault)
public String getPrefix(String namespaceURI)
public String getNamespaceURI(String prefix)
public void dump(String dumpPrefix)
Copyright © 2017 JBoss by Red Hat. All rights reserved.