text
Class XMLMaker

java.lang.Object
  extended by text.FileMaker
      extended by text.XMLMaker
All Implemented Interfaces:
FileMakerInterface, TextConstants

public class XMLMaker
extends FileMaker

Makes XML file from the data structure.


Field Summary
 
Fields inherited from interface text.TextConstants
COMMA, CREATED_BY_ZYX, DELIM, DOUBLE_QUOTE, ELEMENT_DOCUMENT, ELEMENT_ITEM, EMPTY, FALSE, FORWARD_SLASH, FOUR_SPACES, ID_EQUALS, JAVA_LANG_STRING, LEFT_ANGLE, LEFT_BRACE, LEFT_BRACKET, MENU_ONE, MENU_TWO, NEW_LINE, ONE, RIGHT_ANGLE, RIGHT_BRACE, RIGHT_BRACKET, SEMICOLON, SINGLE_QUOTE, SPACE, TRUE, TWO, XML_VERSION, ZERO
 
Constructor Summary
XMLMaker()
          Default constructor.
 
Method Summary
 java.lang.String serialise(java.lang.Object[] columnNames, java.util.List<java.util.List<java.lang.Object>> data)
          Converts the two-dimensional data structure collection_ to a string representing an XML file.
 
Methods inherited from class text.FileMaker
addNextComponent, getSerialisedFile, indent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLMaker

public XMLMaker()
Default constructor.

Method Detail

serialise

public java.lang.String serialise(java.lang.Object[] columnNames,
                                  java.util.List<java.util.List<java.lang.Object>> data)
Converts the two-dimensional data structure collection_ to a string representing an XML file.

Parameters:
columnNames - - names for the columns.
data - - list of the data structure.
Returns:
string to be written to file in FileIO.