| Package | org.pranaframework.ioc.factory.xml.parser |
| Interface | public interface INodeParser |
| Implementors | AbstractNodeParser |
| Method | Defined 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 | ||
| 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
|
See also
| 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):ObjectWill 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
|