org.apache.shale.clay.parser.builder.chain
Class OptionBuilderRule
java.lang.Object
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.
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 |
OptionBuilderRule
public OptionBuilderRule()
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.