Packageorg.spicefactory.lib.xml.mapper
Classpublic class PropertyMapper
InheritancePropertyMapper Inheritance AbstractXmlObjectMapper
ImplementsXmlObjectMapper

Default implementation of the XmlObjectMapper interface that gets produced by the PropertyMapperBuilder. Usually instances of this class will not be created by application code directly. Use the PropertyMapperBuilder class instead.



Public Properties
 PropertyDefined by
 InheritedelementName : QName
AbstractXmlObjectMapper
 InheritedobjectType : ClassInfo
AbstractXmlObjectMapper
Public Methods
 MethodDefined by
  
mapToObject(element:XML, context:XmlProcessorContext):Object
Maps from XML to object.
PropertyMapper
  
mapToXml(object:Object, context:XmlProcessorContext):XML
Maps from object to XML.
PropertyMapper
Method detail
mapToObject()method
public override function mapToObject(element:XML, context:XmlProcessorContext):Object

Maps from XML to object. Should always return objects of the type the objectType property was set to.

Parameters
element:XML — the XML element to be transformed to an object
 
context:XmlProcessorContext — the processing context

Returns
Object — a new object that maps to the specified XML element
mapToXml()method 
public override function mapToXml(object:Object, context:XmlProcessorContext):XML

Maps from object to XML. Should always return XML elements with the name the elementName property was set to.

Parameters
object:Object — the object to be transformed to an XML element
 
context:XmlProcessorContext — the processing context

Returns
XML — a new XML element that maps to the specified object