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 booleanequals(java.lang.Object obj)ValidationError.ErrorCodegetErrorCode()Returns the error code of the validation error.java.lang.ObjectgetSource()Returns the source of the validation error.inthashCode()java.lang.StringtoString()-
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:ValidationErrorReturns the error code of the validation error.- Specified by:
getErrorCodein interfaceValidationError- Returns:
- error code enum
-
getSource
public java.lang.Object getSource()
Description copied from interface:ValidationErrorReturns the source of the validation error.- Specified by:
getSourcein interfaceValidationError- Returns:
- source object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-