com.solidstategroup.cms.xmlimport.transform
Class DataBuilder
java.lang.Object
com.solidstategroup.cms.xmlimport.transform.DataBuilder
- Direct Known Subclasses:
- CSVTransform, TSVTransform
public abstract class DataBuilder
- extends java.lang.Object
DataBuilder
|
Method Summary |
abstract java.lang.String |
cleanData(java.lang.String data)
|
protected org.dom4j.Element |
createArticle(org.dom4j.Element parent,
java.lang.String[] data,
boolean search,
boolean publish)
|
abstract int |
getColumnDescription()
|
abstract int |
getColumnTitle()
|
abstract int[] |
getMappings()
possitive numbers are asset mapping
negative are tags - for a tag if mapping is -0 then the roottagid is the value (can be a string sep by %)
else it will assume that this is a flag style mapping and the mapping is the roottagid
this may need to be changed at a later point if we need a more fexiblity |
abstract int |
getRootArticleId()
If this is negative it is a column index - else it is the actual rootArticleId |
abstract int |
getRootChunkTypeId()
|
abstract java.lang.String |
manipulateColumn(java.lang.String data,
int columnIndex)
|
protected org.dom4j.Document |
produceXML(java.io.InputStream inputStream)
|
abstract java.util.Vector |
readData(java.lang.String str)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TAG_SEPARATOR
public static final java.lang.String TAG_SEPARATOR
- See Also:
- Constant Field Values
DataBuilder
public DataBuilder()
readData
public abstract java.util.Vector readData(java.lang.String str)
cleanData
public abstract java.lang.String cleanData(java.lang.String data)
getRootArticleId
public abstract int getRootArticleId()
- If this is negative it is a column index - else it is the actual rootArticleId
getRootChunkTypeId
public abstract int getRootChunkTypeId()
getColumnTitle
public abstract int getColumnTitle()
getColumnDescription
public abstract int getColumnDescription()
manipulateColumn
public abstract java.lang.String manipulateColumn(java.lang.String data,
int columnIndex)
getMappings
public abstract int[] getMappings()
- possitive numbers are asset mapping
negative are tags - for a tag if mapping is -0 then the roottagid is the value (can be a string sep by %)
else it will assume that this is a flag style mapping and the mapping is the roottagid
this may need to be changed at a later point if we need a more fexiblity
produceXML
protected org.dom4j.Document produceXML(java.io.InputStream inputStream)
createArticle
protected org.dom4j.Element createArticle(org.dom4j.Element parent,
java.lang.String[] data,
boolean search,
boolean publish)