org.apache.shale.clay.parser.builder.chain
Class TextareaBuilderRule
java.lang.Object
org.apache.shale.clay.parser.builder.chain.TextareaBuilderRule
- All Implemented Interfaces:
- Command
public class TextareaBuilderRule
- extends Object
- implements Command
This Command
rule will map an html textarea Node
to a
InputTextareaBuilder
.
Method Summary |
boolean |
execute(Context context)
Returns false if the html Node was not a textarea. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextareaBuilderRule
public TextareaBuilderRule()
execute
public boolean execute(Context context)
throws Exception
Returns false
if the html Node
was not a textarea.
The BuilderRuleContext
will be passed as a parameter. If a match
is found, a true
value is returned completing 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.