|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.shale.clay.parser.builder.chain.DefaultBuilderRule
public class DefaultBuilderRule
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
Field Summary |
---|
Fields inherited from interface org.apache.commons.chain.Command |
---|
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
Constructor Summary | |
---|---|
DefaultBuilderRule()
|
Method Summary | |
---|---|
boolean |
execute(org.apache.commons.chain.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 |
---|
public DefaultBuilderRule()
Method Detail |
---|
public boolean execute(org.apache.commons.chain.Context context) throws java.lang.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.Command
context
- commons chians
true
if final
java.lang.Exception
- propagated to the top chain
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |