Class AbstractValidator
- java.lang.Object
-
- de.gwdg.metadataqa.marc.analysis.validator.AbstractValidator
-
- Direct Known Subclasses:
ControlFieldValidator,ControlValueValidator,DataFieldValidator,LeaderValidator,SubfieldValidator,Validator
public abstract class AbstractValidator extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractValidator(ValidatorConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<ValidationError>filterErrors(List<ValidationError> errors)Remove ignorable errors from the list of errorsList<ValidationError>getValidationErrors()protected booleanisIgnorableType(ValidationErrorType type)
-
-
-
Constructor Detail
-
AbstractValidator
protected AbstractValidator(ValidatorConfiguration configuration)
-
-
Method Detail
-
filterErrors
protected List<ValidationError> filterErrors(List<ValidationError> errors)
Remove ignorable errors from the list of errors- Parameters:
errors- The list of error objects- Returns:
-
getValidationErrors
public List<ValidationError> getValidationErrors()
-
isIgnorableType
protected boolean isIgnorableType(ValidationErrorType type)
-
-