Packageorg.springextensions.actionscript.ioc.factory.xml.parser
SVN browsingINodeParser.as
FisheyeINodeParser.as
Interfacepublic interface INodeParser
ImplementorsAbstractNodeParser

Defines a single node parser.

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



Public Methods
 MethodDefined by
  
addNodeNameAlias(alias:String):void
Will add an alias that this node parser will react upon.
INodeParser
  
canParse(node:XML):Boolean
Determines if the given node can be parsed.
INodeParser
  
getNodeNames():Array
Return an array containing the node names this parser can parse
INodeParser
  
parse(node:XML):Object
Will parse the given node.
INodeParser
Method detail
addNodeNameAlias()method
public function addNodeNameAlias(alias:String):void

Will add an alias that this node parser will react upon. It has direct influence on the result of the canParse method.

Parameters
alias:String — Alternative nodename that can be parsed by this parser

See also

canParse()method 
public function canParse(node:XML):Boolean

Determines if the given node can be parsed.

Parameters
node:XML — The node to be checked.

Returns
Boolean — true if this implementation can parse the given node.
getNodeNames()method 
public function getNodeNames():Array

Return an array containing the node names this parser can parse

Returns
Array
parse()method 
public function parse(node:XML):Object

Will parse the given node. The type of the result depends on the implementation of the node parser.

Parameters
node:XML — The node that will be parsed

Returns
Object — the parsed node