public interface Validators
Modifier and Type | Interface and Description |
---|---|
static class |
Validators.AlphaNumericValidator
A validator that checkes to make sure the value is a string and
trims, the value, and makes sure any remaining characters are
alpha-numeric.
|
static class |
Validators.BooleanValidator
validator to ensure that a value is a valid boolean
|
static class |
Validators.CollectionValidator<V,C extends java.util.Collection<? extends V>> |
static class |
Validators.DateTimeAfterValidator |
static class |
Validators.DateTimeToLongValidator
A validator that returns the date time as a Long.
|
static class |
Validators.DateTimeValidator
ensures that the date/time is valid, if present.
|
static class |
Validators.DayOfMonthNumberStringValidator
A validator for two-digit day of month number: "01" through "31".
|
static class |
Validators.DoubleValidator
Validator to ensure that a value is a valid Double.
|
static class |
Validators.EmailValidator
A validator that checkes to make sure the value is a string and
trims the value (if the string is non-null).
|
static class |
Validators.FloatValidator
validator to ensure that a value is a valid float.
|
static class |
Validators.IdValidator
A validator that checkes to make sure the id value is contains
alphanumeric characters, "-", and "_".
|
static class |
Validators.IntegerValidator
validator to ensure that a value is a valid, positive integer
|
static class |
Validators.LocaleStringValidator
A validator to validate a locale string.
|
static class |
Validators.LongValidator
validator to ensure that a value is a valid long
|
static class |
Validators.MapValidator<V>
Validate a map whose keys are strings and values are the
the specified class.
|
static class |
Validators.MonthNumberStringValidator
A validator for validating a two digit month number, "01" through
"12".
|
static class |
Validators.NDigitStringValidator
A validator for Ndigit strings.
|
static class |
Validators.NonNullValidator<T>
validator to ensure that value is not null
|
static class |
Validators.NullObjectIfNulledValidator
A simple validator that wraps another validator.
|
static class |
Validators.NullObjectIfNullValidator
A simple validator that wraps another validator.
|
static class |
Validators.NumberValidator
validator to ensure that a value is a Number
|
static class |
Validators.NumericValidator
A validator that checks the value of this property is a valid number.
|
static class |
Validators.OptionValidator<T>
A validator that validates that the specific option is
one of the valid options.
|
static class |
Validators.RepositoryItemIdValidator
Validator to ensure that a given item exists.
|
static class |
Validators.RequiredOption
Enumeration for when required
|
static class |
Validators.RequiredValidator<T>
Adds optionally requiring a non-null value (required defaults to
true).
|
static class |
Validators.RequiredValueValidator<T>
A validator that requires the value to be a single, particularly
value (compared with equals).
|
static class |
Validators.ShortValidator
validator to ensure that a value is a valid, positive integer
|
static class |
Validators.StringTrimmingValidator
A validator that checkes to make sure the value is a string and
trims the value (if the string is non-null).
|
static class |
Validators.StringValidator
A validator that checkes to make sure the value is a string and
trims the value (if the string is non-null).
|
static class |
Validators.TimestampValidator
ensures that the date/time is valid, if present.
|
static class |
Validators.UrlValidator
Validator to ensure that a value is a valid URL.
|
static class |
Validators.ValidatorImpl<T>
validator impl that can ensure a given value is
a specific number type
|
static class |
Validators.ValidatorVisitor
A utility class for visiting a validator and any of its wrapped
validators (via the ValidatorWrapper interface) and child validators
(via the ParentValidator interface) .
|
static interface |
Validators.ValidatorWrapper<T>
An interface that allows one to drill into validators that wrap
a single validator.
|
static class |
Validators.WrapNonPrimitivesDynamicBeanMap
A DynamicBeanMap that will recursively wrap non-privitives (so they
look like maps).
|
static class |
Validators.WritableOption
Enumeration for when writable.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
COLLECTION_EVERY_KEY
Key used to represent every key in a collection validator map.
|
static Validator<java.util.Collection<?>> |
COLLECTION_VALIDATOR
A validator that requires a non-null value to be an instance of a
collection (or subclass).
|
static Validators.IntegerValidator |
INTEGER_REQUIRED_VALIDATOR
A validator that requires the the property being validated be a
non-null integer.
|
static Validators.IntegerValidator |
INTEGER_VALIDATOR
A validator that requires the the property being validated be null or
an integer.
|
static Validators.RequiredValidator<atg.json.JSONArray> |
JSON_ARRAY_REQUIRED_VALIDATOR
A validator the checkes for a required JSONArray.
|
static Validators.RequiredValidator<atg.json.JSONObject> |
JSON_OBJECT_REQUIRED_VALIDATOR
A validator that requires the the property being validated be a
JSON_OBJECT.
|
static Validators.LongValidator |
LONG_VALIDATOR
A validator that requires the the property being validated be null or
an long.
|
static java.lang.String |
MAP_EVERY_KEY_KEY
Key used to represent every key in a map validator map.
|
static java.lang.String |
MAP_EVERY_VALUE_KEY
Key used to represent every value in a map validator map.
|
static Validators.MapValidator<?> |
MAP_VALIDATOR |
static java.lang.String[] |
MONTH_NUMBER_STRINGS
Month number strings.
|
static Validator<java.lang.Integer> |
NON_NEGATIVE_INTEGER_VALIDATOR
A validator that requires the the property being validator be
non-empty String.
|
static Validators.LongValidator |
NON_NEGATIVE_LONG_VALIDATOR
A validator that requires the the property being validated be null or
an positive long.
|
static Validator<java.util.Collection<?>> |
REQUIRED_COLLECTION_VALIDATOR
A validator that requires a non-null collection (or-subclass) instance.
|
static Validators.RequiredValidator<java.lang.Object> |
REQUIRED_VALIDATOR
A validator that simply requires a non-null value.
|
static java.util.Set<java.lang.Class<?>> |
sDynamicBeanMapClassesToNotWrap |
static Validators.StringTrimmingValidator |
STRING_TRIMMING_REQUIRED_VALIDATOR
A validator that requires the the property being validated be a
non-empty String.
|
static Validators.RequiredValidator<java.lang.Object> |
VALIDATOR
Exists just to expose utility methods.
|
static java.lang.Double |
ZERO_DOUBLE
A zero value for an Double.
|
static java.lang.Integer |
ZERO_INTEGER
A zero value for an Integer.
|
static final java.lang.String CLASS_VERSION
static final java.lang.String COLLECTION_EVERY_KEY
static final java.lang.String MAP_EVERY_KEY_KEY
static final java.lang.String MAP_EVERY_VALUE_KEY
static final java.lang.Integer ZERO_INTEGER
static final java.lang.Double ZERO_DOUBLE
static final Validators.RequiredValidator<atg.json.JSONArray> JSON_ARRAY_REQUIRED_VALIDATOR
static final Validators.RequiredValidator<java.lang.Object> VALIDATOR
static final Validators.RequiredValidator<java.lang.Object> REQUIRED_VALIDATOR
static final Validators.RequiredValidator<atg.json.JSONObject> JSON_OBJECT_REQUIRED_VALIDATOR
static final Validators.StringTrimmingValidator STRING_TRIMMING_REQUIRED_VALIDATOR
static final Validators.IntegerValidator INTEGER_REQUIRED_VALIDATOR
static final Validators.IntegerValidator INTEGER_VALIDATOR
static final Validators.LongValidator LONG_VALIDATOR
static final Validators.LongValidator NON_NEGATIVE_LONG_VALIDATOR
static final Validator<java.lang.Integer> NON_NEGATIVE_INTEGER_VALIDATOR
static final Validator<java.util.Collection<?>> REQUIRED_COLLECTION_VALIDATOR
static final Validator<java.util.Collection<?>> COLLECTION_VALIDATOR
static final Validators.MapValidator<?> MAP_VALIDATOR
static final java.util.Set<java.lang.Class<?>> sDynamicBeanMapClassesToNotWrap
static final java.lang.String[] MONTH_NUMBER_STRINGS