Class OMDOMWriter
java.lang.Object
org.episteme.core.mathematics.loaders.openmath.io.OMDOMWriter
An OMDOMWriter.
- Version:
- $Revision: 1.3 $
- Author:
- Manfred N. Riem (mriem@manorrock.org)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the namespace prefix.voidsetNamespacePrefix(String newPrefix) Set the namespace prefix.Write out a DOM document.Write out a DOM document node.
-
Field Details
-
prefix
Stores the namespace prefix. -
document
Stores the document reference we use to create elements.
-
-
Constructor Details
-
OMDOMWriter
public OMDOMWriter()Constructor.
-
-
Method Details
-
setNamespacePrefix
Set the namespace prefix.- Parameters:
newPrefix- the namespace prefix to generate.
-
getNamespacePrefix
-
write
Write out a DOM document.- Parameters:
object- the object to write out.- Returns:
- the generated DOM document.
- Throws:
IOException- when a serious error occurs.
-
writeNode
Write out a DOM document node.- Parameters:
object- the object to write out.- Returns:
- the generated DOM node.
- Throws:
IOException- when a serious error occurs.
-