This project provides domain specific language support for the veraPDF PDF/A and PDF/UA validation model. The DSL is developed with Xtext including spell checking, word completion, syntax colouring and generation of Java interfaces from the model.
In order to make use of the DSL support you'll require
- Java 11 or 17, which can be downloaded from Oracle, or for Linux users OpenJDK.
- The Eclipse IDE with the Xtext plug-in. If you haven't installed Eclipse then we recommend downloading the Xtext Eclipse distribution.
To get veraPDF-model support in Eclipse :
-
Download the veraPDF-model-syntax repository, either cloning via Git
git clone https://github.com/veraPDF/veraPDF-model-syntax
or downloading the latest zip archive from GitHub. -
Copy the plugins from
veraPDF-model-syntax/eclipse_plugins
to{eclipse_directory}/dropins
. See Equinox/p2/Getting Started for more details. -
Restart Eclipse.
Your Eclipse installation should now support {formal_syntax_name} with syntax checking and colouring, auto-completion, and generation of Java interfaces from the model classes (should have .mdl
extension).
To begin working with the veraPDF model:
-
Download the veraPDF-model repository, either cloning via Git
git clone https://github.com/veraPDF/veraPDF-model
or downloading the latest zip archive from GitHub. -
Launch Eclipse and import the model into your Eclipse workspace: File -> Import... -> General -> Existing Projects into Workspace.
The model classes are placed in src/main/java
.