cst.loggingTool.io
Class ActivitySpreadsheetParsingEngine
java.lang.Object
cst.loggingTool.io.ActivitySpreadsheetParsingEngine
public class ActivitySpreadsheetParsingEngine
- extends java.lang.Object
Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActivitySpreadsheetParsingEngine
public ActivitySpreadsheetParsingEngine(SessionProperties sessionProperties)
hasErrors
public boolean hasErrors()
setFirstLineNumberOfInput
public void setFirstLineNumberOfInput(int firstLineNumberOfInput)
getNumberOfEffectedRecords
public int getNumberOfEffectedRecords()
getTransferSettings
public SpreadsheetTransferSettings getTransferSettings()
setApplicationName
public void setApplicationName(java.lang.String applicationName)
setSkipHeader
public void setSkipHeader(boolean skipHeader)
setAllowBlankValues
public void setAllowBlankValues(boolean allowBlankValues)
- Parameters:
allowBlankValues
- the allowBlankValues to set
setAllowCommentFieldValues
public void setAllowCommentFieldValues(boolean allowCommentFieldValues)
- Parameters:
allowCommentFieldValues
- the allowCommentFieldValues to set
setErrorReportDestinationDirectory
public void setErrorReportDestinationDirectory(java.io.File directory)
setEnforceNonDescendingDateOrder
public void setEnforceNonDescendingDateOrder(boolean enforceNonDescendingDateOrder)
- Parameters:
enforceNonDescendingDateOrder
- the enforceNonDescendingDateOrder to set
mapPrimaryKeyConcept
public void mapPrimaryKeyConcept(java.lang.String spreadsheetHeaderLabel,
java.lang.String dataStorageFieldName)
mapSourceToDestinationConcept
public void mapSourceToDestinationConcept(java.lang.String spreadsheetHeaderLabel,
java.lang.String dataStorageActivityName,
java.lang.String dataStorageActivityStepName)
setStandardDateFormat
public void setStandardDateFormat(java.lang.String standardDateFormat)
setKnownDateFormats
public void setKnownDateFormats(java.lang.String[] knownDateFormats)
setDelimiter
public void setDelimiter(java.lang.String delimiter)
importFile
public void importFile(java.io.File dataFile)
throws CSTException
- Throws:
CSTException
importTextData
public void importTextData(java.lang.String text)
throws CSTException
- Throws:
CSTException
writeErrorReport
public void writeErrorReport()
throws CSTException
- Throws:
CSTException