Package | Description |
---|---|
org.apache.shale.clay.config | |
org.apache.shale.clay.parser | |
org.apache.shale.clay.parser.builder | |
org.apache.shale.clay.parser.builder.chain |
Modifier and Type | Method and Description |
---|---|
Builder |
ClayTemplateParser.getBuilder(Node node)
Returns the
Builder that
is assigned the task of converting the html node to a corresponding component
metadata used to construct a JSF resource. |
Modifier and Type | Method and Description |
---|---|
protected Node |
Parser.buildNode(Token token)
|
protected Node |
Parser.findBeginingNode(Node current,
Node node) |
Node |
Node.getParent()
Returns the parent of the node or
null if the node
is a top-level/root node. |
Modifier and Type | Method and Description |
---|---|
void |
Node.addChild(Node child)
Adds a child node to the
children collection. |
protected void |
Parser.discoverNodeAttributes(Node node)
If the
Node is a starting tag and not a comment,
use the AttributeTokenizer to realize the node attributes. |
protected void |
Parser.discoverNodeName(Node node)
|
protected void |
Parser.discoverNodeOverrides(Node node)
|
protected void |
Parser.discoverNodeShape(Node node)
Determine if the
Node is a starting, ending, or body text
tag. |
protected Node |
Parser.findBeginingNode(Node current,
Node node) |
protected boolean |
Parser.isNodeNameEqual(Node node1,
Node node2)
Compares two
Node instances by name . |
void |
Node.setParent(Node parent)
Sets the parent node.
|
Modifier and Type | Method and Description |
---|---|
protected void |
JsfDefaultBuilder.addActionListener(Node node,
ElementBean target) |
protected void |
ElementBuilder.addActionListener(Node node,
ElementBean target)
|
protected void |
JsfDefaultBuilder.addAttribute(Node node,
ElementBean target)
Adds markup <f:attribute> to the
target
ElementBean . |
protected void |
ElementBuilder.addAttributes(Node attributesNode,
ComponentBean target)
Looks for <set/> nodes within a <attributes> node and
converting them to
AttributeBean 's
on the target ComponentBean . |
protected void |
JsfDefaultBuilder.addConverter(Node node,
ElementBean target) |
protected void |
ElementBuilder.addConverter(Node node,
ElementBean target)
|
protected void |
JsfDefaultBuilder.addFacet(Node node,
ElementBean target)
Adds markup <f:facet> to the
target 's
child ElementBean . |
protected void |
JsfDefaultBuilder.addSymbol(Node node,
ElementBean target)
Adds markup <clay:symbol> to the
target
ElementBean . |
protected void |
ElementBuilder.addSymbols(Node symbolsNode,
ElementBean target)
|
protected void |
JsfDefaultBuilder.addValidator(Node node,
ElementBean target) |
protected void |
ElementBuilder.addValidator(Node node,
ElementBean target)
|
protected void |
JsfDefaultBuilder.addValidatorVar(Node attributesNode,
ComponentBean target)
Looks for <s:validatorVar/> nodes within a <s:commonsValidator> node and
converting them to
AttributeBean 's
on the target ComponentBean . |
protected void |
JsfDefaultBuilder.addValueChangeListener(Node node,
ElementBean target) |
protected void |
ElementBuilder.addValueChangeListener(Node node,
ElementBean target)
|
protected void |
Builder.assignAttributes(Node node,
ComponentBean target)
This method applies the HTML attribute overrides to the declarative
component, an object representation of the XML configuration.
|
protected void |
VerbatimBuilder.assignAttributes(Node node,
ComponentBean target)
Skip the processing of attributes for a verbatim node.
|
protected void |
Builder.assignNode(Node node,
ElementBean target)
This method resolves the
jsfid attribute for an HTML
element to a component definition in the XML configuration files. |
protected void |
ElementBuilder.assignNode(Node node,
ElementBean target)
This method resolves the
jsfid attribute for an HTML
element to a component definition in the XML configuration files. |
protected void |
CommentBuilder.captureComment(Node node,
StringBuffer commentBody)
|
protected void |
IgnoreBuilder.captureComment(Node node,
StringBuffer commentBody)
|
ElementBean |
Builder.createElement(Node node)
Factory method that creates a
ElementBean from a Node . |
ElementBean |
JsfDefaultBuilder.createElement(Node node)
Factory method that creates a
ElementBean from a Node . |
ElementBean |
ElementBuilder.createElement(Node node)
This method is overridden to look for a
renderId
attribute in the Node . |
void |
Builder.encode(Node node,
ElementBean target,
ComponentBean root)
The call that begins the conversion of a
Node to a
ComponentBean . |
protected void |
Builder.encodeBegin(Node node,
ElementBean target,
ComponentBean root)
Called to being building a
ElementBean from a Node . |
protected void |
SelectManyMenuBuilder.encodeBegin(Node node,
ElementBean target,
ComponentBean root)
Remove any child nodes that are not "option" nodes.
|
protected void |
CommentBuilder.encodeBegin(Node node,
ElementBean target,
ComponentBean root)
The super implementation is invoked to build a target
ElementBean . |
protected void |
VerbatimBuilder.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 |
JsfDefaultBuilder.encodeBegin(Node node,
ElementBean target,
ComponentBean root)
|
protected void |
ElementBuilder.encodeBegin(Node node,
ElementBean target,
ComponentBean root)
Handles converting markup resembling the <element> node
in the clay DTD, http://shale.apache.org/dtds/clay-config_1_0.dtd,
to the target
ElementBean . |
protected void |
SelectItemBuilder.encodeBegin(Node node,
ElementBean target,
ComponentBean root)
The default for a single option is to look at the next html node to find
the label.
|
protected void |
SelectOneMenuBuilder.encodeBegin(Node node,
ElementBean target,
ComponentBean root)
Remove any child nodes that are not "option" nodes.
|
protected void |
OutputLinkBuilder.encodeBegin(Node node,
ElementBean target,
ComponentBean root)
Calls super to populate the
target config bean with the
html node 's values. |
protected void |
IgnoreBuilder.encodeBegin(Node node,
ElementBean target,
ComponentBean root)
Builds a outputText component.
|
protected void |
JspIncludeDirectiveBuilder.encodeBegin(Node node,
ElementBean target,
ComponentBean root)
Calls super to populate the
target config bean with the
html node 's values. |
protected void |
Builder.encodeChildren(Node node,
ElementBean target,
ComponentBean root)
Recursively builds the clay meta component data from the parse
document of
Node 's. |
protected void |
Builder.encodeEnd(Node node,
ElementBean target,
ComponentBean root)
This call is invoked for any final processing.
|
protected void |
CommentBuilder.encodeEnd(Node node,
ElementBean target,
ComponentBean root)
This override cancels the super implementation.
|
protected void |
VerbatimBuilder.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 void |
InputTextBuilder.encodeEnd(Node node,
ElementBean target,
ComponentBean root)
The default for this builder is that builder will handle the children
html nodes meaning that the default should be
true . |
Builder |
Builder.getBuilder(Node node)
Returns the
Builder that
is assigned the task of converting the html node to a corresponding component
metadata used to construct a JSF resource. |
Builder |
JsfDefaultBuilder.getBuilder(Node node)
Returns the
Builder that
is assigned the task of converting the html node to a corresponding component
metadata used to construct a JSF resource. |
protected boolean |
SelectItemsBuilder.getBuildNodeBody(Node node,
ElementBean target)
Returns
true by default meaning that the
parent will render children. |
protected boolean |
Builder.getBuildNodeBody(Node node,
ElementBean target)
Returns
true if the builder handles converting the node's
children or false if it's handled by the parent. |
protected boolean |
CommentBuilder.getBuildNodeBody(Node node,
ElementBean target)
|
protected boolean |
SelectItemBuilder.getBuildNodeBody(Node node,
ElementBean target)
Returns
true by default meaning that the
parent will render children. |
protected boolean |
JspIncludeDirectiveBuilder.getBuildNodeBody(Node node,
ElementBean target)
This builder handles converting the
nodes 's children. |
protected String |
SelectItemsBuilder.getComponentType(Node node)
Returns the JSF component type
javax.faces.SelectItems
that will be set to the target ElementBean and used to create
options for a collection. |
protected abstract String |
Builder.getComponentType(Node node)
Returns the faces component type registered in the faces configuration or the
fully qualified class name for
ActionListeners and
ValueChangeListeners . |
protected String |
FormBuilder.getComponentType(Node node)
Returns the JSF componentType of
javax.faces.HtmlForm to
populate the ElementBean . |
protected String |
SelectManyMenuBuilder.getComponentType(Node node)
Returns the JSF component type of
javax.faces.HtmlSelectManyMenu that will populate the
target ElementBean . |
protected String |
VerbatimBuilder.getComponentType(Node node)
Returns a JSF component type of
javax.faces.HtmlOutputText . |
protected String |
ElementBuilder.getComponentType(Node node)
Returns the
componentType from the target HTML
Node . |
protected String |
SelectOneRadioBuilder.getComponentType(Node node)
Returns a JSF component type of
javax.faces.HtmlSelectOneRadio . |
protected String |
CommandButtonBuilder.getComponentType(Node node)
The JSF componentType that is registered in the faces configuration giving a
logical name to a JSF
javax.faces.HtmlCommandButton
component. |
protected String |
SelectItemBuilder.getComponentType(Node node)
Returns the JSF component type of
javax.faces.SelectItem
that will populate a ElementBean and create an html option. |
protected String |
MorphBuilder.getComponentType(Node node)
Returns a bogus componentType that is overridden by the mapped component
using the
jsfid as an HTML attribute. |
protected String |
SelectOneMenuBuilder.getComponentType(Node node)
Returns a JSF component type of
javax.faces.HtmlSelectOneMenu that will populate the
target ElementBean . |
protected String |
SelectBooleanCheckboxBuilder.getComponentType(Node node)
Returns the JSF component type of
javax.faces.HtmlSelectBooleanCheckbox that will create a
checkbox component. |
protected String |
VoidBuilder.getComponentType(Node node)
Returns a JSF component type of
javax.faces.HtmlOutputText . |
protected String |
OutputLinkBuilder.getComponentType(Node node)
Returns a JSF component type of
javax.faces.HtmlOutputLink . |
protected String |
InputTextBuilder.getComponentType(Node node)
Returns the JSF componentType of
javax.faces.HtmlInputTextarea used to define the
ElementBean from the HTML Node . |
protected String |
OutputLabelBuilder.getComponentType(Node node)
Returns the JSF component type of
javax.faces.HtmlOutputLabel that will populate the
ElementBean being created. |
protected String |
InputTextareaBuilder.getComponentType(Node node)
Returns the JSF componentType of
javax.faces.HtmlInputTextarea used to define the
ElementBean from the HTML Node . |
protected String |
JspIncludeDirectiveBuilder.getComponentType(Node node)
Returns the JSF component type of
org.apache.shale.clay.component.Clay that will populate the
componentType property of the ElementBean being created. |
protected String |
SelectItemsBuilder.getJsfid(Node node)
Returns a
jsfid used to populate the target
ElementBean . |
protected abstract String |
Builder.getJsfid(Node node)
Returns a
jsfid for the component. |
protected String |
FormBuilder.getJsfid(Node node)
Returns the
jsfid for the
ElementBean . |
protected String |
SelectManyMenuBuilder.getJsfid(Node node)
Returns the
jsfid for the target
ElementBean . |
protected String |
VerbatimBuilder.getJsfid(Node node)
Returns the
jsfid for the target ElementBean . |
protected String |
JsfDefaultBuilder.getJsfid(Node node)
|
protected String |
ElementBuilder.getJsfid(Node node)
Returns the
jsfid from the target HTML
Node . |
protected String |
SelectOneRadioBuilder.getJsfid(Node node)
Returns a
jsfid that will populate the target
ElementBean . |
protected String |
CommandButtonBuilder.getJsfid(Node node)
Returns the
jsfid assigned to the ElementBean . |
protected String |
SelectItemBuilder.getJsfid(Node node)
Returns a
jsfid that will be set on the
target ElementBean . |
protected String |
MorphBuilder.getJsfid(Node node)
Returns the
jsfid the
ElementBean will take. |
protected String |
SelectOneMenuBuilder.getJsfid(Node node)
Returns the
jsfid that will populate the target
ElementBean . |
protected String |
SelectBooleanCheckboxBuilder.getJsfid(Node node)
Returns a
jsfid for the ElementBean . |
protected String |
VoidBuilder.getJsfid(Node node)
Returns the
jsfid for the target ElementBean . |
protected String |
OutputLinkBuilder.getJsfid(Node node)
Returns a
jsfid that will populate the target
ElementBean . |
protected String |
InputTextBuilder.getJsfid(Node node)
Returns the
jsfid used to populate the ElementBean . |
protected String |
OutputLabelBuilder.getJsfid(Node node)
Returns the
jsfid associated with the ElementBean
being build. |
protected String |
IgnoreBuilder.getJsfid(Node node)
Returns the
jsfid for the target ElementBean . |
protected String |
InputTextareaBuilder.getJsfid(Node node)
Returns the
jsfid used to populate the ElementBean . |
protected String |
JspIncludeDirectiveBuilder.getJsfid(Node node)
Returns the
jsfid associated with the ElementBean
being build. |
static Builder |
BuilderFactory.getRenderer(Node node)
Returns a
Builder mapped to a Node by executing chain
command Globals.FIND_BUILDER_COMMAND_NAME The
BuilderRuleContext is passed to the chain. |
protected boolean |
ElementBuilder.isNodeWhitespace(Node node)
Test the value of the node and returns
true if
the value is only whitespace. |
protected void |
ElementBuilder.realizeComponent(Node node,
ComponentBean target)
Realizes the inheritance of the
target
ComponentBean and
and then applies attributes that are optionally nested
under the node . |
Modifier and Type | Method and Description |
---|---|
Node |
BuilderRuleContext.getNode()
Returns the current html
Node . |
Modifier and Type | Method and Description |
---|---|
void |
BuilderRuleContext.setNode(Node node)
Sets the current html
Node . |
Copyright © 2004-2013 Apache Software Foundation. All Rights Reserved.