Skip to content

Commit

Permalink
refactor(model): remove deprecated getters/setters (refs #351)
Browse files Browse the repository at this point in the history
  • Loading branch information
mborne committed Aug 8, 2024
1 parent 5bbfd1a commit f0fa132
Showing 1 changed file with 0 additions and 83 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> getListOfValues() {
return constraints.getEnumValues();
}

@Deprecated
public void setListOfValues(List<String> 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() {
Expand Down

0 comments on commit f0fa132

Please sign in to comment.