org.apache.shale.clay.parser.builder
Class MorphBuilder

java.lang.Object
  extended by org.apache.shale.clay.parser.builder.Builder
      extended by org.apache.shale.clay.parser.builder.MorphBuilder

public class MorphBuilder
extends Builder

This Builder is mapped to the HTML span tag and will morph into any clay component defined by the jsfid attribute in the HTML element. For most of the builder there is an assumed mapping between the source and target but the HTML span can be mapped to any clay meta component graph. The SpanBuilderRule handle the association of the HTML node with this class.


Field Summary
 
Fields inherited from class org.apache.shale.clay.parser.builder.Builder
messages
 
Constructor Summary
MorphBuilder()
           
 
Method Summary
protected  String getComponentType(Node node)
           Returns a bogus componentType that is overridden by the mapped component using the jsfid as an HTML attribute.
protected  String getJsfid(Node node)
           Returns the jsfid the ElementBean will take.
 boolean isChildrenAllowed()
           Returns true indicating that the JSF component mapped to this html span tag can have children.
 
Methods inherited from class org.apache.shale.clay.parser.builder.Builder
assignAttributes, assignNode, createAttribute, createElement, encode, encodeBegin, encodeChildren, encodeEnd, getBuilder, getBuildNodeBody, getRenderId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MorphBuilder

public MorphBuilder()
Method Detail

getJsfid

protected String getJsfid(Node node)

Returns the jsfid the ElementBean will take.

Specified by:
getJsfid in class Builder
Parameters:
node - markup
Returns:
jsfid

getComponentType

protected String getComponentType(Node node)

Returns a bogus componentType that is overridden by the mapped component using the jsfid as an HTML attribute.

Specified by:
getComponentType in class Builder
Parameters:
node - markup
Returns:
component type

isChildrenAllowed

public boolean isChildrenAllowed()

Returns true indicating that the JSF component mapped to this html span tag can have children.

Overrides:
isChildrenAllowed in class Builder
Returns:
true


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.