| Package | org.springextensions.actionscript.ioc.factory.xml.parser.support.nodeparsers |
| Class | public class AbstractNodeParser |
| Implements | INodeParser |
| Subclasses | ArrayCollectionNodeParser, ArrayNodeParser, DictionaryNodeParser, KeyValueNodeParser, NullNodeParser, ObjectNodeParser, RefNodeParser |
Authors: Christophe Herreman, Erik Westra
Version: $Revision: 21 $, $Date: 2008-11-01 22:58:42 +0100 (za, 01 nov 2008) $, $Author: dmurat $
Since: 0.1
| Property | Defined by | ||
|---|---|---|---|
| nodeNames : Array
An array containing the compatible node names.
| AbstractNodeParser | ||
| xmlObjectDefinitionsParser : XMLObjectDefinitionsParser
The xmlObjectDefinitionsParser using this NodeParser
| AbstractNodeParser | ||
| Method | Defined by | ||
|---|---|---|---|
|
AbstractNodeParser(xmlObjectDefinitionsParser:XMLObjectDefinitionsParser, nodeName:String)
This class should not be instantiated directly.
| AbstractNodeParser | ||
|
addNodeNameAlias(alias:String):void
Will add an alias that this node parser will react upon.
| AbstractNodeParser | ||
|
canParse(node:XML):Boolean
Determines if the given node can be parsed.
| AbstractNodeParser | ||
|
getNodeNames():Array
Return an array containing the node names this parser can parse
| AbstractNodeParser | ||
|
parse(node:XML):Object
This is an abstract method and should be overridden in a subclass.
| AbstractNodeParser | ||
| nodeNames | property |
protected var nodeNames:ArrayAn array containing the compatible node names.
| xmlObjectDefinitionsParser | property |
protected var xmlObjectDefinitionsParser:XMLObjectDefinitionsParserThe xmlObjectDefinitionsParser using this NodeParser
| AbstractNodeParser | () | constructor |
public function AbstractNodeParser(xmlObjectDefinitionsParser:XMLObjectDefinitionsParser, nodeName:String)This class should not be instantiated directly. Create a subclass that implements the parse method.
ParametersxmlObjectDefinitionsParser:XMLObjectDefinitionsParser — The definitions parser using this NodeParser
|
|
nodeName:String — The name of the node this parser should react to
|
| addNodeNameAlias | () | method |
public function addNodeNameAlias(alias:String):voidWill add an alias that this node parser will react upon. It has direct influence on the result of the canParse method.
Parametersalias:String — Alternative nodename that can be parsed by this parser
|
| canParse | () | method |
public function canParse(node:XML):BooleanDetermines if the given node can be parsed.
Parametersnode:XML — The node to be checked.
|
Boolean — true if this implementation can parse the given node.
|
| getNodeNames | () | method |
public function getNodeNames():ArrayReturn an array containing the node names this parser can parse
ReturnsArray |
| parse | () | method |
public function parse(node:XML):ObjectThis is an abstract method and should be overridden in a subclass. Will parse the given node. The type of the result depends on the implementation of the node parser.
Parametersnode:XML — The node that will be parsed
|
Object — the parsed node
|