|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shale.clay.parser.builder.Builder
org.apache.shale.clay.parser.builder.VerbatimBuilder
public class VerbatimBuilder
This is the default Builder that will create a ElementBean
having characteristics like the JSP verbatim tag. All html elements that are
not mapped to a specific Builder will be handled by the
DefaultBuilderRule.
| Field Summary |
|---|
| Fields inherited from class org.apache.shale.clay.parser.builder.Builder |
|---|
messages |
| Constructor Summary | |
|---|---|
VerbatimBuilder()
|
|
| Method Summary | |
|---|---|
protected void |
assignAttributes(Node node,
ComponentBean target)
Skip the processing of attributes for a verbatim node. |
protected void |
encodeBegin(Node node,
ElementBean target,
ComponentBean root)
Calls to the super implementation to populate the target ElementBean and then sets the value attribute to the raw text of
the html node. |
protected void |
encodeEnd(Node node,
ElementBean target,
ComponentBean root)
If the html node is well-formed, the create a ending html tag using another verbatim ElementBean. |
protected String |
getComponentType(Node node)
Returns a JSF component type of javax.faces.HtmlOutputText. |
protected String |
getJsfid(Node node)
Returns the jsfid for the target ElementBean. |
| Methods inherited from class org.apache.shale.clay.parser.builder.Builder |
|---|
assignNode, createAttribute, createElement, encode, encodeChildren, getBuilder, getBuildNodeBody, getRenderId, isChildrenAllowed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VerbatimBuilder()
| Method Detail |
|---|
protected String getJsfid(Node node)
Returns the jsfid for the target ElementBean.
getJsfid in class Buildernode - markup
protected void encodeBegin(Node node,
ElementBean target,
ComponentBean root)
Calls to the super implementation to populate the target
ElementBean and then sets the value attribute to the raw text of
the html node. Set the escape attribute to
false so that the special html characters will not be
excaped
encodeBegin in class Buildernode - markuptarget - childroot - parentprotected String getComponentType(Node node)
Returns a JSF component type of javax.faces.HtmlOutputText.
getComponentType in class Buildernode - markup
protected void encodeEnd(Node node,
ElementBean target,
ComponentBean root)
If the html node is well-formed, the create a ending html tag using
another verbatim ElementBean.
Set the escape attribute to false so that
the special html characters will not be escaped
encodeEnd in class Buildernode - markuptarget - childroot - parent
protected void assignAttributes(Node node,
ComponentBean target)
Skip the processing of attributes for a verbatim node. This
was a bug uncovered with JSF RI 1.2. The TextRenderer
is sensitive to pass thru attributes. If it finds a pass thru
attribute, it wraps the text in a HTML span tag.
assignAttributes in class Buildernode - markup nodetarget - config bean built for the markup node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||