Packageorg.springextensions.actionscript.ioc.factory.xml.parser.support
SVN browsingParsingUtils.as
FisheyeParsingUtils.as
Classpublic final class ParsingUtils

Provides utilities for parsing xml object definitions to object defintions.



Documentation reference: coding an iobjectdefinitionparser implementation


Public Methods
 MethodDefined by
  
attributeNameToPropertyName(attribute:String):String
[static] Creates a property name from an attribute name.
ParsingUtils
  
mapProperties(objectDefinition:IObjectDefinition, node:XML, ... attributes):void
[static] Maps the given attributes of the xml node to properties of the object definition.
ParsingUtils
  
mapPropertiesArrays(objectDefinition:IObjectDefinition, node:XML, ... attributes):void
[static] Maps the given attributes of the xml node to an array of properties in the properties of the object definition.
ParsingUtils
  
mapReferenceArrays(objectDefinition:IObjectDefinition, node:XML, ... attributes):void
[static] Maps the given attributes of the xml node to an array of object references in the properties of the object definition.
ParsingUtils
  
mapReferences(objectDefinition:IObjectDefinition, node:XML, ... attributes):void
[static] Maps the given attributes of the xml node to object references in the properties of the object definition.
ParsingUtils
Method detail
attributeNameToPropertyName()method
public static function attributeNameToPropertyName(attribute:String):String

Creates a property name from an attribute name.

e.g. "make-objects-bindable" becomes "makeObjectsBindable"

Use an AttributeToPropertyMapping if you want to specify the name of the property

Parameters
attribute:String

Returns
String

See also

mapProperties()method 
public static function mapProperties(objectDefinition:IObjectDefinition, node:XML, ... attributes):void

Maps the given attributes of the xml node to properties of the object definition.

Parameters
objectDefinition:IObjectDefinition
 
node:XML
 
... attributes
mapPropertiesArrays()method 
public static function mapPropertiesArrays(objectDefinition:IObjectDefinition, node:XML, ... attributes):void

Maps the given attributes of the xml node to an array of properties in the properties of the object definition.

Parameters
objectDefinition:IObjectDefinition
 
node:XML
 
... attributes
mapReferenceArrays()method 
public static function mapReferenceArrays(objectDefinition:IObjectDefinition, node:XML, ... attributes):void

Maps the given attributes of the xml node to an array of object references in the properties of the object definition.

Parameters
objectDefinition:IObjectDefinition
 
node:XML
 
... attributes
mapReferences()method 
public static function mapReferences(objectDefinition:IObjectDefinition, node:XML, ... attributes):void

Maps the given attributes of the xml node to object references in the properties of the object definition.

Parameters
objectDefinition:IObjectDefinition
 
node:XML
 
... attributes