Class fever.events.ValidationResultEvent

Description

Event structure for validations process result.

Take a look at ArgumentsValidator example.

See Also

Field Index

field, INVALID, message, VALID

Method Index

new ValidationResultEvent()
clone(), isValid()

Inherited from AbstractEvent

Constructor Detail

ValidationResultEvent

public function ValidationResultEvent(type:EventType, source)

Constructor.

Field Detail

INVALID

static public INVALID:EventType
Dispatched when test is not valid.

VALID

static public VALID:EventType
Dispatched when test is valid.

field

public field:String
The name of the field that failed validation and triggered the event.

message

public message:String
Contains error message.

Method Detail

isValid

public function isValid():Boolean

Returns true if result is ok.

clone

public function clone():ValidationResultEvent

Returns clone instance.

Specified By

clone() in fever.core.Cloneable

Overrides

clone() in fever.events.AbstractEvent