Package | org.spicefactory.lib.xml.mapper.handler |
Class | public class AttributeHandler |
Inheritance | AttributeHandler AbstractPropertyHandler Object |
Method | Defined By | ||
---|---|---|---|
AttributeHandler(property:Property, xmlName:QName)
Creates a new instance. | AttributeHandler | ||
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 [override]
Maps the property value this handler is responsible for to the specified XML elements. | AttributeHandler |
AttributeHandler | () | Constructor |
public function AttributeHandler(property:Property, xmlName:QName)
Creates a new instance.
Parametersproperty:Property — the property the attribute value should be applied to
| |
xmlName:QName — the names of the mapped XML attributes or elements
|
toXML | () | method |
override public function toXML(instance:Object, parentElement:XML, context:XmlProcessorContext):void
Maps the property value this handler is responsible for to the specified XML elements.
Parameters
instance:Object — the instance the to read the property value from
| |
parentElement:XML — the XML element to apply the property value to, either as an attribute, text node or child element
| |
context:XmlProcessorContext — the processing context
|