Include dependency in your pom.xml:
<dependency>
<groupId>no.difi.vefa</groupId>
<artifactId>validator-core</artifactId>
<version>2.0.2</version>
</dependency>
Start validating business documents:
// Create a new validator using validation artifacts from Difi.
Validator validator = ValidatorBuilder.newValidator().build();
// Validate business document.
Validation validation = validator.validate(Paths.get("/path/to/document.xml"));
// Print result of validation.
System.out.println(validation.getReport().getFlag());
The validator is expensive to create, one instance should be enough.
Content type
Image
Digest
Size
52.4 MB
Last updated
over 6 years ago
docker pull difi/vefa-validator