Packagecom.asfusion.mate.actions
Classpublic class DataCopier
InheritanceDataCopier Inheritance AbstractAction
ImplementsIAction

The DataSaver tag allows you to save values into some object. A possible storage is the "data" object available while the IActionList is running.

The DataSaver tags is a handy tag to quickly save values into some storage. You can use the IActionList "data" as a temporary storage from where action that follow in the IActionList can read values. You can also use some other external variable as the storage.



Public Properties
 PropertyDefined by
  destination : Object
The destination attribute specifies where to store the data coming from the source.
DataCopier
  destinationCache : String
The destinationCache is only useful when the destination is a class.
DataCopier
  destinationKey : String
If you want to set the value of a property of the destination object, instead of the destination itself, you need to specify this attribute.
DataCopier
  source : Object
The source attribute specifies where to get the data to copy from.
DataCopier
  sourceCache : String
The sourceCache is only useful when the source is a class.
DataCopier
  sourceKey : String
If you need a property from the source instead of the source itself, you need to specify this attribute.
DataCopier
Protected Properties
 PropertyDefined by
 InheritedcurrentInstance : * = null
The currentInstance is the Object that this class will use and modify to do its work.
AbstractAction
 Inheriteddocument : Object
A reference to the document object associated with the IActionList that contains this action item.
AbstractAction
Public Methods
 MethodDefined by
 Inherited
initialized(document:Object, id:String):void
Called automatically by the MXML compiler if the AbstractAction is set up by using a tag.
AbstractAction
 Inherited
trigger(scope:IScope):void
This method gets called when the IActionList (ex: EventHandlers) is running.
AbstractAction
Protected Methods
 MethodDefined by
 Inherited
complete(scope:IScope):void
The last method that trigger calls.
AbstractAction
  
getRealObject(obj:*, scope:IScope, cache:String):*
Helper function to get the source or destination objects from either a String value, a SmartObject or other.
DataCopier
 Inherited
prepare(scope:IScope):void
The first method that trigger calls.
AbstractAction
  
run(scope:IScope):void
Where all the action occurs.
DataCopier
 Inherited
setProperties(scope:IScope):void
Where all the properties are set into the currentInstance.
AbstractAction
Property detail
destinationproperty
destination:Object  [read-write]

The destination attribute specifies where to store the data coming from the source. It can be one of this options: event, data, result, or another object.

Implementation
    public function get destination():Object
    public function set destination(value:Object):void
destinationCacheproperty 
destinationCache:String  [read-write]

The destinationCache is only useful when the destination is a class. This attribute defines which cache we will look up for a created object.

Implementation
    public function get destinationCache():String
    public function set destinationCache(value:String):void
destinationKeyproperty 
destinationKey:String  [read-write]

If you want to set the value of a property of the destination object, instead of the destination itself, you need to specify this attribute.

Implementation
    public function get destinationKey():String
    public function set destinationKey(value:String):void
sourceproperty 
source:Object  [read-write]

The source attribute specifies where to get the data to copy from. It can be one of this options: event, data, result, fault, lastReturn, message, scope, or another object.

Implementation
    public function get source():Object
    public function set source(value:Object):void
sourceCacheproperty 
sourceCache:String  [read-write]

The sourceCache is only useful when the source is a class. This attribute defines which cache we will look up for a created object.

Implementation
    public function get sourceCache():String
    public function set sourceCache(value:String):void
sourceKeyproperty 
sourceKey:String  [read-write]

If you need a property from the source instead of the source itself, you need to specify this attribute.

Implementation
    public function get sourceKey():String
    public function set sourceKey(value:String):void
Method detail
getRealObject()method
protected function getRealObject(obj:*, scope:IScope, cache:String):*

Helper function to get the source or destination objects from either a String value, a SmartObject or other.

Parameters
obj:*
 
scope:IScope
 
cache:String

Returns
*
run()method 
protected override function run(scope:IScope):void

Where all the action occurs. At this moment, the currentInstance is already instantiated and all the properties are already set.

Parameters
scope:IScope