com.elasticpath.domain.dataimport.impl
Class ImportFaultImpl

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

public class ImportFaultImpl
extends AbstractTransientImpl
implements ImportFault

Represents a default implementation of ImportFault.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Fields inherited from interface com.elasticpath.domain.dataimport.ImportFault
ERROR, WARNING
 
Constructor Summary
ImportFaultImpl()
           
 
Method Summary
 java.lang.Object[] getArgs()
          Returns the arguments for fault code.
 java.lang.String getCode()
          Returns the fault code.
 int getLevel()
          Returns the level.
 java.lang.Exception getSource()
          Returns the fault source.
 boolean isError()
          Returns true if the fault is an error.
 boolean isWarning()
          Returns true if the fault is a warning.
 void setArgs(java.lang.Object[] args)
          Sets the arguments for fault code.
 void setCode(java.lang.String code)
          Sets the fault code.
 void setLevel(int level)
          Sets the level.
 void setSource(java.lang.Exception source)
          Sets the fault source.
 
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

ImportFaultImpl

public ImportFaultImpl()
Method Detail

getArgs

public java.lang.Object[] getArgs()
Returns the arguments for fault code.

Specified by:
getArgs in interface ImportFault
Returns:
the arguments for fault code

getCode

public java.lang.String getCode()
Returns the fault code.

Specified by:
getCode in interface ImportFault
Returns:
the fault code.

getLevel

public int getLevel()
Returns the level.

Specified by:
getLevel in interface ImportFault
Returns:
the level

getSource

public java.lang.Exception getSource()
Returns the fault source.

Specified by:
getSource in interface ImportFault
Returns:
the fault source

isError

public boolean isError()
Returns true if the fault is an error.

Specified by:
isError in interface ImportFault
Returns:
true if the fault is an error

isWarning

public boolean isWarning()
Returns true if the fault is a warning.

Specified by:
isWarning in interface ImportFault
Returns:
true if the fault is a warning

setArgs

public void setArgs(java.lang.Object[] args)
Sets the arguments for fault code.

Specified by:
setArgs in interface ImportFault
Parameters:
args - the arguments

setCode

public void setCode(java.lang.String code)
Sets the fault code.

Specified by:
setCode in interface ImportFault
Parameters:
code - the fault code to set

setLevel

public void setLevel(int level)
Sets the level.

Specified by:
setLevel in interface ImportFault
Parameters:
level - the level to set

setSource

public void setSource(java.lang.Exception source)
Sets the fault source.

Specified by:
setSource in interface ImportFault
Parameters:
source - the fault source to set