public class DefaultBuilderRule extends Object implements org.apache.commons.chain.Command
This is a Command implementation that will
match a HTML Node with a matching Builder
implementation. This is the default rule and will always return a
OutputLinkBuilder and the chain terminated. The BuilderFactory runs this
command rule as part of the Globals.BUILDER_CATALOG_NAME
found in the Globals.BUILDER_RESOURCE_NAME and
invoking the Globals.FIND_BUILDER_COMMAND_NAME
| Constructor and Description |
|---|
DefaultBuilderRule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(org.apache.commons.chain.Context context)
Uses the
BuilderRuleContext to find the current html
Node. |
public boolean execute(org.apache.commons.chain.Context context)
throws Exception
Uses the BuilderRuleContext to find the current html
Node. This is the default rule that
will return a VerbatimBuilder when the node is not a comment or
has a jsfid attribute. When the html node is a
comment, the CommentBuilder is returned. If the node is not a comment
but has a jsfid attribute, the MorphBuilder is returned.
execute in interface org.apache.commons.chain.Commandcontext - commons chianstrue if finalException - propagated to the top chainCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.