|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jelly.TagSupport net.sf.jameleon.LocationAwareTagSupport net.sf.jameleon.JameleonTagSupport net.sf.jameleon.data.AbstractDataDrivableTag net.sf.jameleon.data.AbstractFileDrivableTag net.sf.jameleon.AbstractCsvTag
public abstract class AbstractCsvTag
This DataDrivable tag is an implementation of a CSV data source.
Field Summary | |
---|---|
protected CsvDataDriver |
csv
|
protected String |
csvFileName
|
protected String |
name
|
Fields inherited from class net.sf.jameleon.data.AbstractFileDrivableTag |
---|
charset, dataDir, fileName |
Fields inherited from class net.sf.jameleon.data.AbstractDataDrivableTag |
---|
addt, breakPoint, countRow, dataDrivableRowResult, executer, failedOnCurrentRow, log, numOfRowFailures, parentFailed, previousStateDir, resultContainer, resultRecorder, rowData, stateStorer, stopTestExecutionOnFailure, tct, vars, xmlOut |
Fields inherited from class net.sf.jameleon.JameleonTagSupport |
---|
attributes, broker, contextVars, fp, unsupportedAttributes |
Fields inherited from class net.sf.jameleon.LocationAwareTagSupport |
---|
columnNumber, elementTagName, lineNumber, scriptFileName |
Fields inherited from class org.apache.commons.jelly.TagSupport |
---|
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
---|---|
AbstractCsvTag()
|
Method Summary | |
---|---|
String |
getCsvCharset()
|
File |
getCsvDir()
|
File |
getCsvFile()
Gets the file that will be used as a data source. |
String |
getCsvFileName()
Gets the relative path to the name of the csv file. |
char |
getCsvValueSeparator()
|
protected DataDriver |
getDataDriver()
Gets the DataDriver used for this tag. |
protected String |
getDataExceptionMessage()
Gets an error message to be displayed when a error occurs due to the DataDriver. |
String |
getName()
|
protected String |
getNewStateStoreLocation(int rowNum)
Calculates the location of the state to be stored for any tags under this tag. |
void |
setCsvCharset(String charset)
Sets the character set to use when reading in the CSV file |
void |
setCsvDir(File csvDir)
Sets the directory of the csv file to read in (relative to baseDir). |
void |
setCsvFileName(String csvFileName)
Sets the relative path to the name of the csv file. |
void |
setCsvValueSeparator(char valueSeparator)
Sets the separator used to separate CSV files. |
void |
setName(String name)
Sets the name of the csv file to read in. |
protected void |
setupDataDriver()
Sets up the DataDriver by calling any implementation-dependent methods. |
Methods inherited from class net.sf.jameleon.data.AbstractFileDrivableTag |
---|
getDataDir, getDataDir, setCharset, setDataDir, setFile |
Methods inherited from class net.sf.jameleon.JameleonTagSupport |
---|
cleanVariablesInContext, createAttributes, describeAttributes, getAttributeBroker, getAttributes, getAttributeType, getClassAttributes, getFunctionalPoint, getUnsupportedAttributes, loadFunctionalPoint, resetFunctionalPoint, setAttribute, setVariableInContext, testForUnsupportedAttributesCaught |
Methods inherited from class net.sf.jameleon.LocationAwareTagSupport |
---|
getColumnNumber, getElementName, getFileName, getLineNumber, setColumnNumber, setElementName, setFileName, setLineNumber |
Methods inherited from class org.apache.commons.jelly.TagSupport |
---|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.jelly.Tag |
---|
getBody, getContext, getParent, invokeBody, setBody, setContext, setParent |
Field Detail |
---|
protected CsvDataDriver csv
protected String name
protected String csvFileName
Constructor Detail |
---|
public AbstractCsvTag()
Method Detail |
---|
protected String getNewStateStoreLocation(int rowNum)
getNewStateStoreLocation
in class AbstractDataDrivableTag
protected String getDataExceptionMessage()
getDataExceptionMessage
in class AbstractDataDrivableTag
protected void setupDataDriver()
setupDataDriver
in class AbstractDataDrivableTag
public File getCsvFile()
protected DataDriver getDataDriver()
AbstractDataDrivableTag
getDataDriver
in class AbstractDataDrivableTag
public String getCsvFileName()
public void setCsvFileName(String csvFileName)
csvFileName
- - the relative path and name of the csv file to read in.This attribute is recognized by Jameleonpublic String getName()
public void setName(String name)
name
- - The name of the csv file.This attribute is recognized by Jameleonpublic File getCsvDir()
public void setCsvDir(File csvDir)
csvDir
- - The directory of the csv file.This attribute is recognized by Jameleonpublic char getCsvValueSeparator()
public void setCsvValueSeparator(char valueSeparator)
valueSeparator
- - The separator used to separate CSV files.This attribute is recognized by Jameleonpublic void setCsvCharset(String charset)
charset
- - the character set to use when reading in the CSV file (Defaults to UTF-8)This attribute is recognized by Jameleonpublic String getCsvCharset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |