org.apache.shale.clay.parser.builder.chain
Class FormBuilderRule

java.lang.Object
  extended by org.apache.shale.clay.parser.builder.chain.FormBuilderRule
All Implemented Interfaces:
Command

public class FormBuilderRule
extends Object
implements Command

This rule has an implied mapping meaning that all html form nodes will map to the FormBuilder regardless if the html form attribute has a jsfid.


Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
FormBuilderRule()
           
 
Method Summary
 boolean execute(Context context)
           Uses the BuilderRuleContext to find the current html Node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormBuilderRule

public FormBuilderRule()
Method Detail

execute

public boolean execute(Context context)
                throws Exception

Uses the BuilderRuleContext to find the current html Node. If the node is a form, return an instance if the builder and stop the chain.

Specified by:
execute in interface Command
Parameters:
context - commons chains
Returns:
true if the command ends the chain
Throws:
Exception - pushes an exception back to the invoking Command


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.