public class IgnoreBuilder extends CommentBuilder
This Builder is designed to ignore processing on a
block of HTML. If the jsfid attribute of the HTML node is
"ignore", all of the child nodes under the marked nodes are
excluded from further processing. The are treated like a
verbatim block. The outer node is removed from the output.
| Constructor and Description |
|---|
IgnoreBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
captureComment(Node node,
StringBuffer commentBody)
|
protected void |
encodeBegin(Node node,
ElementBean target,
ComponentBean root)
Builds a outputText component.
|
protected String |
getJsfid(Node node)
Returns the
jsfid for the target ElementBean. |
encodeEnd, getBuildNodeBodyassignAttributes, getComponentTypeassignNode, createAttribute, createElement, encode, encodeChildren, getBuilder, getRenderId, isChildrenAllowedprotected String getJsfid(Node node)
Returns the jsfid for the target ElementBean.
getJsfid in class VerbatimBuildernode - markupprotected void encodeBegin(Node node, ElementBean target, ComponentBean root)
Builds a outputText component. The attribute value is the content of the
child nodes. The root HTML Node is not included in the content
of the target ElementBean node.
encodeBegin in class CommentBuildernode - markuptarget - child config beanroot - parent config beanprotected void captureComment(Node node, StringBuffer commentBody)
Recursively traverses the children of the HTML
Node concatenating
the raw text of each Token
into the commentBody. Ending nodes are not kept
with the parser. If a start node is found that is not self
terminated, a matching ending node is created.
captureComment in class CommentBuildernode - markupcommentBody - concatenated raw text of all the childrenCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.