All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.umlg.javageneration.validation.MaxDouble Maven / Gradle / Ivy

There is a newer version: 2.0.15
Show newest version
package org.umlg.javageneration.validation;

import org.umlg.java.metamodel.OJPathName;


public class MaxDouble implements Validation {

	private Number max;

	public Number getMax() {
		return max;
	}

	public MaxDouble(Number max) {
		super();
		this.max = max;
	}

	@Override
	public String toStringForMethod() {
		return getMax().toString() + "D";
	}

	@Override
	public String toNewRuntimeTumlValidation() {
		return "new MaxDouble(" + max.toString() + "D)";
	}

	@Override
	public OJPathName getPathName() {
		return new OJPathName("org.umlg.runtime.validation.MaxDouble");
	}

	@Override
	public String toJson() {
		return "\\\"max\\\": " + String.valueOf(max);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy