Package | com.desuade.utils |
Class | public class XMLHelper |
Inheritance | XMLHelper ![]() |
Language Version : | ActionScript 3 |
Since : | 27.07.2009 |
Runtime Versions : | AIR 1.0, Flash Player 9.0.0 |
Method | Defined 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 |
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
|
* — 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
|
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.
|
* — 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.
|
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
|
String — An XML-ready String
|