Skip to content

alnimin/vefa-validator

 
 

Repository files navigation

VEFA Validator 2.0

Current version: 2.0.1

Features

  • Very easy to use.
  • Much faster than the old validator.
  • Supports rendering documents.
  • Very low footprint in your code.
  • Pooling of resources.
  • Supports different lifecycles of validation artifacts.
  • Configurable to fit multiple sizes.

Getting started

Include dependency in your pom.xml:

<dependency>
	<groupId>no.difi.vefa</groupId>
	<artifactId>validator-core</artifactId>
	<version>2.0.1</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.

Validation artifacts

Artifacts may be found here:

Difi does not guarantee the availability of the repositories containing validation artifacts. Local copy is always recommended for production environments.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 94.8%
  • FreeMarker 5.2%