public class DirectiveBuilderRule extends Object implements org.apache.commons.chain.Command
This builder will be ordered first in the rule registration list.
If the node has a jsfid
attribute, and its value is
"ignore", or "void" then special assumptions will be made.
Beside the clay "ignore" and "void" directives, handles
all "jsp:" nodes. Most are are assigned to the clay "void"
directive except the "jsp:include" and "jsp:directive.include"
elements. The include and directive.include are
converted into a nested clay components.
Constructor and Description |
---|
DirectiveBuilderRule() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(org.apache.commons.chain.Context context)
If the node has a
jsfid attribute, and its value is
"ignore", child elements will be rendered as comment/verbatim
content. |
public boolean execute(org.apache.commons.chain.Context context) throws Exception
If the node has a jsfid
attribute, and its value is
"ignore", child elements will be rendered as comment/verbatim
content. The enclosing tag will not be rendered in the document,
only it's children. If the jsfid
is "void",
the element will not be rendered but its children will
keep their original characteristics.
All "jsp:" nodes are assigned to the clay void directive except the
"jsp:include" and "jsp:directive.include". These are converted into a
nested clay component. Nodes with a jsp prefix must be in the
"http://java.sun.com/JSP/Page" namespace to be eligible for this
processing.
execute
in interface org.apache.commons.chain.Command
context
- commons chainstrue
if the command ends the chainException
- pushes an exception back to the invoking CommandCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.