Packageorg.granite.tide.validators
Classpublic class ServerConstraintViolation
InheritanceServerConstraintViolation Inheritance ConstraintViolation

Represents a constraint violation received from the server.



Public Properties
 PropertyDefined by
  constraint : IConstraint
[read-only] The IConstraint that failed.
ServerConstraintViolation
  invalidValue : *
[read-only] The value of the invalid property.
ServerConstraintViolation
  leafBean : *
[read-only] The leaf bean type of the invalid property.
ServerConstraintViolation
  message : String
[read-only] The error message, with all parameters resolved by the current message interpolator.
ServerConstraintViolation
  messageKey : String
[read-only] The raw error message key.
ServerConstraintViolation
  property : *
[read-only] The property name (fields), index (collections) or key (map) of the invalid property.
ServerConstraintViolation
  propertyPath : IPath
[read-only] The path from the root bean to the invalid property.
ServerConstraintViolation
  rootBean : *
[read-only] The root bean of the invalid property.
ServerConstraintViolation
  rootBeanType : *
[read-only] The root bean type of the invalid property.
ServerConstraintViolation
Public Methods
 MethodDefined by
  
ServerConstraintViolation(invalidValue:InvalidValue, rootBean:Object, bean:Object)
Constructs a new ServerConstraintViolation instance.
ServerConstraintViolation
  
toString():String
Returns the message property of this ConstraintViolation instance.
ServerConstraintViolation
Property detail
constraintproperty
constraint:IConstraint  [read-only]

The IConstraint that failed.

Implementation
    public function get constraint():IConstraint
invalidValueproperty 
invalidValue:*  [read-only]

The value of the invalid property.

Implementation
    public function get invalidValue():*
leafBeanproperty 
leafBean:*  [read-only]

The leaf bean type of the invalid property.

Implementation
    public function get leafBean():*
messageproperty 
message:String  [read-only]

The error message, with all parameters resolved by the current message interpolator.

Implementation
    public function get message():String

See also

ValidatorFactory.messageInterpolator
DefaultMessageInterpolator
IMessageInterpolator
messageKeyproperty 
messageKey:String  [read-only]

The raw error message key.

Implementation
    public function get messageKey():String
propertyproperty 
property:*  [read-only]

The property name (fields), index (collections) or key (map) of the invalid property.

Implementation
    public function get property():*
propertyPathproperty 
propertyPath:IPath  [read-only]

The path from the root bean to the invalid property.

Implementation
    public function get propertyPath():IPath
rootBeanproperty 
rootBean:*  [read-only]

The root bean of the invalid property.

Implementation
    public function get rootBean():*
rootBeanTypeproperty 
rootBeanType:*  [read-only]

The root bean type of the invalid property.

Implementation
    public function get rootBeanType():*
Constructor detail
ServerConstraintViolation()constructor
public function ServerConstraintViolation(invalidValue:InvalidValue, rootBean:Object, bean:Object)

Constructs a new ServerConstraintViolation instance.

Parameters
invalidValue:InvalidValue — serialized server-side ConstraintViolation
 
rootBean:Object — root bean
 
bean:Object — leaf bean
Method detail
toString()method
public override function toString():String

Returns the message property of this ConstraintViolation instance.

Returns
String — the message property of this ConstraintViolation instance.

See also