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

TemplateParser - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.format.template
Class TemplateParser

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

public final class TemplateParser
extends java.lang.Object

Author:
Julien Viet

Field Summary
private  TemplateAnalyzerTokenManager analyzer
           
private  org.dom4j.Element current
           
private  java.io.Reader source
           
private  java.util.LinkedList stack
           
private  org.dom4j.Document template
           
private  java.lang.StringBuffer text
           
 
Constructor Summary
TemplateParser(java.io.File source)
           
TemplateParser(java.io.Reader source)
           
TemplateParser(java.lang.String source)
           
 
Method Summary
 void close()
           
 org.dom4j.Document parse()
          This method should be called only once.
private  void pop()
           
private  void push(org.dom4j.Element node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

private java.io.Reader source

analyzer

private TemplateAnalyzerTokenManager analyzer

stack

private java.util.LinkedList stack

template

private org.dom4j.Document template

current

private org.dom4j.Element current

text

private java.lang.StringBuffer text
Constructor Detail

TemplateParser

public TemplateParser(java.io.File source)
               throws java.io.FileNotFoundException

TemplateParser

public TemplateParser(java.lang.String source)

TemplateParser

public TemplateParser(java.io.Reader source)
Method Detail

parse

public org.dom4j.Document parse()
                         throws ParseException
This method should be called only once. If it is called more than once there are no garanty on the result.

Throws:
ParseException

close

public void close()

push

private void push(org.dom4j.Element node)

pop

private void pop()