read constraints into an object instead of some map structure and change form init of validation editor

This commit is contained in:
2016-09-05 22:49:49 +02:00
committed by Andreas Billmann
parent 04a54da798
commit 5694273c51
5 changed files with 171 additions and 77 deletions

View File

@@ -2,9 +2,6 @@ package ninja.javafx.smartcsv.validation;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import java.util.Map;
/**
* @author abi
*/
@@ -25,7 +22,9 @@ public class FieldConfiguration {
private String description;
private String format;
private Object missingValue;
private Map<String, Object> constraints;
private ConstraintsConfiguration constraints;
private String groovy;
public String getName() {
return name;
@@ -75,11 +74,20 @@ public class FieldConfiguration {
this.missingValue = missingValue;
}
public Map<String, Object> getConstraints() {
public ConstraintsConfiguration getConstraints() {
return constraints;
}
public void setConstraints(Map<String, Object> constraints) {
public void setConstraints(ConstraintsConfiguration constraints) {
this.constraints = constraints;
}
public String getGroovy() {
return groovy;
}
public void setGroovy(String groovy) {
this.groovy = groovy;
}
}