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

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


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

Constructor Detail

LabelBuilderRule

public LabelBuilderRule()
Method Detail

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.