| Package | org.granite.validation |
| Class | public class ConstraintViolation |
| Subclasses | ServerConstraintViolation |
| Property | Defined by | ||
|---|---|---|---|
| constraint : IConstraint
[read-only]
The
IConstraint that failed. | ConstraintViolation | ||
| invalidValue : * [read-only]
The value of the invalid property.
| ConstraintViolation | ||
| leafBean : * [read-only]
The leaf bean type of the invalid property.
| ConstraintViolation | ||
| message : String [read-only]
The error message, with all parameters resolved by the current message
interpolator.
| ConstraintViolation | ||
| messageKey : String [read-only]
The raw error message key.
| ConstraintViolation | ||
| property : * [read-only]
The property name (fields), index (collections) or key (map)
of the invalid property.
| ConstraintViolation | ||
| propertyPath : IPath
[read-only]
The path from the root bean to the invalid property.
| ConstraintViolation | ||
| rootBean : * [read-only]
The root bean of the invalid property.
| ConstraintViolation | ||
| rootBeanType : * [read-only]
The root bean type of the invalid property.
| ConstraintViolation | ||
| Method | Defined by | ||
|---|---|---|---|
|
ConstraintViolation(messageKey:String, constraint:IConstraint, rootBean:IPath, rootBeanType:*, propertyPath:*, leafBean:*, invalidValue:*)
Constructs a new
ConstraintViolation instance. | ConstraintViolation | ||
|
toString():String
Returns the message property of this
ConstraintViolation
instance. | ConstraintViolation | ||
| constraint | property |
constraint:IConstraint [read-only]
The IConstraint that failed.
public function get constraint():IConstraint
| invalidValue | property |
invalidValue:* [read-only]The value of the invalid property.
Implementation public function get invalidValue():*
| leafBean | property |
leafBean:* [read-only]The leaf bean type of the invalid property.
Implementation public function get leafBean():*
| message | property |
message:String [read-only]The error message, with all parameters resolved by the current message interpolator.
Implementation public function get message():String
See also
| messageKey | property |
messageKey:String [read-only]The raw error message key.
Implementation public function get messageKey():String
| property | property |
property:* [read-only]The property name (fields), index (collections) or key (map) of the invalid property.
Implementation public function get property():*
| propertyPath | property |
propertyPath:IPath [read-only]The path from the root bean to the invalid property.
Implementation public function get propertyPath():IPath
| rootBean | property |
rootBean:* [read-only]The root bean of the invalid property.
Implementation public function get rootBean():*
| rootBeanType | property |
rootBeanType:* [read-only]The root bean type of the invalid property.
Implementation public function get rootBeanType():*
| ConstraintViolation | () | constructor |
public function ConstraintViolation(messageKey:String, constraint:IConstraint, rootBean:IPath, rootBeanType:*, propertyPath:*, leafBean:*, invalidValue:*)
Constructs a new ConstraintViolation instance.
messageKey:String — the error message key to be used for message interpolation.
|
|
constraint:IConstraint — the IConstraint that failed.
|
|
rootBean:IPath — the root bean of the invalid property.
|
|
rootBeanType:* — the root bean type of the invalid property.
|
|
propertyPath:* — the path from the root bean to the invalid property.
|
|
leafBean:* — the leaf bean of the invalid property.
|
|
invalidValue:* — the value of the invalid property.
|
See also
| toString | () | method |
public function toString():String
Returns the message property of this ConstraintViolation
instance.
String — the message property of this ConstraintViolation
instance.
|
See also