net.nemerosa.ontrack.model.form.AbstractText Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-model Show documentation
Show all versions of ontrack-model Show documentation
Ontrack module: ontrack-model
package net.nemerosa.ontrack.model.form;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.Validate;
@EqualsAndHashCode(callSuper = false)
@Data
public abstract class AbstractText> extends AbstractField {
private int length = 300;
protected AbstractText(String type, String name) {
super(type, name);
}
public F length(int value) {
Validate.isTrue(value >= 0);
this.length = value;
//noinspection unchecked
return (F) this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy