Packagecom.bourre.ioc.context.processor
Classpublic class ProcessingHelper

Player version: Flash Player 9.0
Language version: ActionScript 3.0

The ProcessingHelper helper gives method for xml context content pre processing.


Example
  
  var oLoader : ApplicationLoader = new ApplicationLoader( this, false );
  oLoader.addProcessingMethod( ProcessingHelper.changeObjectAttribute, "cross", "visible", "false" );
  oLoader.addProcessingMethod( ProcessingHelper.changePropertyValue, "cross", "x", 600 );
  oLoader.addProcessingMethod( ProcessingHelper.addResource, "newStyle", "myStyle.css" );
  

See also

com.bourre.ioc.load.ApplicationLoader
com.bourre.ioc.load.runtime.RuntimeContextLoader


Public Methods
 MethodDefined by
  
addDLL(xml:XML, url:String):String
[static] Adds a new dll definition.
ProcessingHelper
  
addNode(xml:XML, node:XML):XML
[static] Adds xml node.
ProcessingHelper
  
addResource(xml:XML, id:String, url:String):String
[static] Adds a new resource definition.
ProcessingHelper
  
changeMethodArgumentValue(xml:XML, id:String, name:String, index:uint, value:Object = null, type:String = null):XML
[static] Changes method argument value.
ProcessingHelper
  
changeObjectAttribute(xml:XML, id:String, attributeName:String, value:Object, create:Boolean = false):XML
[static] Changes object attribute value.
ProcessingHelper
  
changeObjectID(xml:XML, id:String, newID:String):XML
[static] Changes object identifier.
ProcessingHelper
  
changePropertyValue(xml:XML, id:String, name:String, value:Object):XML
[static] Changes a context property value.
ProcessingHelper
Method detail
addDLL()method
public static function addDLL(xml:XML, url:String):String

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Adds a new dll definition.

Parameters
xml:XML — XML content ( the context )
 
url:String — DLL url

Returns
String
addNode()method 
public static function addNode(xml:XML, node:XML):XML

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Adds xml node.

Parameters
xml:XML — XML content ( the context )
 
node:XML — New xml node

Returns
XML
addResource()method 
public static function addResource(xml:XML, id:String, url:String):String

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Adds a new resource definition.

Parameters
xml:XML — XML content ( the context )
 
id:String — Resource identifier
 
url:String — Resource url

Returns
String
changeMethodArgumentValue()method 
public static function changeMethodArgumentValue(xml:XML, id:String, name:String, index:uint, value:Object = null, type:String = null):XML

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Changes method argument value.

Parameters
xml:XML — XML content ( the context )
 
id:String — Identifier to search for
 
name:String — Method name to search for
 
index:uint — Argument index to replace
 
value:Object (default = null) — New argument value
 
type:String (default = null) — New argument type

Returns
XML
changeObjectAttribute()method 
public static function changeObjectAttribute(xml:XML, id:String, attributeName:String, value:Object, create:Boolean = false):XML

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Changes object attribute value.

Parameters
xml:XML — XML content ( the context )
 
id:String — Identifier to search for
 
attributeName:String — Attribute name to search for
 
value:Object — New attribute value
 
create:Boolean (default = false) — If true attribute is created if not exist

Returns
XML
changeObjectID()method 
public static function changeObjectID(xml:XML, id:String, newID:String):XML

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Changes object identifier.

All references to replaced ID are updated.

Parameters
xml:XML — XML content ( the context )
 
id:String — Identifier to search for
 
newID:String — New identifier value to replace

Returns
XML
changePropertyValue()method 
public static function changePropertyValue(xml:XML, id:String, name:String, value:Object):XML

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Changes a context property value.

Parameters
xml:XML — XML content ( the context )
 
id:String — Identifier to search for
 
name:String — Property name to search for
 
value:Object — New property value

Returns
XML