Packagesystem.models
Classpublic class KernelModel
InheritanceKernelModel Inheritance Object
Implements Model
Subclasses ChangeModel

This class provides a skeletal implementation of the Model interface, to minimize the effort required to implement this interface.



Public Methods
 MethodDefined By
  
Creates a new KernelModel instance.
KernelModel
  
isLocked():Boolean
Returns true if the object is locked.
KernelModel
  
lock():void
Locks the object.
KernelModel
  
supports(value:*):Boolean
Returns true if the Validator object validate the value.
KernelModel
  
unlock():void
Unlocks the display.
KernelModel
  
validate(value:*):void
Evaluates the specified value and throw a TypeError object if the value is not valid.
KernelModel
Constructor Detail
KernelModel()Constructor
public function KernelModel()

Creates a new KernelModel instance.

Method Detail
isLocked()method
public function isLocked():Boolean

Returns true if the object is locked.

Returns
Booleantrue if the object is locked.
lock()method 
public function lock():void

Locks the object.

supports()method 
public function supports(value:*):Boolean

Returns true if the Validator object validate the value. Overrides this method in your concrete Model class.

Parameters

value:* — the object to validate.

Returns
Booleantrue is this specific value is valid.
unlock()method 
public function unlock():void

Unlocks the display.

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
Error — if the value is not valid.