|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.brics.xact.operations.NamespacePrefixTracker
class NamespacePrefixTracker
Manages namespace prefixes during construction of ordinary XML output from XML templates.
Constructor Summary | |
---|---|
NamespacePrefixTracker()
Constructs a new namespace prefix tracker. |
Method Summary | |
---|---|
void |
addDecl(String prefix,
String namespace)
Adds a namespace declaration. |
void |
ensureDeclared(String namespace,
Map<String,String> nsdecls)
Ensures that the given namespace is declared. |
Stack<String> |
getPrefix(String n)
Returns the prefix for the given namespace. |
void |
popNamespaceDeclarations(Map<String,String> nsdecls)
Pops the given namespace declarations. |
Map<String,String> |
pushNamespaceDeclarations(Element n)
Adds the list of namespaces declared by the element to the namespace tracker. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamespacePrefixTracker()
Method Detail |
---|
public void addDecl(String prefix, String namespace)
public void ensureDeclared(String namespace, Map<String,String> nsdecls)
nsdecls
- if a new declaration is needed, it is also added herepublic Stack<String> getPrefix(String n)
public void popNamespaceDeclarations(Map<String,String> nsdecls)
public Map<String,String> pushNamespaceDeclarations(Element n)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |