public class NamespaceWriterContext extends NamespaceContextImpl
_stack, _version, L
Constructor and Description |
---|
NamespaceWriterContext() |
NamespaceWriterContext(boolean repair) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
declare(java.lang.String uri)
declares a new namespace prefix in the current context; the
auto-allocated prefix is returned
|
void |
declare(java.lang.String prefix,
java.lang.String uri)
declares a new namespace prefix in the current context
|
void |
declare(java.lang.String prefix,
java.lang.String uri,
boolean forceEmit)
declares a new namespace prefix in the current context
|
void |
emitDeclarations(WriteStream ws) |
java.lang.String |
getNamespaceURI(java.lang.String prefix) |
java.lang.String |
getPrefix(java.lang.String uri)
looks up the uri, returns the prefix it corresponds to
|
java.util.Iterator |
getPrefixes(java.lang.String uri) |
boolean |
getRepair() |
protected void |
remove(java.lang.String prefix,
java.lang.String uri) |
void |
setRepair(boolean repair) |
java.lang.String |
toString() |
getDepth, getElementName, pop, push, setElementName
public NamespaceWriterContext()
public NamespaceWriterContext(boolean repair)
protected void remove(java.lang.String prefix, java.lang.String uri)
remove
in class NamespaceContextImpl
public boolean getRepair()
public void setRepair(boolean repair)
public void declare(java.lang.String prefix, java.lang.String uri)
NamespaceContextImpl
declare
in class NamespaceContextImpl
public void declare(java.lang.String prefix, java.lang.String uri, boolean forceEmit)
public java.lang.String declare(java.lang.String uri)
public java.lang.String getPrefix(java.lang.String uri)
public java.lang.String getNamespaceURI(java.lang.String prefix)
public java.util.Iterator getPrefixes(java.lang.String uri)
public void emitDeclarations(WriteStream ws) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object