org.datamixer.io
Class XmlFormat

java.lang.Object
  extended byorg.datamixer.io.DMFormatter
      extended byorg.datamixer.io.XmlFormat

public class XmlFormat
extends DMFormatter


Field Summary
static java.lang.String INDENT
           
 
Fields inherited from class org.datamixer.io.DMFormatter
id_, logger_, reader_, writer_
 
Constructor Summary
XmlFormat()
           
 
Method Summary
protected  void formatAttribute(DMAttribute attr, Value value, int index)
           
static void indent(DMWriter writer, int depth)
           
static void newline(DMWriter writer)
           
 boolean read(DMElement element)
          Should be overridden by derived classes.
protected  void writeElement(int depth, DMElement element)
           
 
Methods inherited from class org.datamixer.io.DMFormatter
getId, getImpl, getReader, getWriter, setId, setImpl, setReader, setType, setWriter, write, write, writeAttribute, writeAttributes, writeElements, writeElementValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDENT

public static final java.lang.String INDENT
See Also:
Constant Field Values
Constructor Detail

XmlFormat

public XmlFormat()
Method Detail

read

public boolean read(DMElement element)
             throws DatamixerException
Description copied from class: DMFormatter
Should be overridden by derived classes. This method delegates to the implementation object.

Overrides:
read in class DMFormatter
Throws:
DatamixerException

writeElement

protected void writeElement(int depth,
                            DMElement element)
                     throws DatamixerException
Overrides:
writeElement in class DMFormatter
Throws:
DatamixerException

formatAttribute

protected void formatAttribute(DMAttribute attr,
                               Value value,
                               int index)
                        throws DatamixerException
Overrides:
formatAttribute in class DMFormatter
Throws:
DatamixerException

indent

public static void indent(DMWriter writer,
                          int depth)
                   throws DatamixerException
Throws:
DatamixerException

newline

public static void newline(DMWriter writer)
                    throws DatamixerException
Throws:
DatamixerException


Copyright © 2004-2006 datamixer.org. All Rights Reserved.