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

java.lang.Object
  extended by 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.


Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
TextareaBuilderRule()
           
 
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
 

Constructor Detail

TextareaBuilderRule

public TextareaBuilderRule()
Method Detail

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.