org.apache.shale.clay.parser.builder.chain
Class FormBuilderRule
java.lang.Object
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
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormBuilderRule
public FormBuilderRule()
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.