cst.common.io
Class SpreadsheetTransferSettings

java.lang.Object
  extended by cst.common.io.SpreadsheetTransferSettings

public class SpreadsheetTransferSettings
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)

Constructor Summary
SpreadsheetTransferSettings()
           
 
Method Summary
 void addError(SpreadsheetImportError error)
           
 void addHeaderError(SpreadsheetImportError error)
           
 boolean allowBlankValues()
           
 boolean allowCommentFieldValues()
           
 boolean enforceNonDescendingDateOrder()
           
 boolean errorThresholdExceeded()
           
 int getCurrentLineNumber()
           
 java.lang.String getDelimiter()
           
 int getErrorCount()
           
 int getErrorCount(CSTErrorType errorType)
           
 java.util.ArrayList<SpreadsheetImportError> getErrors()
           
 java.util.ArrayList<SpreadsheetImportError> getErrors(CSTErrorType errorType)
           
 java.util.ArrayList<SpreadsheetImportError> getHeaderErrors()
           
 int getModifiedRecordsFromActivityData()
           
 int getNumberOfHeaderErrors()
           
 int getNumberOfImportedRecords()
           
 java.lang.String getStandardDateFormat()
           
 void increaseImportedRecordCount(java.lang.String subjectIdentifier)
           
 void incrementLineNumber()
           
 void printErrors()
           
 void resetAllSettings()
           
 void resetCurrentLineNumber()
           
 void resetLastRunData()
           
 void setAllowBlankValues(boolean allowBlankValues)
           
 void setAllowCommentFieldValues(boolean allowCommentFieldValues)
           
 void setDelimiter(java.lang.String delimiter)
           
 void setEnforceNonDescendingDateOrder(boolean enforceNonDescendingDateOrder)
           
 void setErrorThreshold(int errorThreshold)
           
 void setModifiedRecordsFromActivityData(int modifiedRecordsFromActivityData)
           
 void setStandardDateFormat(java.lang.String standardDateFormat)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpreadsheetTransferSettings

public SpreadsheetTransferSettings()
Method Detail

resetLastRunData

public void resetLastRunData()

resetAllSettings

public void resetAllSettings()

resetCurrentLineNumber

public void resetCurrentLineNumber()

errorThresholdExceeded

public boolean errorThresholdExceeded()

setErrorThreshold

public void setErrorThreshold(int errorThreshold)

getNumberOfHeaderErrors

public int getNumberOfHeaderErrors()

getCurrentLineNumber

public int getCurrentLineNumber()

addHeaderError

public void addHeaderError(SpreadsheetImportError error)

addError

public void addError(SpreadsheetImportError error)

printErrors

public void printErrors()

getErrors

public java.util.ArrayList<SpreadsheetImportError> getErrors()

getErrorCount

public int getErrorCount()

getHeaderErrors

public java.util.ArrayList<SpreadsheetImportError> getHeaderErrors()

getErrorCount

public int getErrorCount(CSTErrorType errorType)

getErrors

public java.util.ArrayList<SpreadsheetImportError> getErrors(CSTErrorType errorType)

incrementLineNumber

public void incrementLineNumber()

getNumberOfImportedRecords

public int getNumberOfImportedRecords()

getModifiedRecordsFromActivityData

public int getModifiedRecordsFromActivityData()

setModifiedRecordsFromActivityData

public void setModifiedRecordsFromActivityData(int modifiedRecordsFromActivityData)

increaseImportedRecordCount

public void increaseImportedRecordCount(java.lang.String subjectIdentifier)

allowBlankValues

public boolean allowBlankValues()
Returns:
the allowBlankValues

setAllowBlankValues

public void setAllowBlankValues(boolean allowBlankValues)
Parameters:
allowBlankValues - the allowBlankValues to set

allowCommentFieldValues

public boolean allowCommentFieldValues()
Returns:
the allowCommentFieldValues

setAllowCommentFieldValues

public void setAllowCommentFieldValues(boolean allowCommentFieldValues)
Parameters:
allowCommentFieldValues - the allowCommentFieldValues to set

enforceNonDescendingDateOrder

public boolean enforceNonDescendingDateOrder()
Returns:
the enforceNonDescendingDateOrder

setEnforceNonDescendingDateOrder

public void setEnforceNonDescendingDateOrder(boolean enforceNonDescendingDateOrder)
Parameters:
enforceNonDescendingDateOrder - the enforceNonDescendingDateOrder to set

getDelimiter

public java.lang.String getDelimiter()
Returns:
the delimiter

setDelimiter

public void setDelimiter(java.lang.String delimiter)
Parameters:
delimiter - the delimiter to set

getStandardDateFormat

public java.lang.String getStandardDateFormat()
Returns:
the standardDateFormat

setStandardDateFormat

public void setStandardDateFormat(java.lang.String standardDateFormat)
Parameters:
standardDateFormat - the standardDateFormat to set