io.takari.bpm.model.form.DefaultFormFields Maven / Gradle / Ivy
package io.takari.bpm.model.form;
import io.takari.bpm.model.form.FormField.Option;
/**
* Standard form field types and options.
*/
public final class DefaultFormFields {
public static final class StringField {
public static final String TYPE = "string";
public static final Option PATTERN = FormField.registerOption(TYPE, "pattern", String.class);
}
public static final class IntegerField {
public static final String TYPE = "int";
public static final Option MIN = FormField.registerOption(TYPE, "min", Long.class);
public static final Option MAX = FormField.registerOption(TYPE, "max", Long.class);
}
public static final class DecimalField {
public static final String TYPE = "decimal";
public static final Option MIN = FormField.registerOption(TYPE, "min", Double.class);
public static final Option MAX = FormField.registerOption(TYPE, "max", Double.class);
}
public static final class BooleanField {
public static final String TYPE = "boolean";
}
private DefaultFormFields() {
}
}