com.metamatrix.query.mapping.xml
Class MappingOutputter

java.lang.Object
  extended by com.metamatrix.query.mapping.xml.MappingOutputter

public class MappingOutputter
extends java.lang.Object

Outputs a mapping definition in XML format. The mapping definition is held in object form in an instance of the MappingDefinition class. This is transferred into an XML Document representation and then written to a file.

See Also:
MappingDefinition

Constructor Summary
MappingOutputter()
           
 
Method Summary
 void write(MappingDocument doc, java.io.PrintWriter stream)
          Ouput the current JDOM Document to the output stream.
 void write(MappingDocument doc, java.io.PrintWriter stream, boolean newlines, boolean indent)
          Ouput the current JDOM Document to the output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingOutputter

public MappingOutputter()
Method Detail

write

public void write(MappingDocument doc,
                  java.io.PrintWriter stream)
           throws java.io.IOException

Ouput the current JDOM Document to the output stream.

Parameters:
stream - The output stream
Throws:
java.io.IOException - if there are problems writing to the file.

write

public void write(MappingDocument doc,
                  java.io.PrintWriter stream,
                  boolean newlines,
                  boolean indent)
           throws java.io.IOException

Ouput the current JDOM Document to the output stream.

Parameters:
stream - The output stream
newlines - true if the output should contain newline characters, or false otherwise
indent - true if the output should be indented, or false otherwise.
Throws:
java.io.IOException - if there are problems writing to the file.


Copyright © 2009. All Rights Reserved.