NestedElementHandler

Extends \AbstractHandler

The nested element handler class.

This class handles the occurance 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

Andreas Aderhold andi@binarycloud.com

copyright

2001,2002 THYRELL. All rights reserved

version

$Id$

access

public

package

phing.parser

Methods

Constructs a SAX handler parser.

__construct($parser, $parentHandler) 
inherited

The constructor must be called by all derived classes.

Arguments

$parser

$parentHandler

Executes initialization actions required to setup the data structures related to the tag.

init($propType, $attrs) 

<

p> This includes:

  • creation of the nested element
  • calling the setters for attributes
  • adding the element to the container object
  • adding a reference to the element (if id attribute is given)
throws

if the setup process fails

access

public

Arguments

$propType

$attrs

Invoked by occurance of #PCDATA.

characters($data) 
inherited
exception

ExpatParserException if there is no CDATA but method was called

access

public

Arguments

$data

Gets invoked when a XML open tag occurs

startElement($name, $attribs) 
inherited

Must be overloaded by the child class. Throws an ExpatParseException if there is no handler registered for an element.

Arguments

$name

$attribs

Gets invoked when element closes method.

finished() 
inherited

Gets invoked when a XML element ends.

endElement($name) 
inherited

Can be overloaded by the child class. But should not. It hands over control to the parentHandler of this.

Arguments

$name

Properties

Reference to the parent object that represents the parent tag of this nested element

parent : object
var

Type(s)

object

Reference to the child object that represents the child tag of this nested element

child : object
var

Type(s)

object

Reference to the parent wrapper object

parentWrapper : 

@var object

Reference to the child wrapper object

childWrapper : 

@var object

Reference to the related target object

target : 

@var object the target instance

parentHandler

parentHandler : 
inherited

parser

parser : 
inherited