Packagesystem.rules
Classpublic class EmptyString
InheritanceEmptyString Inheritance Object
Implements Rule

Evaluates if the value is an empty String.

Example :

                  
     import system.rules.Rule ;
     import system.rules.EmptyString ;
     
     var cond1:Rule = new EmptyString( null ) ;
     var cond2:Rule = new EmptyString( "" ) ;
     var cond3:Rule = new EmptyString( "hello" ) ;
     
     trace( cond1.eval() ) ; // false
     trace( cond2.eval() ) ; // true
     trace( cond3.eval() ) ; // false
     
               



Public Properties
 PropertyDefined By
  value : *
The condition to evaluate.
EmptyString
Public Methods
 MethodDefined By
  
EmptyString(value:*)
Creates a new EmptyString instance.
EmptyString
  
eval():Boolean
Evaluates the specified condition.
EmptyString
Property Detail
valueproperty
public var value:*

The condition to evaluate.

Constructor Detail
EmptyString()Constructor
public function EmptyString(value:*)

Creates a new EmptyString instance.

Parameters
value:* — The String to evaluate.
Method Detail
eval()method
public function eval():Boolean

Evaluates the specified condition.

Returns
Boolean