Package | org.spicefactory.lib.xml.mapper.handler |
Class | public class AbstractChildElementHandler |
Inheritance | AbstractChildElementHandler AbstractPropertyHandler Object |
Subclasses | ChildElementHandler, ChoiceHandler |
Method | Defined By | ||
---|---|---|---|
AbstractChildElementHandler(property:Property, xmlNames:Array)
Creates a new instance. | AbstractChildElementHandler | ||
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 |
Method | Defined By | ||
---|---|---|---|
Returns the mapper responsible for the specified instance. | AbstractChildElementHandler | ||
getMapperForXmlName(xmlName:QName):XmlObjectMapper
Returns the mapper responsible for the specified XML name. | AbstractChildElementHandler | ||
getValue(instance:Object):*
Gets the value of the mapped property from the specified instance. | AbstractPropertyHandler | ||
getValueAsString(instance:Object):String
Gets the value of the mapped property from the specified instance as a String. | AbstractPropertyHandler | ||
getValueFromNode(node:XML, context:XmlProcessorContext):*
Extracts the value from the specified node, resolving any variables that nodes with simple content
possibly contain. | AbstractPropertyHandler | ||
validateValueCount(count:int):void
Validates the specified number of mapped XML elements, attributes or text nodes. | AbstractPropertyHandler |
AbstractChildElementHandler | () | Constructor |
public function AbstractChildElementHandler(property:Property, xmlNames:Array)
Creates a new instance.
Parametersproperty:Property — the property the child element should be applied to
| |
xmlNames:Array — the names of the mapped XML attributes or elements
|
getMapperForInstance | () | method |
protected function getMapperForInstance(instance:Object, context:XmlProcessorContext):XmlObjectMapper
Returns the mapper responsible for the specified instance.
Parameters
instance:Object — the instance to return the mapper for
| |
context:XmlProcessorContext — the processing context
|
XmlObjectMapper — the mapper responsible for the specified instance
|
getMapperForXmlName | () | method |
protected function getMapperForXmlName(xmlName:QName):XmlObjectMapper
Returns the mapper responsible for the specified XML name.
Parameters
xmlName:QName — the XML name to return the mapper for
|
XmlObjectMapper — the mapper responsible for the specified XML name
|