public final class NewOMDOMWriter
extends java.lang.Object
Constructor and Description |
---|
NewOMDOMWriter(org.w3c.dom.Document document,
java.lang.String uri,
java.lang.String prefix)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNamespacePrefix()
Get the namespace prefix.
|
void |
setNamespacePrefix(java.lang.String newPrefix)
Set the namespace prefix.
|
org.w3c.dom.Document |
write(nl.tue.win.riaca.openmath.lang.OMObject object)
Write out a DOM document.
|
org.w3c.dom.Node |
writeNode(nl.tue.win.riaca.openmath.lang.OMObject object)
Write out a DOM document node.
|
public NewOMDOMWriter(org.w3c.dom.Document document, java.lang.String uri, java.lang.String prefix)
document
- the document.uri
- the uri.prefix
- the prefix.public void setNamespacePrefix(java.lang.String newPrefix)
newPrefix
- the namespace prefix to generate.public java.lang.String getNamespacePrefix()
public org.w3c.dom.Document write(nl.tue.win.riaca.openmath.lang.OMObject object) throws java.io.IOException
object
- the object to write out.java.io.IOException
- when a serious error occurs.public org.w3c.dom.Node writeNode(nl.tue.win.riaca.openmath.lang.OMObject object) throws java.io.IOException
object
- the object to write out.java.io.IOException
- when a serious error occurs.