org.apache.cocoon.optional.pipeline.components.sax.jaxb
Class JAXBGenerator

java.lang.Object
  extended by org.apache.cocoon.pipeline.component.AbstractPipelineComponent
      extended by org.apache.cocoon.sax.AbstractSAXPipelineComponent
          extended by org.apache.cocoon.sax.AbstractSAXProducer
              extended by org.apache.cocoon.sax.AbstractSAXGenerator
                  extended by org.apache.cocoon.optional.pipeline.components.sax.jaxb.JAXBGenerator
All Implemented Interfaces:
CachingPipelineComponent, PipelineComponent, Producer, Starter, SAXPipelineComponent, SAXProducer

public class JAXBGenerator
extends AbstractSAXGenerator
implements CachingPipelineComponent

SAX generator that produces SAX events from Object using the JAXB marshaller.


Constructor Summary
JAXBGenerator(GenericType<?> toBeMarshalled)
           
 
Method Summary
 CacheKey constructCacheKey()
           
 void execute()
           
 String getCharset()
           
 boolean isFormattedOutput()
           
 void setCharset(String charset)
           
 void setFormattedOutput(boolean formattedOutput)
           
 String toString()
           
 
Methods inherited from class org.apache.cocoon.sax.AbstractSAXProducer
getSAXConsumer, setConsumer, setSAXConsumer
 
Methods inherited from class org.apache.cocoon.pipeline.component.AbstractPipelineComponent
finish, setConfiguration, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.pipeline.component.PipelineComponent
finish, setConfiguration, setup
 

Constructor Detail

JAXBGenerator

public JAXBGenerator(GenericType<?> toBeMarshalled)
Method Detail

getCharset

public String getCharset()

setCharset

public void setCharset(String charset)

isFormattedOutput

public boolean isFormattedOutput()

setFormattedOutput

public void setFormattedOutput(boolean formattedOutput)

execute

public void execute()
Specified by:
execute in interface Starter

constructCacheKey

public CacheKey constructCacheKey()
Specified by:
constructCacheKey in interface CachingPipelineComponent

toString

public String toString()
Overrides:
toString in class AbstractSAXProducer


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.