Class DataCollectionSheetConversionResult

java.lang.Object
overit.geocallapp.wfm.core.bl.datacollection.converter.sheet.DataCollectionSheetConversionResult

public class DataCollectionSheetConversionResult extends Object
Stores the sheet conversion result. It automatically counts error, warning and total sheet nodes.
Since:
13.0
GCApi:
bo
  • Constructor Details

    • DataCollectionSheetConversionResult

      public DataCollectionSheetConversionResult()
      Give an instance of the object
  • Method Details

    • addResult

      public void addResult(DataCollectionValueConversionResult conversionResult)
      Add the value conversion result to the list and update the error, warning and total node count.
      Parameters:
      conversionResult - the value conversion result
    • getOldSheetId

      public Long getOldSheetId()
      Get the old sheet id.
      Returns:
      the old sheet id
    • setOldSheetId

      public void setOldSheetId(Long oldSheetId)
      Set the old sheet id.
      Parameters:
      oldSheetId - the old sheet id
    • getNewSheetId

      public Long getNewSheetId()
      Get the new sheet id.
      Returns:
      the new sheet id
    • setNewSheetId

      public void setNewSheetId(Long newSheetId)
      Set the new sheet id.
      Parameters:
      newSheetId - the new sheet id
    • getErrorCount

      public Long getErrorCount()
      Get the number of nodes not converted due to an error.
      Returns:
      the number of nodes not converted due to an error
    • setErrorCount

      public void setErrorCount(Long errorCount)
      Set the number of nodes not converted due to an error.
      Parameters:
      errorCount - the number of nodes not converted due to an error
    • getWarningCount

      public Long getWarningCount()
      Get the number of node converted with a warning.
      Returns:
      the number of node converted with a warning
    • setWarningCount

      public void setWarningCount(Long warningCount)
      Set the number of node converted with a warning.
      Parameters:
      warningCount - the number of node converted with a warning
    • getTotalNodeCount

      public Long getTotalNodeCount()
      Get the sheet total nodes amount.
      Returns:
      the sheet total nodes amount
    • setTotalNodeCount

      public void setTotalNodeCount(Long totalNodeCount)
      Set the sheet total nodes amount.
      Parameters:
      totalNodeCount - the sheet total nodes amount
    • getValueConversionResults

      public List<DataCollectionValueConversionResult> getValueConversionResults()
      Get the list of conversion result of each node.
      Returns:
      the list of conversion result of each node