fi.hut.tml.xsmiles.xml.serializer
Class XercesXMLSerializer

java.lang.Object
  extended byfi.hut.tml.xsmiles.xml.serializer.XercesXMLSerializer
All Implemented Interfaces:
Serializer, XMLSerializerInterface

public class XercesXMLSerializer
extends java.lang.Object
implements XMLSerializerInterface

the class for serializing the XForms instance as XML (simple, uses just a serializer to do the job)


Field Summary
protected  org.w3c.dom.ls.DOMWriterFilter fDOMFilter
           
protected  boolean indent
           
protected  boolean omitXMLDeclaration
           
protected  boolean standalone
           
protected  java.lang.String version
          the XML version, null=default (1.0)
 
Constructor Summary
XercesXMLSerializer()
           
 
Method Summary
protected  org.apache.xml.serialize.DOMWriterImpl getWriter(org.w3c.dom.Document adoc)
           
 void setFilter(org.w3c.dom.ls.DOMWriterFilter filter)
          sets a DOMWriterFilter
 void setIndent(boolean ind)
          set the indent on/off
 void setOmitXMLDeclaration(boolean omit)
          omit XML declaration
 void setStandalone(boolean sa)
          set standalone on/off
protected  void setStandalone(org.w3c.dom.Document doc, boolean standalone)
          X-Smiles 0.8 packs with a version of Xerces, that actually does not support this but a later version will support it
 void writeNode(java.io.OutputStream out, org.w3c.dom.Node elem)
           
 java.lang.String writeToString(org.w3c.dom.Node elem)
           
 java.lang.String writeToString(org.w3c.dom.Node elem, boolean fixupNamespaces)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fDOMFilter

protected org.w3c.dom.ls.DOMWriterFilter fDOMFilter

omitXMLDeclaration

protected boolean omitXMLDeclaration

indent

protected boolean indent

standalone

protected boolean standalone

version

protected java.lang.String version
the XML version, null=default (1.0)

Constructor Detail

XercesXMLSerializer

public XercesXMLSerializer()
Method Detail

setFilter

public void setFilter(org.w3c.dom.ls.DOMWriterFilter filter)
sets a DOMWriterFilter

Specified by:
setFilter in interface XMLSerializerInterface

setOmitXMLDeclaration

public void setOmitXMLDeclaration(boolean omit)
omit XML declaration

Specified by:
setOmitXMLDeclaration in interface XMLSerializerInterface

setIndent

public void setIndent(boolean ind)
set the indent on/off

Specified by:
setIndent in interface XMLSerializerInterface

setStandalone

public void setStandalone(boolean sa)
set standalone on/off

Specified by:
setStandalone in interface XMLSerializerInterface

writeToString

public java.lang.String writeToString(org.w3c.dom.Node elem)
                               throws java.lang.Exception
Specified by:
writeToString in interface XMLSerializerInterface
Throws:
java.lang.Exception

writeToString

public java.lang.String writeToString(org.w3c.dom.Node elem,
                                      boolean fixupNamespaces)
                               throws java.lang.Exception
Specified by:
writeToString in interface XMLSerializerInterface
Throws:
java.lang.Exception

setStandalone

protected void setStandalone(org.w3c.dom.Document doc,
                             boolean standalone)
X-Smiles 0.8 packs with a version of Xerces, that actually does not support this but a later version will support it


getWriter

protected org.apache.xml.serialize.DOMWriterImpl getWriter(org.w3c.dom.Document adoc)

writeNode

public void writeNode(java.io.OutputStream out,
                      org.w3c.dom.Node elem)
Specified by:
writeNode in interface XMLSerializerInterface


X-Smiles 1.2