org.apache.tapestry.parse
Class SetExtendedPropertyRule

java.lang.Object
  extended byorg.apache.commons.digester.Rule
      extended byorg.apache.tapestry.parse.AbstractSpecificationRule
          extended byorg.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,v 1.7 2004/02/19 17:37:41 hlship Exp $
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
Throws:
Exception

body

public void body(String namespace,
                 String name,
                 String text)
          throws Exception
Throws:
Exception

end

public void end(String namespace,
                String name)
         throws Exception
Throws:
Exception