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

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

public class SpanBuilderRule
extends Object
implements Command

This Command rule matches a html span Node to a MorphBuilder. This rule is different in that jsfid is used to find the target componentType to replace the html span tag. If a jsfid is not found as an attribute in the html Node, no match is made.


Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
SpanBuilderRule()
           
 
Method Summary
 boolean execute(Context context)
           Returns a true value, ending the chain execution if the html Node has a jsfid html attribute and is a span HTML element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpanBuilderRule

public SpanBuilderRule()
Method Detail

execute

public boolean execute(Context context)
                throws Exception

Returns a true value, ending the chain execution if the html Node has a jsfid html attribute and is a span HTML element.

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


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