text
Class FileMaker

java.lang.Object
  extended by text.FileMaker
All Implemented Interfaces:
FileMakerInterface, TextConstants
Direct Known Subclasses:
CSVMaker, JSONMaker, XMLMaker

public abstract class FileMaker
extends java.lang.Object
implements TextConstants, FileMakerInterface

A class which contains methods and variables common to all current and potential TextMaker classes.


Field Summary
private static java.lang.String serialisedFile
           
 
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
FileMaker()
          Constructor for the FileMaker class
 
Method Summary
static void addNextComponent(java.lang.Object component)
          Concatenates a new component to the serialisedFile structure.
static java.lang.String getSerialisedFile()
          Returns the private FileMaker variable serialisedFile.
static void indent(int indents)
          Adds a number of indents (4 spaces) to the serialised file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface text.FileMakerInterface
serialise
 

Field Detail

serialisedFile

private static java.lang.String serialisedFile
Constructor Detail

FileMaker

public FileMaker()
Constructor for the FileMaker class

Method Detail

addNextComponent

public static void addNextComponent(java.lang.Object component)
Concatenates a new component to the serialisedFile structure.

Parameters:
component -

getSerialisedFile

public static java.lang.String getSerialisedFile()
Returns the private FileMaker variable serialisedFile.

Returns:
String serialisedFile

indent

public static void indent(int indents)
Adds a number of indents (4 spaces) to the serialised file.

Parameters:
indents - - number of indents to add