diff --git a/validator-core/src/main/java/fr/ign/validator/model/AttributeType.java b/validator-core/src/main/java/fr/ign/validator/model/AttributeType.java index 6510000c..30d037ee 100644 --- a/validator-core/src/main/java/fr/ign/validator/model/AttributeType.java +++ b/validator-core/src/main/java/fr/ign/validator/model/AttributeType.java @@ -121,89 +121,6 @@ public void setConstraints(AttributeConstraints constraints) { this.constraints = constraints; } - @Deprecated - public boolean hasRegexp() { - return null != constraints.getPattern(); - } - - @Deprecated - @JsonIgnore - public String getRegexp() { - return constraints.getPattern(); - } - - @Deprecated - public void setRegexp(String regexp) { - this.constraints.setPattern(regexp); - } - - @Deprecated - @JsonIgnore - public Integer getSize() { - return constraints.getMaxLength(); - } - - @Deprecated - public void setSize(Integer size) { - this.constraints.setMaxLength(size); - } - - @Deprecated - @JsonIgnore - public boolean isNullable() { - return !constraints.isRequired(); - } - - @Deprecated - public void setNullable(boolean nullable) { - this.constraints.setRequired(!nullable); - } - - @Deprecated - @JsonIgnore - public boolean hasListOfValues() { - return constraints.getEnumValues() != null; - } - - @Deprecated - @JsonIgnore - public List getListOfValues() { - return constraints.getEnumValues(); - } - - @Deprecated - public void setListOfValues(List listOfValues) { - this.constraints.getEnumValues(listOfValues); - } - - @Deprecated - @JsonIgnore - public boolean isIdentifier() { - return constraints.isUnique(); - } - - @Deprecated - public void setIdentifier(boolean identifier) { - this.constraints.setUnique(identifier); - } - - @Deprecated - @JsonIgnore - public String getReference() { - return this.constraints.getReference(); - } - - @Deprecated - public void setReference(String reference) { - this.constraints.setReference(reference); - } - - @Deprecated - @JsonIgnore - public boolean isReference() { - return this.constraints.getReference() != null; - } - @Deprecated @JsonIgnore public String getTableReference() {