Root filter class for a phing buildfile.
The root filter is called by the parser first. This is where the phing specific parsing starts. RootHandler decides what to do next.
author | Andreas Aderhold |
---|---|
copyright | 2001,2002 THYRELL. All rights reserved |
version | $Id$ |
package | phing.parser |
__construct(\AbstractSAXParser $parser, \ProjectConfigurator $configurator)
The root filter is required so the parser knows what to do. It's called by the ExpatParser that is instatiated in ProjectConfigurator.
It recieves the expat parse object ref and a reference to the configurator
characters(string $data)
exception | ExpatParserException if there is no CDATA but method was called |
---|---|
access | public |
inherited_from | \AbstractHandler::characters() |
string
the name of the XML element
endElement(string $name)
Can be overloaded by the child class. But should not. It hands over control to the parentHandler of this.
inherited_from | \AbstractHandler::endElement() |
---|
string
the name of the XML element
startElement(string $tag, array $attrs)
The root element of our buildfile is the <project> element. The root filter handles this element if it occurs, creates ProjectHandler to handle any nested tags & attributes of the <project> tag, and calls init.
string
The xml tagname
array
The attributes of the tag
\ExpatParseException |
if the first element within our build file is not the >project< element |
---|
finished()
inherited_from | \AbstractHandler::finished() |
---|
$parentHandler
inherited_from | \AbstractHandler::$$parentHandler |
---|
$parser
inherited_from | \AbstractHandler::$$parser |
---|
$configurator