org.apache.cocoon.template
Class TemplateConsumer

java.lang.Object
  extended byorg.apache.cocoon.template.script.Parser
      extended byorg.apache.cocoon.template.TemplateConsumer
All Implemented Interfaces:
ContentHandler, LexicalHandler, org.apache.cocoon.xml.XMLConsumer, XMLConsumer

public class TemplateConsumer
extends Parser
implements org.apache.cocoon.xml.XMLConsumer


Field Summary
 
Fields inherited from class org.apache.cocoon.template.script.Parser
NULL_LOCATOR, parsingContext
 
Constructor Summary
TemplateConsumer()
           
 
Method Summary
 void endDocument()
           
 JXTemplateGenerator getGenerator()
           
 InstructionFactory getInstructionFactory()
           
 org.apache.cocoon.el.parsing.StringTemplateParser getStringTemplateParser()
           
 void initialize()
           
 void setGenerator(JXTemplateGenerator generator)
           
 void setInstructionFactory(InstructionFactory instructionFactory)
           
 void setStringTemplateParser(org.apache.cocoon.el.parsing.StringTemplateParser stringTemplateParser)
           
 void setup(org.apache.cocoon.environment.SourceResolver resolver, Map objectModel, String src, Parameters parameters)
           
 
Methods inherited from class org.apache.cocoon.template.script.Parser
characters, comment, endCDATA, endDTD, endElement, endEntity, endPrefixMapping, getStartEvent, ignorableWhitespace, processingInstruction, recycle, setDocumentLocator, setParsingContext, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 
Methods inherited from interface org.xml.sax.ext.LexicalHandler
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
 

Constructor Detail

TemplateConsumer

public TemplateConsumer()
Method Detail

getGenerator

public JXTemplateGenerator getGenerator()

setGenerator

public void setGenerator(JXTemplateGenerator generator)

getStringTemplateParser

public org.apache.cocoon.el.parsing.StringTemplateParser getStringTemplateParser()

setStringTemplateParser

public void setStringTemplateParser(org.apache.cocoon.el.parsing.StringTemplateParser stringTemplateParser)

getInstructionFactory

public InstructionFactory getInstructionFactory()

setInstructionFactory

public void setInstructionFactory(InstructionFactory instructionFactory)

initialize

public void initialize()

setup

public void setup(org.apache.cocoon.environment.SourceResolver resolver,
                  Map objectModel,
                  String src,
                  Parameters parameters)
           throws org.apache.cocoon.ProcessingException,
                  SAXException,
                  IOException
Throws:
org.apache.cocoon.ProcessingException
SAXException
IOException

endDocument

public void endDocument()
                 throws SAXException
Specified by:
endDocument in interface ContentHandler
Overrides:
endDocument in class Parser
Throws:
SAXException


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.