|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.helpers.NSStack
public class NSStack
Constructor Summary | |
---|---|
NSStack()
|
Method Summary | |
---|---|
String |
add(String uri)
Add a new declaration to the current scope using a unique prefix and return the prefix. |
void |
add(String prefix,
String uri)
Add a new declaration to the current scope. |
String |
getPrefix(String uri)
Return the prefix associated with the given namespace name by looking thru all the namespace declarations that are in scope. |
String |
getURI(String prefix)
Return the namespace name associated with the given prefix by looking thru all the namespace declarations that are in scope. |
void |
pop()
Leave a scope: this removes any NS declarations that were added in the last scope. |
void |
push()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NSStack()
Method Detail |
---|
public void push()
public void pop()
public void add(String prefix, String uri)
prefix
- the prefix to be used for this namespaceuri
- the namespace name of this namespace.public String add(String uri)
uri
- the namespace name of this namespace
public String getPrefix(String uri)
uri
- the namespace name for whom a declared prefix is desired
public String getURI(String prefix)
prefix
- the prefix for whom a declared namespace name is desired
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |