Package | org.spicefactory.lib.command.data |
Interface | public interface CommandData |
Implementors | DefaultCommandData |
Method | Defined By | ||
---|---|---|---|
getAllObjects(type:Class = null):Array
Returns all results of the specified type. | CommandData | ||
getObject(type:Class = null):Object
Returns the result of the specified type
if any command has produced a matching result. | CommandData |
getAllObjects | () | method |
public function getAllObjects(type:Class = null):Array
Returns all results of the specified type.
When no matching result was added this method returns an empty Array.
When a flow or group contains nested flows or groups their result is
represented by a separate CommandData
instance.
Parameters
type:Class (default = null ) — the type of the results to return (if omitted all types are included)
|
Array — an Array holding all matching results that were added to this instance
|
getObject | () | method |
public function getObject(type:Class = null):Object
Returns the result of the specified type if any command has produced a matching result. In case of multiple matches the last matching result that was added to this instance is returned. When no matching result was added this method returns null.
Parameters
type:Class (default = null ) — the type of the result to return (if omitted all types are considered)
|
Object — the last result added to this instance with a matching type
|