Handles marshalling/unmarshalling of simple types.
A substantial portion of this code is borrowed from mx.rpc.xml.SchemaMarshaller.
Author: Andrew Lewisohn
Version: $Revision: 30 $, $Date: 2009-02-12 16:43:08 -0500 (Thu, 12 Feb 2009) $, $Author: alewisohn $
Since: 0.1
public function TypeMarshaller(constants:MarshallerConstants, datatypes:MarshallerDatatypes)
Constructor.
Parameters
public function marshal(value:*, type:String = null):*
This function converts an ActionScript value to a String for XML
simple content based on a built-in XML Schema type. If a type is not
provided, the anyType is assumed.
Parameters
| value:* |
| |
| type:String (default = null) |
Returns
public function marshalBoolean(value:*, type:String = null):String
The boolean schema type allows the string values 'true' or
'1' for true values and 'false' or '0' for false values. This
marshaller, by default, represents values using 'true' or false.
If a String value of '1' or '0' is passed, however, it is preserved.
Parameters
| value:* |
| |
| type:String (default = null) |
Returns
public function marshalByteArray(value:*, type:String = null):StringParameters
| value:* |
| |
| type:String (default = null) |
Returns
public function marshalDate(value:*, type:String = null):StringParameters
| value:* |
| |
| type:String (default = null) |
Returns
public function marshalInt(value:*, type:String = null):StringParameters
| value:* |
| |
| type:String (default = null) |
Returns
public function marshalNumber(value:*, type:String = null):StringParameters
| value:* |
| |
| type:String (default = null) |
Returns
public function marshalString(value:*, type:String = null):StringParameters
| value:* |
| |
| type:String (default = null) |
Returns
public function marshalUint(value:*, type:String = null):StringParameters
| value:* |
| |
| type:String (default = null) |
Returns
public function unmarshal(value:*, type:String = null):ObjectParameters
| value:* |
| |
| type:String (default = null) |
Returns
public function unmarshalBoolean(value:*):BooleanParameters
Returns
public function unmarshalByteArray(value:*):ByteArrayParameters
Returns
public function unmarshalDate(value:*):DateParameters
Returns
public function unmarshalInt(value:*):intParameters
Returns
public function unmarshalNumber(value:*):NumberParameters
Returns
public function unmarshalString(value:*):StringParameters
Returns
public function unmarshalUint(value:*):uintParameters
Returns
ActionScript XML Binding 0.1 - 2009