Packageorg.springextensions.actionscript.ioc.config.impl.xml.namespacehandler.impl
Classpublic final class ParsingUtils
InheritanceParsingUtils Inheritance Object

Provides utilities for parsing xml object definitions to object defintions.



Public Methods
 MethodDefined By
  
attributeNameToPropertyName(attribute:String):String
[static] Creates a property name from an attribute name.
ParsingUtils
  
mapProperties(ns:Namespace, objectDefinition:IObjectDefinition, node:XML, ... attributes):void
[static] Maps the given attributes of the xml node to properties of the object definition.
ParsingUtils
  
mapPropertiesArrays(ns:Namespace, 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(ns:Namespace, 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(ns:Namespace, 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

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

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

Parameters

ns:Namespace
 
objectDefinition:IObjectDefinition
 
node:XML
 
... attributes

mapPropertiesArrays()method 
public static function mapPropertiesArrays(ns:Namespace, 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

ns:Namespace
 
objectDefinition:IObjectDefinition
 
node:XML
 
... attributes

mapReferenceArrays()method 
public static function mapReferenceArrays(ns:Namespace, 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

ns:Namespace
 
objectDefinition:IObjectDefinition
 
node:XML
 
... attributes

mapReferences()method 
public static function mapReferences(ns:Namespace, 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

ns:Namespace
 
objectDefinition:IObjectDefinition
 
node:XML
 
... attributes