Package | org.spicefactory.lib.xml.mapper.handler |
Class | public class ChoiceHandler |
Inheritance | ChoiceHandler AbstractChildElementHandler AbstractPropertyHandler Object |
Method | Defined By | ||
---|---|---|---|
Creates a new instance. | ChoiceHandler | ||
toObject(nodes:Array, parentInstance:Object, context:XmlProcessorContext):void
Maps the specified XML elements, attributes or text nodes to the mapped property of the specified instance. | AbstractPropertyHandler | ||
toXML(instance:Object, parentElement:XML, context:XmlProcessorContext):void
Maps the property value this handler is responsible for to the specified XML elements. | AbstractPropertyHandler |
ChoiceHandler | () | Constructor |
public function ChoiceHandler(property:Property, choice:Choice)
Creates a new instance.
Parametersproperty:Property — the property the child element choice should be applied to
| |
choice:Choice — the choice containing the mappers responsible for mapping the child elements to objects
|