Skip to content

fabtesta/pcml2java-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pcml2java-validator

Repo related to https://github.com/fabtesta/pcml2java-maven-plugin.

Validators for IBM® .PCML-Files (Program Call Markup Language) pcml2java plugin generated classes.

Plugin is available in jitpack repository.
Latest build
Travis status Build Status

Features

From version 1.1.0 supports ArrayList of String each elements size validation.

Basic Usage

You could use this library indipendently from parent project pcml2java-maven-plugin.

  1. Add jitpack repository.
  2. Add it as a dependency in your pom.
<repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
</repository>

....

<dependency>
    <groupId>com.github.fabtesta</groupId>
    <artifactId>pcml2java-validator</artifactId>
    <version>1.1.0</version>
</dependency>

Example

Annotated an ArrayList of String to validate the length of every single element.

@Size(max = 10) //THE ARRAY CAN CONTAIN MAX 10 ELEMENTS
@ArrayOfStringsElementSize(singleElementSize =  2) //EVERY STRING IN THE ARRAY MUST BE LTE 2 CHARS LONG
private ArrayList<String> listOfStrings;

About

pcml2java-validator

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages