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

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

public class OptionBuilderRule
extends Object
implements Command

This Command will return either a SelectItemBuilder or a SelectItemsBuilder if the html Node is an option and the option has children.


Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
OptionBuilderRule()
           
 
Method Summary
 boolean execute(Context context)
          Returns a true value if the current html Node is an option.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionBuilderRule

public OptionBuilderRule()
Method Detail

execute

public boolean execute(Context context)
                throws Exception

Returns a true value if the current html Node is an option. A true result means that a rule has been assigned to the BuilderRuleContext.

Specified by:
execute in interface Command
Parameters:
context - chains context
Returns:
true if the chain is done
Throws:
Exception - up the calling chain


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