org.ajax4jsf.renderkit.compiler
Interface PreparedTemplate

All Known Implementing Classes:
AttributeElement, BreakPoint, ChildElement, ChildrensElement, ClassElement, ElementBase, FacetElement, IfElement, ImportResourceElement, MethodCallElement, MethodParameterElement, PlainElement, ResourceElement, RootElement, SelectorElement, TextElement, ValueMethodCallElement

public interface PreparedTemplate

Public interface for compiled XML rendered template. Renderer must simple call xml.encode(this,context,component); for produce ResponseWriter events.

Version:
$Revision: 1.1.2.1 $ $Date: 2007/01/09 18:57:49 $
Author:
asmirnov@exadel.com (latest modification by $Author: alexsmirnov $)

Method Summary
 void addChild(PreparedTemplate child)
          Append child element to current.
 void encode(RendererBase renderer, javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Encode this XML component.
 void encode(TemplateContext context)
           
 void encode(TemplateContext context, java.lang.String breakPoint)
           
 java.util.List getChildren()
           
 java.lang.String getTag()
           
 java.lang.Object getValue(TemplateContext context)
           
 void setParent(PreparedTemplate parent)
          Set parent element in compiled tree for template.
 

Method Detail

encode

void encode(RendererBase renderer,
            javax.faces.context.FacesContext context,
            javax.faces.component.UIComponent component)
            throws java.io.IOException
Encode this XML component. May be simple send element and attributes, call specified Renderer or RendererUtils method etc. Can encode children elements ( if exist ).

Parameters:
renderer -
context -
component -
Throws:
java.io.IOException

encode

void encode(TemplateContext context)
            throws java.io.IOException
Throws:
java.io.IOException

encode

void encode(TemplateContext context,
            java.lang.String breakPoint)
            throws java.io.IOException
Throws:
java.io.IOException

getChildren

java.util.List getChildren()
Returns:
List of childrens of this component.

addChild

void addChild(PreparedTemplate child)
              throws org.xml.sax.SAXException
Append child element to current.

Parameters:
child -
Throws:
org.xml.sax.SAXException

setParent

void setParent(PreparedTemplate parent)
               throws org.xml.sax.SAXException
Set parent element in compiled tree for template.

Parameters:
parent -
Throws:
org.xml.sax.SAXException

getTag

java.lang.String getTag()
Returns:
tag name for element.

getValue

java.lang.Object getValue(TemplateContext context)
Returns:
Returns the value. If is EL expression valueBinding - evaluate in.


Copyright © 2010. All Rights Reserved.