Packagecom.desuade.utils
Classpublic class XMLHelper
InheritanceXMLHelper Inheritance Object

Language Version : ActionScript 3
Since : 27.07.2009
Runtime Versions : AIR 1.0, Flash Player 9.0.0

Helps with XML parsing in the Motion and Partigen packages.



Public Methods
 MethodDefined By
  
dexmlize(xval:*):*
[static] Cleans a string from an XML object for use in the package.
XMLHelper
  
getSimpleClassName(object:Object):String
[static] Returns a string for the class name.
XMLHelper
  
objectFromXML(xml:XML):*
[static] Converts XML into it's original Object.
XMLHelper
  
objectToXML(object:Object):XML
[static] Converts any "flat" Object into XML.
XMLHelper
  
xmlize(xval:*):String
[static] Makes a value ready for XML as a String.
XMLHelper
Method Detail
dexmlize()method
public static function dexmlize(xval:*):*

Cleans a string from an XML object for use in the package.

Parameters

xval:* — The string from an XML object attribute or child

Returns
* — The value as a String, Boolean, or Number
getSimpleClassName()method 
public static function getSimpleClassName(object:Object):String

Returns a string for the class name. This is like getQualifiedClassName, except without the first half.

Parameters

object:Object — The object to get the class name of

Returns
String — String of the object's class.
objectFromXML()method 
public static function objectFromXML(xml:XML):*

Converts XML into it's original Object.

Parameters

xml:XML — The XML representation of the Object.

Returns
* — The new Object from the XML.
objectToXML()method 
public static function objectToXML(object:Object):XML

Converts any "flat" Object into XML.

Parameters

object:Object — The Object to convert to XML.

Returns
XML — XML object
xmlize()method 
public static function xmlize(xval:*):String

Makes a value ready for XML as a String.

Parameters

xval:* — The value to prepare for XML

Returns
String — An XML-ready String