com.solidstategroup.cms.xmlimport.transform
Class CSVTransform

java.lang.Object
  extended by com.solidstategroup.cms.xmlimport.transform.DataBuilder
      extended by com.solidstategroup.cms.xmlimport.transform.CSVTransform

public abstract class CSVTransform
extends DataBuilder

CSVTransform this assumes a comma sep list of values enclosed in quotes. all you need to do is extend this class and override all the abstract methods


Field Summary
 
Fields inherited from class com.solidstategroup.cms.xmlimport.transform.DataBuilder
TAG_SEPARATOR
 
Constructor Summary
CSVTransform()
           
 
Method Summary
 java.util.Vector readData(java.lang.String str)
           
abstract  java.lang.String replaceNewLineDelimeters(java.lang.String data)
          this is assuming that each line is the same length so get rid of any newline delims and replace them with ',' then it will not have to worry about new line delims
 
Methods inherited from class com.solidstategroup.cms.xmlimport.transform.DataBuilder
cleanData, createArticle, getColumnDescription, getColumnTitle, getMappings, getRootArticleId, getRootChunkTypeId, manipulateColumn, produceXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVTransform

public CSVTransform()
Method Detail

replaceNewLineDelimeters

public abstract java.lang.String replaceNewLineDelimeters(java.lang.String data)
this is assuming that each line is the same length so get rid of any newline delims and replace them with ',' then it will not have to worry about new line delims


readData

public java.util.Vector readData(java.lang.String str)
Specified by:
readData in class DataBuilder