org.apache.tapestry.parse
Class ComponentCopyOfRule

java.lang.Object
  extended by org.apache.commons.digester.Rule
      extended by org.apache.tapestry.parse.AbstractSpecificationRule
          extended by org.apache.tapestry.parse.ComponentCopyOfRule

public class ComponentCopyOfRule
extends AbstractSpecificationRule

A rule for processing the copy-of attribute of the <component> element (in a page or component specification).

Since:
3.0
Version:
$Id: ComponentCopyOfRule.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship

Field Summary
 
Fields inherited from class org.apache.commons.digester.Rule
digester, namespaceURI
 
Constructor Summary
ComponentCopyOfRule()
           
 
Method Summary
 void begin(String namespace, String name, org.xml.sax.Attributes attributes)
          Validates that the element has either type or copy-of (not both, not neither).
 
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, 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

ComponentCopyOfRule

public ComponentCopyOfRule()
Method Detail

begin

public void begin(String namespace,
                  String name,
                  org.xml.sax.Attributes attributes)
           throws Exception
Validates that the element has either type or copy-of (not both, not neither). Uses the copy-of attribute to find a previously declared component and copies its type and bindings into the new component (on top of the stack).

Overrides:
begin in class org.apache.commons.digester.Rule
Throws:
Exception