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

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

public class AnchorBuilderRule
extends Object
implements Command


Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
AnchorBuilderRule()
           
 
Method Summary
 boolean execute(Context context)
           Uses the BuilderRuleContext to find the current html Node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnchorBuilderRule

public AnchorBuilderRule()
Method Detail

execute

public boolean execute(Context context)
                throws Exception

Uses the BuilderRuleContext to find the current html Node. If the node is an anchored element, return an instance if the builder and stop the chain.

Specified by:
execute in interface Command
Parameters:
context - commons chains
Returns:
true if is final
Throws:
Exception - throws back to the top of the chain


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