org.umlg.javageneration.validation.MaxInteger Maven / Gradle / Ivy
package org.umlg.javageneration.validation;
import org.umlg.java.metamodel.OJPathName;
public class MaxInteger implements Validation {
private Number max;
public Number getMax() {
return max;
}
public MaxInteger(Number max) {
super();
this.max = max;
}
@Override
public String toStringForMethod() {
return getMax().toString();
}
@Override
public String toNewRuntimeTumlValidation() {
return "new MaxInteger(" + max.toString() + ")";
}
@Override
public OJPathName getPathName() {
return new OJPathName("org.umlg.runtime.validation.MaxInteger");
}
@Override
public String toJson() {
return "\\\"max\\\": " + String.valueOf(max);
}
}