org.apache.tapestry.parse
Class ConnectChildRule

java.lang.Object
  |
  +--org.apache.commons.digester.Rule
        |
        +--org.apache.tapestry.parse.AbstractSpecificationRule
              |
              +--org.apache.tapestry.parse.ConnectChildRule

public class ConnectChildRule
extends AbstractSpecificationRule

Connects a child object to a parent object using a named method. The method takes two parameters: the name of the child object and the child object itself. The child object name is taken from an attribute.

Since:
3.0
Version:
$Id: ConnectChildRule.java,v 1.2 2003/04/17 21:33:48 hlship Exp $
Author:
Howard Lewis Ship

Fields inherited from class org.apache.commons.digester.Rule
digester, namespaceURI
 
Constructor Summary
ConnectChildRule(String methodName, String attributeName)
           
 
Method Summary
 void begin(String namespace, String name, org.xml.sax.Attributes attributes)
           
 void end(String namespace, String name)
          Performs the add.
 
Methods inherited from class org.apache.tapestry.parse.AbstractSpecificationRule
getLocation, getResourceLocation, getValue, setProperty
 
Methods inherited from class org.apache.commons.digester.Rule
begin, body, body, end, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectChildRule

public ConnectChildRule(String methodName,
                        String attributeName)
Method Detail

begin

public void begin(String namespace,
                  String name,
                  org.xml.sax.Attributes attributes)
           throws Exception
Overrides:
begin in class org.apache.commons.digester.Rule

end

public void end(String namespace,
                String name)
         throws Exception
Performs the add. This is done in end() to ensure that the child object (on top of the stack) is fully initialized.
Overrides:
end in class org.apache.commons.digester.Rule