org.apache.tapestry.parse
Class SetExtendedPropertyRule

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

public class SetExtendedPropertyRule
extends AbstractSpecificationRule

Sets a property from an extended attribute. An extended attribute is a value that may either be specified inside an XML attribute or, if the attribute is not present, in the body of the element. It is not allowed that the value be specified in both places. The value may be optional or required.

Since:
3.0
Version:
$Id: SetExtendedPropertyRule.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
SetExtendedPropertyRule(String attributeName, String propertyName, boolean required)
           
 
Method Summary
 void begin(String namespace, String name, org.xml.sax.Attributes attributes)
           
 void body(String namespace, String name, String text)
           
 void end(String namespace, String name)
           
 
Methods inherited from class org.apache.tapestry.parse.AbstractSpecificationRule
getLocation, getResourceLocation, getValue, setProperty
 
Methods inherited from class org.apache.commons.digester.Rule
begin, 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

SetExtendedPropertyRule

public SetExtendedPropertyRule(String attributeName,
                               String propertyName,
                               boolean required)
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
Throws:
Exception

body

public void body(String namespace,
                 String name,
                 String text)
          throws Exception
Overrides:
body in class org.apache.commons.digester.Rule
Throws:
Exception

end

public void end(String namespace,
                String name)
         throws Exception
Overrides:
end in class org.apache.commons.digester.Rule
Throws:
Exception