Class AbstractValidationError
- java.lang.Object
-
- de.hybris.platform.importcockpit.validation.impl.AbstractValidationError
-
- All Implemented Interfaces:
ValidationError
- Direct Known Subclasses:
AbstractLineValidationError
,AbstractMappingValidationError
public abstract class AbstractValidationError extends java.lang.Object implements ValidationError
Abstract superclass of all specific validation error types that implements some of the methods defined in ValidationError
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.hybris.platform.importcockpit.validation.ValidationError
ValidationError.ErrorCode
-
-
Constructor Summary
Constructors Constructor Description AbstractValidationError(ValidationError.ErrorCode code, java.lang.Object source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
ValidationError.ErrorCode
getErrorCode()
Returns the error code of the validation error.java.lang.Object
getSource()
Returns the source of the validation error.int
hashCode()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.importcockpit.validation.ValidationError
getMessage
-
-
-
-
Constructor Detail
-
AbstractValidationError
public AbstractValidationError(ValidationError.ErrorCode code, java.lang.Object source)
-
-
Method Detail
-
getErrorCode
public ValidationError.ErrorCode getErrorCode()
Description copied from interface:ValidationError
Returns the error code of the validation error.- Specified by:
getErrorCode
in interfaceValidationError
- Returns:
- error code enum
-
getSource
public java.lang.Object getSource()
Description copied from interface:ValidationError
Returns the source of the validation error.- Specified by:
getSource
in interfaceValidationError
- Returns:
- source object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-