Packagesystem.data
Interfacepublic interface Validator
Implementors TypedArray, TypedCollection, TypedMap, TypedQueue, TypedStack

Defines the methods that objects that participate in a validation operation.



Public Methods
 MethodDefined By
  
supports(value:*):Boolean
Returns true if the specific value is valid.
Validator
  
validate(value:*):void
Evaluates the specified value and throw a TypeError object if the value is not valid.
Validator
Method Detail
supports()method
public function supports(value:*):Boolean

Returns true if the specific value is valid.

Parameters

value:*

Returns
Booleantrue if the specific value is valid.
validate()method 
public function validate(value:*):void

Evaluates the specified value and throw a TypeError object if the value is not valid.

Parameters

value:*


Throws
TypeError — if the value is not valid.