public class CSVZipLineLocalColumnFromRule extends CSVFromAbstractRule
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
flagsAttributeName
The name of the flags attribute
|
protected java.lang.String |
headerAttributeName
The name of the header attribute
|
protected java.lang.String |
undefined
The string for undefined values.
|
protected int |
valueLine
The number of the line where the values starts.
|
protected java.lang.String |
valuesAttributeName
The name of the value attribute
|
protected int |
valueToLine
The number of the line where the values ends, 0 means end of file.
|
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 |
---|
CSVZipLineLocalColumnFromRule() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Vector<java.lang.String> |
getDataLines(int fromLine,
int toLine)
Read the data lines from the CSV file.
|
protected java.lang.String |
getHeaderLine()
Get the header line.
|
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, 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 int valueLine
protected int valueToLine
protected java.lang.String valuesAttributeName
protected java.lang.String flagsAttributeName
protected java.lang.String headerAttributeName
protected java.lang.String undefined
protected java.util.Vector<java.lang.String> getDataLines(int fromLine, int toLine) throws RuleException
getDataLines
in class CSVFromAbstractRule
fromLine
- the first line to read.toLine
- the last line to read (0 -> until the ent of the file)RuleException
protected java.lang.String getHeaderLine() throws RuleException
CSVFromAbstractRule
getHeaderLine
in class CSVFromAbstractRule
RuleException
- any occurring Rule exception.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)