text
Class XMLGetter

java.lang.Object
  extended by text.FileGetter
      extended by text.XMLGetter
All Implemented Interfaces:
FileGetterInterface, TextConstants

public class XMLGetter
extends FileGetter

Retieves data from a XLM file saved in TextConvertor format into the data structure.


Field Summary
private static java.lang.String content
           
private  java.lang.String tmp
           
 
Fields inherited from class text.FileGetter
counter
 
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
XMLGetter()
          Default Constructor.
 
Method Summary
 void addColumnNames()
          Adds column names to the content string.
 void addData()
          Adds the data contained in the XML file to the CSV string.
 java.lang.String makeCSVString(java.lang.String content_)
          Constructs a string representing CSV file from the XML file content.
 
Methods inherited from class text.FileGetter
appendToCSV, appendToValue, clearCSV, clearValue, getCSV, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

private static java.lang.String content

tmp

private java.lang.String tmp
Constructor Detail

XMLGetter

public XMLGetter()
Default Constructor.

Method Detail

makeCSVString

public java.lang.String makeCSVString(java.lang.String content_)
Constructs a string representing CSV file from the XML file content.

Parameters:
content_ - - XML file content.
Returns:
getCSV - a string representing CSV.

addColumnNames

public void addColumnNames()
Adds column names to the content string.


addData

public void addData()
Adds the data contained in the XML file to the CSV string.