org.apache.shale.clay.parser.builder.chain
Class AnchorBuilderRule
java.lang.Object
  
org.apache.shale.clay.parser.builder.chain.AnchorBuilderRule
- All Implemented Interfaces: 
 - Command
 
public class AnchorBuilderRule
- extends Object
- implements Command
  
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
AnchorBuilderRule
public AnchorBuilderRule()
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.