| | Class | Description |
| | AssertFalse |
The ActionsScript3 implementation of the
javax.validation.constraints.AssertFalse annotation
validator.
The annotated element must be false.
Accepted arguments are:
- message (optional): used to create the error message (override the
default message).
- groups (optional): a comma separated list of fully qualified interface names that
specifies the processing groups with which the constraint declaration is associated.
- payload (optional): a comma separated list of
String that specifies the
payloads with which the constraint declaration is associated (unlike the Java
implementation, payloads are arbitrary Strings and does not represent
necessarily existing class names).
Supported types are:
null elements are considered valid.
Example:
[AssertFalse(message="{my.custom.message}", groups="path.to.MyGroup1, path.to.MyGroup2")]
public function get property():Boolean {
... |
| | AssertTrue |
The ActionsScript3 implementation of the
javax.validation.constraints.AssertTrue annotation
validator.
The annotated element must be true.
Accepted arguments are:
- message (optional): used to create the error message (override the
default message).
- groups (optional): a comma separated list of fully qualified interface names that
specifies the processing groups with which the constraint declaration is associated.
- payload (optional): a comma separated list of
String that specifies the
payloads with which the constraint declaration is associated (unlike the Java
implementation, payloads are arbitrary Strings and does not represent
necessarily existing class names).
Supported types are:
null elements are considered valid.
Example:
[AssertTrue(message="{my.custom.message}", groups="path.to.MyGroup1, path.to.MyGroup2")]
public function get property():Boolean {
... |
| | DecimalMax |
The ActionsScript3 implementation of the
javax.validation.constraints.DecimalMax annotation
validator.
The annotated element must be a number whose value must be lower or
equal to the specified maximum.
Accepted arguments are:
- message (optional): used to create the error message (override the
default message).
- groups (optional): a comma separated list of fully qualified interface names that
specifies the processing groups with which the constraint declaration is associated.
- payload (optional): a comma separated list of
String that specifies the
payloads with which the constraint declaration is associated (unlike the Java
implementation, payloads are arbitrary Strings and does not represent
necessarily existing class names).
- value (required): the maximum accepted value.
Supported types are:
org.granite.math.BigDecimal
org.granite.math.BigInteger
org.granite.math.Long
Number (with possible rounding issues)
int
uint
String
null elements are considered valid.
Example:
[DecimalMax(message="{my.custom.message}", groups="path.to.MyGroup1, path.to.MyGroup2", value="123.5")]
public function get property():BigDecimal {
... |
| | DecimalMin |
The ActionsScript3 implementation of the
javax.validation.constraints.DecimalMin annotation
validator.
The annotated element must be a number whose value must be higher or
equal to the specified minimum.
Accepted arguments are:
- message (optional): used to create the error message (override the
default message).
- groups (optional): a comma separated list of fully qualified interface names that
specifies the processing groups with which the constraint declaration is associated.
- payload (optional): a comma separated list of
String that specifies the
payloads with which the constraint declaration is associated (unlike the Java
implementation, payloads are arbitrary Strings and does not represent
necessarily existing class names).
- value (required): the minimum accepted value.
Supported types are:
org.granite.math.BigDecimal
org.granite.math.BigInteger
org.granite.math.Long
Number (with possible rounding issues)
int
uint
String
null elements are considered valid.
Example:
[DecimalMin(message="{my.custom.message}", groups="path.to.MyGroup1, path.to.MyGroup2", value="123.5")]
public function get property():BigDecimal {
... |
| | Digits |
The ActionsScript3 implementation of the
javax.validation.constraints.Digits annotation
validator.
The annotated element must be a number whithin accepted range.
Accepted arguments are:
- message (optional): used to create the error message (override the
default message).
- groups (optional): a comma separated list of fully qualified interface names that
specifies the processing groups with which the constraint declaration is associated.
- payload (optional): a comma separated list of
String that specifies the
payloads with which the constraint declaration is associated (unlike the Java
implementation, payloads are arbitrary Strings and does not represent
necessarily existing class names).
- integer (required): the maximum number of integral digits.
- fraction (required): the maximum number of fractional digits.
Supported types are:
org.granite.math.BigDecimal
org.granite.math.BigInteger
org.granite.math.Long
Number (with possible rounding issues)
int
uint
String
null elements are considered valid.
Example:
[Digits(message="{my.custom.message}", groups="path.to.MyGroup1, path.to.MyGroup2", integer="3", fraction="2")]
public function get property():BigDecimal {
... |
| | Future |
The ActionsScript3 implementation of the
javax.validation.constraints.Future annotation
validator.
The annotated element must be a date in the future. |
| | Max |
The ActionsScript3 implementation of the
javax.validation.constraints.Max annotation
validator.
The annotated element must be a number whose value must be lower or
equal to the specified maximum.
Accepted arguments are:
- message (optional): used to create the error message (override the
default message).
- groups (optional): a comma separated list of fully qualified interface names that
specifies the processing groups with which the constraint declaration is associated.
- payload (optional): a comma separated list of
String that specifies the
payloads with which the constraint declaration is associated (unlike the Java
implementation, payloads are arbitrary Strings and does not represent
necessarily existing class names).
- value (required): the maximum accepted value.
Supported types are:
org.granite.math.BigDecimal
org.granite.math.BigInteger
org.granite.math.Long
Number (with possible rounding issues)
int
uint
String
null elements are considered valid.
Example:
[Max(message="{my.custom.message}", groups="path.to.MyGroup1, path.to.MyGroup2", value="123")]
public function get property():int {
... |
| | Min |
The ActionsScript3 implementation of the
javax.validation.constraints.Min annotation
validator.
The annotated element must be a number whose value must be lower or
equal to the specified maximum.
Accepted arguments are:
- message (optional): used to create the error message (override the
default message).
- groups (optional): a comma separated list of fully qualified interface names that
specifies the processing groups with which the constraint declaration is associated.
- payload (optional): a comma separated list of
String that specifies the
payloads with which the constraint declaration is associated (unlike the Java
implementation, payloads are arbitrary Strings and does not represent
necessarily existing class names).
- value (required): the minimum accepted value.
Supported types are:
org.granite.math.BigDecimal
org.granite.math.BigInteger
org.granite.math.Long
Number (with possible rounding issues)
int
uint
String
null elements are considered valid.
Example:
[Min(message="{my.custom.message}", groups="path.to.MyGroup1, path.to.MyGroup2", value="123")]
public function get property():int {
... |
| | NotNull |
The ActionsScript3 implementation of the
javax.validation.constraints.NotNull annotation
validator.
The annotated element must not be null.
Accepted arguments are:
- message (optional): used to create the error message (override the
default message).
- groups (optional): a comma separated list of fully qualified interface names that
specifies the processing groups with which the constraint declaration is associated.
- payload (optional): a comma separated list of
String that specifies the
payloads with which the constraint declaration is associated (unlike the Java
implementation, payloads are arbitrary Strings and does not represent
necessarily existing class names).
Accepts any type.
Example:
[NotNull(message="{my.custom.message}", groups="path.to.MyGroup1, path.to.MyGroup2")]
public function get property():Object {
... |
| | Null |
The ActionsScript3 implementation of the
javax.validation.constraints.Null annotation
validator.
The annotated element must be null.
Accepted arguments are:
- message (optional): used to create the error message (override the
default message).
- groups (optional): a comma separated list of fully qualified interface names that
specifies the processing groups with which the constraint declaration is associated.
- payload (optional): a comma separated list of
String that specifies the
payloads with which the constraint declaration is associated (unlike the Java
implementation, payloads are arbitrary Strings and does not represent
necessarily existing class names).
Accepts any type.
Example:
[Null(message="{my.custom.message}", groups="path.to.MyGroup1, path.to.MyGroup2")]
public function get property():Object {
... |
| | Past |
The ActionsScript3 implementation of the
javax.validation.constraints.Past annotation
validator.
The annotated element must be a date in the past. |
| | Pattern |
The ActionsScript3 implementation of the
javax.validation.constraints.Pattern annotation
validator.
The annotated String must match the supplied regular expression.
Accepted arguments are:
- message (optional): used to create the error message (override the
default message).
- groups (optional): a comma separated list of fully qualified interface names that
specifies the processing groups with which the constraint declaration is associated.
- payload (optional): a comma separated list of
String that specifies the
payloads with which the constraint declaration is associated (unlike the Java
implementation, payloads are arbitrary Strings and does not represent
necessarily existing class names).
- regexp (required): the regular expression to match.
- flags (optional): a comma separated flag list considered when resolving the
regular expression.
Supported types are:
null elements are considered valid.
Example:
[Pattern(message="{my.custom.message}", groups="path.to.MyGroup1, path.to.MyGroup2", regexp="[a-z]+", flags="CASE_INSENSITIVE, DOTALL")]
public function get property():String {
... |
| | Size |
The ActionsScript3 implementation of the
javax.validation.constraints.Size annotation
validator.
The annotated element size must be between the specified boundaries
(included).
Accepted arguments are:
- message (optional): used to create the error message (override the
default message).
- groups (optional): a comma separated list of fully qualified interface names that
specifies the processing groups with which the constraint declaration is associated.
- payload (optional): a comma separated list of
String that specifies the
payloads with which the constraint declaration is associated (unlike the Java
implementation, payloads are arbitrary Strings and does not represent
necessarily existing class names).
- min (optional): the minimum size (default is
0).
- max (optional): the maximum size (default is
int.MAX_VALUE.
Supported types are:
String
Array
Vector
Dictionary
IList implementators (such as ArrayCollection)
- any other class instance that defines a length property
(such as
org.granite.collection.IMap implementators)
null elements are considered valid.
Example:
[Size(message="{my.custom.message}", groups="path.to.MyGroup1, path.to.MyGroup2", min="2", max="10")]
public function get property():String {
... |