Packageorg.spicefactory.lib.command.flow
Classpublic class LinkConditions
InheritanceLinkConditions Inheritance Object

Helper class for creating common link condition types.



Public Methods
 MethodDefined By
  
[static] Creates a condition that matches all results (except for cancellations and errors).
LinkConditions
  
forResultProperty(name:String, value:Object):LinkCondition
[static] Creates a condition for the specified result property value.
LinkConditions
  
[static] Creates a condition for the specified result type.
LinkConditions
  
[static] Creates a condition for the specified result value.
LinkConditions
Method Detail
forAllResults()method
public static function forAllResults():LinkCondition

Creates a condition that matches all results (except for cancellations and errors).

Returns
LinkCondition — a condition instance for all results
forResultProperty()method 
public static function forResultProperty(name:String, value:Object):LinkCondition

Creates a condition for the specified result property value.

Parameters

name:String — the name of the property of the result
 
value:Object — the property value that a command result must hold for this condition to be met

Returns
LinkCondition — a condition instance for the specified result result property value
forResultType()method 
public static function forResultType(type:Class):LinkCondition

Creates a condition for the specified result type.

Parameters

type:Class — the result type that a command must produce for this condition to be met

Returns
LinkCondition — a condition instance for the specified result type
forResultValue()method 
public static function forResultValue(value:Object):LinkCondition

Creates a condition for the specified result value.

Parameters

value:Object — the result value that a command must produce for this condition to be met

Returns
LinkCondition — a condition instance for the specified result value