public class CSVZipColumnFromRule extends CSVFromAbstractRule
Modifier and Type | Field and Description |
---|---|
protected int |
headerColumnNo
The number of the header column.
|
csvFile, enclosingCharacter, encoding, excludedNames, filename, fromLine, headerLine, headerLineNo, includedNames, messenger, separatorFile, separatorHeaderLine, toLine
loggerName, postMethods, preMethods, sessionRef
arguments, ctx, descriptor, NEW_LINE
Constructor and Description |
---|
CSVZipColumnFromRule() |
Modifier and Type | Method and Description |
---|---|
protected NameValueUnit[][] |
getRowLinesWithCheck(java.lang.String[] hdrWords,
java.util.Vector<java.lang.String> dataLines,
int headerRowNo)
Get the lines of the dataset from the row oriented lines from then CSV file.
|
NameValueUnit[][] |
getValue()
The getValue method, read the attribute values from the CVS file.
|
void |
init()
The init method, get the element name and the reference from the PACReturnWriter from the context.
|
static void |
main(java.lang.String[] argv) |
execute, getDataLines, getHeaderLine, getRowLines, setValue, splitLineWithHandlingEnclosing, terminate
execute, executePostMethods, executePreMethods, getAoSessionFromContextWithSessionRef, getId, getOdsCache, getPointTo, getSessionRef, getType, isPedantic, setGathermode, setId, setPointTo, setPostMethods, setPreMethods, setSessionRef, setType, toString, toString, toString
addAttributesToNameValueUnitArray, addAttributeToNameValueUnitArray, addStringValueToNameValueUnitArray, checkDirectoy, checkDirectoy, checkDirectoy, checkFile, checkFile, checkFile, checkIntValue, checkStringValue, compressNvuArray, createMessageFromPropertyFile, createMessageFromPropertyFile, createMessageFromPropertyFile, createTsUnionFromObject, deleteRowWithAttributes, getArguments, getContext, getDescriptor, getListFromProperty, getMandatoryProperty, getMandatoryProperty, getMandatoryPropertyAsInt, getMandatoryPropertyAsList, getMandatoryPropertyWithRuleException, getNvuArrayFromMap, getNvuArrayFromMap, getNvuObjectWithName, getNvuObjectWithName, getNvuObjectWithName, getOdsCacheFromProperty, getOptioanlPropertyAsInt, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsList, makeUpperCaseKeyword, removeAttributeFromNameValueUnitArray, removeAttributeFromNameValueUnitArray, setArguments, setContext, setDescriptor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContext, getDescriptor, setArguments, setContext, setDescriptor
protected NameValueUnit[][] getRowLinesWithCheck(java.lang.String[] hdrWords, java.util.Vector<java.lang.String> dataLines, int headerRowNo) throws RuleException
hdrWords
- the header words or names of the value.dataLines
- the lines with data from the CSV file.headerRowNo
- the row number where the header is stored. O means the headers is given in the parameter hdrWords.RuleException
public NameValueUnit[][] getValue() throws RuleException
RuleException
RuleIF.getValue()
public void init() throws InitializationFailedException
init
in interface ImplementationIF
init
in class CSVFromAbstractRule
InitializationFailedException
- if the initialization fails.AbstractImplementation.init()
public static void main(java.lang.String[] argv)