public class CommentBuilder extends VerbatimBuilder
| Constructor and Description |
|---|
CommentBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
captureComment(Node node,
StringBuffer commentBody)
|
protected void |
encodeBegin(Node node,
ElementBean target,
ComponentBean root)
The super implementation is invoked to build a target
ElementBean. |
protected void |
encodeEnd(Node node,
ElementBean target,
ComponentBean root)
This override cancels the super implementation.
|
protected boolean |
getBuildNodeBody(Node node,
ElementBean target)
|
assignAttributes, getComponentType, getJsfidassignNode, createAttribute, createElement, encode, encodeChildren, getBuilder, getRenderId, isChildrenAllowedprotected boolean getBuildNodeBody(Node node, ElementBean target)
This method is overridden to return a true value indicating
that this Builder will handle child nodes under the
associated HTML Node. This method can easily be confused
with the isChildrenAllowed() method of the super
class Builder. The distinction is that the
isChildrenAllowed() method signifies that the
associated JSF component supports children components. This method
signifies that this builder will handle building child nodes
similarly to the jsf component's getRendersChildren() method.
getBuildNodeBody in class Buildernode - markuptarget - child config beantrueprotected void encodeBegin(Node node, ElementBean target, ComponentBean root)
The super implementation is invoked to build a target
ElementBean.
The body of the comment is constructed by capturing the text
of all child HTML nodes within the comment body.
encodeBegin in class VerbatimBuildernode - 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.
node - markupcommentBody - concatenated child node's raw textprotected void encodeEnd(Node node, ElementBean target, ComponentBean root)
This override cancels the super implementation. The overridden method handles the ending comment tag, "-->".
encodeEnd in class VerbatimBuildernode - markuptarget - child config beanroot - parent config beanCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.