@@ -0,0 +1,1951 @@
+package com.github.aureliano.edocs.annotation.validation.model;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport com.github.aureliano.edocs.annotation.validation.AssertFalse;%0Aimport com.github.aureliano.edocs.annotation.validation.AssertTrue;%0Aimport com.github.aureliano.edocs.annotation.validation.Decimal;%0Aimport com.github.aureliano.edocs.annotation.validation.Max;%0Aimport com.github.aureliano.edocs.annotation.validation.Min;%0Aimport com.github.aureliano.edocs.annotation.validation.NotEmpty;%0Aimport com.github.aureliano.edocs.annotation.validation.NotNull;%0Aimport com.github.aureliano.edocs.annotation.validation.Pattern;%0Aimport com.github.aureliano.edocs.annotation.validation.Size;%0A%0Apublic class AnnotationModel %7B%0A%0A%09private String configurationId;%0A%09private Double myDoubleField;%0A%09private Boolean ok;%0A%09private Boolean notOk;%0A%09private List%3CObject%3E data;%0A%09%0A%09public AnnotationModel() %7B%0A%09%09this.data = new ArrayList%3C%3E();%0A%09%7D%0A%0A%09@NotNull%0A%09@NotEmpty%0A%09@Min(value = 3)%0A%09@Max(value = 5)%0A%09@Size(min = 3, max = 5)%0A%09@Pattern(value = %22%5B%5C%5Cd%5C%5Cw%5D%7B3,5%7D%22)%0A%09public String getConfigurationId() %7B%0A%09%09return this.configurationId;%0A%09%7D%0A%0A%09public AnnotationModel withConfigurationId(String id) %7B%0A%09%09this.configurationId = id;%0A%09%09return this;%0A%09%7D%0A%0A%09@AssertTrue%0A%09public Boolean isOk() %7B%0A%09%09return ok;%0A%09%7D%0A%09%0A%09public AnnotationModel withOk(Boolean value) %7B%0A%09%09this.ok = value;%0A%09%09return this;%0A%09%7D%0A%0A%09@AssertFalse%0A%09public Boolean isNotOk() %7B%0A%09%09return notOk;%0A%09%7D%0A%09%0A%09public AnnotationModel withNotOk(Boolean value) %7B%0A%09%09this.notOk = value;%0A%09%09return this;%0A%09%7D%0A%09%0A%09@Decimal(min = 4.5, max = 9.2)%0A%09public Double getMyDoubleField() %7B%0A%09%09return myDoubleField;%0A%09%7D%0A%09%0A%09public AnnotationModel withMyDoubleField(Double myDoubleField) %7B%0A%09%09this.myDoubleField = myDoubleField;%0A%09%09return this;%0A%09%7D%0A%0A%09@Min(value = 1)%0A%09@Max(value = 1)%0A%09@Size(min = 1, max = 1)%0A%09public List%3CObject%3E getData() %7B%0A%09%09return data;%0A%09%7D%0A%0A%09public AnnotationModel withData(List%3CObject%3E data) %7B%0A%09%09this.data = data;%0A%09%09return this;%0A%09%7D%0A%7D

Create annotation model.