-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
140159d
commit 85d1a39
Showing
24 changed files
with
720 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ | |
import org.verapdf.pdfa.validation.validators.ValidatorConfig; | ||
import org.verapdf.pdfa.validation.validators.ValidatorFactory; | ||
|
||
import java.util.List; | ||
/** | ||
* @author <a href="mailto:[email protected]">Carl Wilson</a> | ||
* <a href="https://github.com/carlwilson">carlwilson AT github</a> | ||
|
@@ -57,6 +58,16 @@ public PDFAValidator createValidator(ValidatorConfig config, PDFAFlavour flavour | |
config.isRecordPasses(), config.showErrorMessages(), config.getShowProgress()); | ||
} | ||
|
||
@Override | ||
public PDFAValidator createValidator(ValidatorConfig config, List<PDFAFlavour> flavours) { | ||
if (config.getMaxFails() > 0) { | ||
return createFailFastValidator(flavours, config.getMaxFails(), config.getMaxNumberOfDisplayedFailedChecks(), | ||
config.isRecordPasses(), config.showErrorMessages(), config.getShowProgress()); | ||
} | ||
return createValidator(flavours, config.getMaxNumberOfDisplayedFailedChecks(), | ||
config.isRecordPasses(), config.showErrorMessages(), config.getShowProgress()); | ||
} | ||
|
||
@Override | ||
public PDFAValidator createValidator(ValidatorConfig config, ValidationProfile profile) { | ||
if (config.getMaxFails() > 0) { | ||
|
@@ -67,6 +78,11 @@ public PDFAValidator createValidator(ValidatorConfig config, ValidationProfile p | |
config.isRecordPasses(), config.showErrorMessages(), config.getShowProgress()); | ||
} | ||
|
||
@Override | ||
public PDFAValidator createValidator(List<PDFAFlavour> flavours) { | ||
return ValidatorFactory.createValidator(flavours); | ||
} | ||
|
||
@Override | ||
public PDFAValidator createValidator(PDFAFlavour flavour, boolean logSuccess) { | ||
return ValidatorFactory.createValidator(flavour, logSuccess); | ||
|
@@ -84,6 +100,13 @@ public PDFAValidator createValidator(PDFAFlavour flavour, int maxNumberOfDisplay | |
showProgress); | ||
} | ||
|
||
@Override | ||
public PDFAValidator createValidator(List<PDFAFlavour> flavours, int maxNumberOfDisplayedFailedChecks, | ||
boolean logSuccess, boolean showErrorMessages, boolean showProgress) { | ||
return ValidatorFactory.createValidatorByFlavours(flavours, maxNumberOfDisplayedFailedChecks, logSuccess, showErrorMessages, | ||
showProgress); | ||
} | ||
|
||
@Override | ||
public PDFAValidator createValidator(ValidationProfile profile, int maxNumberOfDisplayedFailedChecks, | ||
boolean logSuccess, boolean showErrorMessages, boolean showProgress) { | ||
|
@@ -98,6 +121,13 @@ public PDFAValidator createFailFastValidator(PDFAFlavour flavour, int maxFailure | |
showErrorMessages, showProgress); | ||
} | ||
|
||
@Override | ||
public PDFAValidator createFailFastValidator(List<PDFAFlavour> flavours, int maxFailures, int maxNumberOfDisplayedFailedChecks, | ||
boolean logSuccess, boolean showErrorMessages, boolean showProgress) { | ||
return ValidatorFactory.createValidator(flavours, logSuccess, maxFailures, maxNumberOfDisplayedFailedChecks, | ||
showErrorMessages, showProgress); | ||
} | ||
|
||
@Override | ||
public PDFAValidator createFailFastValidator(ValidationProfile profile, int maxFailures, int maxNumberOfDisplayedFailedChecks, | ||
boolean logSuccess, boolean showErrorMessages, boolean showProgress) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.