| Package | system.rules |
| Class | public class EmptyString |
| Inheritance | EmptyString Object |
| Implements | Rule |
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
| Property | Defined By | ||
|---|---|---|---|
| value : *
The condition to evaluate. | EmptyString | ||
| Method | Defined By | ||
|---|---|---|---|
EmptyString(value:*)
Creates a new EmptyString instance. | EmptyString | ||
eval():Boolean
Evaluates the specified condition. | EmptyString | ||
| value | property |
public var value:*The condition to evaluate.
| EmptyString | () | Constructor |
public function EmptyString(value:*)Creates a new EmptyString instance.
Parametersvalue:* — The String to evaluate.
|
| eval | () | method |
public function eval():BooleanEvaluates the specified condition.
ReturnsBoolean |