org.apache.shale.clay.parser.builder.chain
Class LabelBuilderRule
java.lang.Object
org.apache.shale.clay.parser.builder.chain.LabelBuilderRule
- All Implemented Interfaces:
- org.apache.commons.chain.Command
public class LabelBuilderRule
- extends java.lang.Object
- implements org.apache.commons.chain.Command
This Command
rule has an implied mapping of a html label
Node
to a OutputLabelBuilder
regardless of the mapped
jsfid
Fields inherited from interface org.apache.commons.chain.Command |
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
Method Summary |
boolean |
execute(org.apache.commons.chain.Context context)
If the html Node is a label, return return the
OutputLabelBuilder and complete the chain by returning a
true value. |
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(org.apache.commons.chain.Context context)
throws java.lang.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 org.apache.commons.chain.Command
- Parameters:
context
- chains context
- Returns:
true
if the chain is done
- Throws:
java.lang.Exception
- up the calling chain
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.