com.elasticpath.domain.dataimport.impl
Class ImportBadRowImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.dataimport.impl.ImportBadRowImpl
All Implemented Interfaces:
ImportBadRow, EpDomain, Transient, java.io.Serializable

public class ImportBadRowImpl
extends AbstractEpDomainImpl
implements ImportBadRow

Represents an import bad row.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
ImportBadRowImpl()
           
 
Method Summary
 void addImportFault(ImportFault importFault)
          Add the error message to the list.
 java.util.List getImportErrors()
          Returns a list of error messages.
 java.util.List getImportFaults()
          Returns a list of error message.
 java.lang.String getRow()
          Returns the row that caused error.
 int getRowAreaEndNumber()
          Returns the row area end number(open).
 int getRowAreaStartNumber()
          Returns the row area start number(close).
 int getRowNumber()
          Returns the row number that caused error.
 void setImportFaults(java.util.List importFaults)
          Sets a list of error messages.
 void setRow(java.lang.String row)
          Set the row.
 void setRowArea(int startRowNumber, int endRowNumber)
          Sets the row area in which the bad row is in.
 void setRowNumber(int rowNumber)
          Set the row number that caused error.
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

ImportBadRowImpl

public ImportBadRowImpl()
Method Detail

addImportFault

public void addImportFault(ImportFault importFault)
Add the error message to the list.

Specified by:
addImportFault in interface ImportBadRow
Parameters:
importFault - the error message

getImportErrors

public java.util.List getImportErrors()
Returns a list of error messages.

Specified by:
getImportErrors in interface ImportBadRow
Returns:
a list of error messages

getImportFaults

public java.util.List getImportFaults()
Returns a list of error message.

Specified by:
getImportFaults in interface ImportBadRow
Returns:
a list of error message

getRow

public java.lang.String getRow()
Returns the row that caused error.

Specified by:
getRow in interface ImportBadRow
Returns:
the row that caused error

getRowAreaEndNumber

public int getRowAreaEndNumber()
Returns the row area end number(open).

Specified by:
getRowAreaEndNumber in interface ImportBadRow
Returns:
the row area end number(open).

getRowAreaStartNumber

public int getRowAreaStartNumber()
Returns the row area start number(close).

Specified by:
getRowAreaStartNumber in interface ImportBadRow
Returns:
the row area start number(close).

getRowNumber

public int getRowNumber()
Returns the row number that caused error.

Specified by:
getRowNumber in interface ImportBadRow
Returns:
the row number that caused error

setImportFaults

public void setImportFaults(java.util.List importFaults)
Sets a list of error messages.

Specified by:
setImportFaults in interface ImportBadRow
Parameters:
importFaults - the list of error messages to set

setRow

public void setRow(java.lang.String row)
Set the row.

Specified by:
setRow in interface ImportBadRow
Parameters:
row - the row to set

setRowArea

public void setRowArea(int startRowNumber,
                       int endRowNumber)
Sets the row area in which the bad row is in.

Specified by:
setRowArea in interface ImportBadRow
Parameters:
startRowNumber - the start row number of the row area(close)
endRowNumber - the end row number of the row area(open)

setRowNumber

public void setRowNumber(int rowNumber)
Set the row number that caused error.

Specified by:
setRowNumber in interface ImportBadRow
Parameters:
rowNumber - the row number that caused error