From f0fa132ee21d20f228163ce4d0e00fd4401611b0 Mon Sep 17 00:00:00 2001 From: MBorne Date: Thu, 8 Aug 2024 19:17:51 +0200 Subject: [PATCH] refactor(model): remove deprecated getters/setters (refs #351) --- .../fr/ign/validator/model/AttributeType.java | 83 ------------------- 1 file changed, 83 deletions(-) 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() {