Package eu.europa.ec.taxud.validation
Class ValidationError
java.lang.Object
eu.europa.ec.taxud.validation.ValidationError
ValidationError contains information about the error-
Constructor Summary
ConstructorsConstructorDescriptionValidationError(int code, String details) Error constructor for File-error typeValidationError(int code, String details, boolean isFileError) Error constructor for File-error type with isFileError optionValidationError(int code, String docRedId, String details, String path) General constructor.ValidationError(int code, String docRefId, String details, Element element) General constructor.ValidationError(int code, String details, Element element) Error constructor for recordError type -
Method Summary
-
Constructor Details
-
ValidationError
Error constructor for File-error type- Parameters:
code- the code of the errordetails- the detail message for the error
-
ValidationError
Error constructor for File-error type with isFileError option- Parameters:
code- the code of the errordetails- the detail message for the errorisFileError- true if the error is the file itself
-
ValidationError
Error constructor for recordError type- Parameters:
code- the code of the errordetails- the detail message for the errorelement- the element responsible for the error
-
ValidationError
General constructor.- Parameters:
code- the code of the errordocRefId- the docRefId of the group of elements responsible for the errordetails- the detail message of the errorelement- the element responsible for the error
-
ValidationError
General constructor. Also used for recordError type- Parameters:
code- the code of the errordocRedId- the docRefId of the group of elements responsible for the errordetails- the detail message of the errorpath- the xPath to the field that has the error
-
-
Method Details
-
getCode
public int getCode()Gets code.- Returns:
- the code of the error
-
getDetails
Gets details.- Returns:
- The details about this error code
-
getDocRefId
Gets doc ref id.- Returns:
- the documentRefId of the element that has this error
-
getPath
Gets path.- Returns:
- the xpath of the element that has this error
-
isFileError
public boolean isFileError()Is file error boolean.- Returns:
- true if this error is classified as a file error
-