This deserializer deserializes xml nodes representing a primitive type or
null
.
A xml node that should be deserialized has to use the namespace set for xmlNamespace
.
The resulting data type depends on the xml node name:
Node name | returned type |
---|
Integer | int |
Int16 | int |
Int32 | int |
UInt16 | int |
Long | Number |
Double | Number |
Float | Number |
UInt32 | Number |
Single | Number |
Boolean | Boolean |
String | |
Null | |
- <String>Hello World</String> is matched to the String 'Hello World'.
- <Integer>100</Integer> is parsed to an Integer with the value 100.
- <Null/> is matched to
null
elementName:String
[read-only] [override]
Implementation public function get elementName():String
instance:PrimitivesDeserializer
[read-only]
The shared instance of this deserializer
Implementation public static function get instance():PrimitivesDeserializer
xmlNamespace:Namespace
[read-only] [override]
Implementation public function get xmlNamespace():Namespace
override public function canHandle(context:GraphMLParseContext, element:XML):Boolean
Parameters
Returnsoverride public function deserialize(context:GraphMLParseContext, element:XML):Object
Parameters
Returns protected function getClassForSymbolicClassName(name:String):Class
Parameters
Returns
Wed Oct 7 2015, 04:52 PM +02:00