org.teatrove.tea.engine
Class TemplateSourceImpl.ErrorRetriever

java.lang.Object
  extended by org.teatrove.tea.engine.TemplateSourceImpl.ErrorRetriever
All Implemented Interfaces:
EventListener, ErrorListener, TemplateErrorListener
Enclosing class:
TemplateSourceImpl

protected class TemplateSourceImpl.ErrorRetriever
extends Object
implements TemplateErrorListener


Field Summary
protected  Map<String,List<TemplateError>> mTemplateErrors
           
 
Constructor Summary
protected TemplateSourceImpl.ErrorRetriever()
           
 
Method Summary
 void close()
          Close listener to dispose of any resources (i.e.
 void compileError(ErrorEvent event)
          This method is called for each error that occurs while compiling templates.
protected  TemplateError createTemplateError(String sourcePath, ErrorEvent event)
           
protected  void finalize()
           
 Map<String,List<TemplateError>> getTemplateErrors()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mTemplateErrors

protected Map<String,List<TemplateError>> mTemplateErrors
Constructor Detail

TemplateSourceImpl.ErrorRetriever

protected TemplateSourceImpl.ErrorRetriever()
Method Detail

getTemplateErrors

public Map<String,List<TemplateError>> getTemplateErrors()
Specified by:
getTemplateErrors in interface TemplateErrorListener

compileError

public void compileError(ErrorEvent event)
This method is called for each error that occurs while compiling templates. The error is reported in the log and in the error list.

Specified by:
compileError in interface ErrorListener

createTemplateError

protected TemplateError createTemplateError(String sourcePath,
                                            ErrorEvent event)

close

public void close()
Description copied from interface: TemplateErrorListener
Close listener to dispose of any resources (i.e. open files) that the error listener is hanging on to.

Specified by:
close in interface TemplateErrorListener

finalize

protected void finalize()
Overrides:
finalize in class Object


Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.