The generic element handler class.
This class handles the occurrence of runtime registered tags like datatypes (fileset, patternset, etc) and it's possible nested tags. It introspects the implementation of the class and sets up the data structures.
author |
Michiel Rook [email protected] |
---|---|
copyright |
2001,2002 THYRELL. All rights reserved |
version |
$Id: f565e4518b5619f9c1c906ce06cf26eeda2d1cf6 $ |
package |
phing.parser |
__construct(\ExpatParser $parser, \AbstractHandler $parentHandler)
The constructor must be called by all derived classes.
characters(string $data)
exception |
ExpatParseException if there is no CDATA but method was called |
---|---|
Throws |
|
string
contents
endElement(string $name)
Can be overloaded by the child class. But should not. It hands over control to the parentHandler of this.
string
the name of the XML element
finished()
init(string $tag, array $attrs)
This includes:
Throws |
|
---|
string
the tag that comes in
array
attributes the tag carries
startElement(string $name, array $attribs)
Must be overloaded by the child class. Throws an ExpatParseException if there is no handler registered for an element.
Throws |
|
---|
string
name of the XML element
array
attributes of the XML element
parent : object
var |
---|
object
child : \UnknownElement
parentWrapper : \RuntimeConfigurable
childWrapper : \RuntimeConfigurable