org.apache.shale.clay.parser.builder.chain
Class LabelBuilderRule
java.lang.Object
org.apache.shale.clay.parser.builder.chain.LabelBuilderRule
- All Implemented Interfaces:
- Command
public class LabelBuilderRule
- extends Object
- implements Command
This Command
rule has an implied mapping of a html label
Node
to a OutputLabelBuilder
regardless of the mapped
jsfid
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LabelBuilderRule
public LabelBuilderRule()
execute
public boolean execute(Context context)
throws Exception
If the html Node
is a label, return return the
OutputLabelBuilder
and complete the chain by returning a
true
value. The BuilderRuleContext
contains the
current Node
and the target Builder
.
- 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.