站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

TemplateBuilder - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.format.template
Class TemplateBuilder

java.lang.Object
  extended byorg.jboss.portal.format.template.TemplateBuilder

public class TemplateBuilder
extends java.lang.Object

Author:
Julien Viet

Field Summary
private  javassist.CtClass cc
           
static int classNameCounter
           
private static java.lang.String CONTEXT
           
private  int index
           
private static java.lang.String ITERATOR
           
private  org.apache.log4j.Logger log
           
private  org.dom4j.Element node
           
private  javassist.ClassPool pool
           
private  java.util.Set propertyNames
           
 
Constructor Summary
TemplateBuilder(javassist.ClassPool pool, org.dom4j.Document doc, java.util.Set names)
           
TemplateBuilder(javassist.ClassPool pool, org.dom4j.Element node, java.util.Set names)
           
TemplateBuilder(org.dom4j.Document doc, java.util.Set propertyNames)
           
TemplateBuilder(org.dom4j.Element node, java.util.Set propertyNames)
           
 
Method Summary
private  void addConstructor()
           
 void build()
           
private  void generateRender(java.util.LinkedList stack, java.lang.StringBuffer buffer, java.lang.String indent, org.dom4j.Element node)
           
 javassist.CtClass getGeneratedClass()
           
private  void implementRender()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT

private static final java.lang.String CONTEXT

ITERATOR

private static final java.lang.String ITERATOR

pool

private final javassist.ClassPool pool

node

private final org.dom4j.Element node

index

private final int index

log

private final org.apache.log4j.Logger log

propertyNames

private final java.util.Set propertyNames

cc

private javassist.CtClass cc

classNameCounter

public static int classNameCounter
Constructor Detail

TemplateBuilder

public TemplateBuilder(org.dom4j.Document doc,
                       java.util.Set propertyNames)

TemplateBuilder

public TemplateBuilder(org.dom4j.Element node,
                       java.util.Set propertyNames)

TemplateBuilder

public TemplateBuilder(javassist.ClassPool pool,
                       org.dom4j.Document doc,
                       java.util.Set names)

TemplateBuilder

public TemplateBuilder(javassist.ClassPool pool,
                       org.dom4j.Element node,
                       java.util.Set names)
Method Detail

getGeneratedClass

public javassist.CtClass getGeneratedClass()

build

public void build()
           throws BuildException
Throws:
BuildException

addConstructor

private void addConstructor()
                     throws javassist.CannotCompileException,
                            javassist.NotFoundException
Throws:
javassist.CannotCompileException
javassist.NotFoundException

implementRender

private void implementRender()
                      throws javassist.CannotCompileException,
                             javassist.NotFoundException
Throws:
javassist.CannotCompileException
javassist.NotFoundException

generateRender

private void generateRender(java.util.LinkedList stack,
                            java.lang.StringBuffer buffer,
                            java.lang.String indent,
                            org.dom4j.Element node)