org.jvnet.jaxb2_commons.plugin.codegenerator
Class AbstractCodeGeneratorPlugin<A extends Arguments<A>>

java.lang.Object
  extended by com.sun.tools.xjc.Plugin
      extended by org.jvnet.jaxb2_commons.plugin.AbstractPlugin
          extended by org.jvnet.jaxb2_commons.plugin.AbstractParameterizablePlugin
              extended by org.jvnet.jaxb2_commons.plugin.codegenerator.AbstractCodeGeneratorPlugin<A>
Direct Known Subclasses:
SimpleEqualsPlugin, SimpleHashCodePlugin

public abstract class AbstractCodeGeneratorPlugin<A extends Arguments<A>>
extends AbstractParameterizablePlugin


Field Summary
 
Fields inherited from class org.jvnet.jaxb2_commons.plugin.AbstractPlugin
logger
 
Constructor Summary
AbstractCodeGeneratorPlugin()
           
 
Method Summary
protected abstract  CodeGenerator<A> createCodeGenerator(com.sun.codemodel.JCodeModel codeModel)
           
protected abstract  void generate(com.sun.tools.xjc.outline.ClassOutline classOutline, com.sun.codemodel.JDefinedClass theClass)
           
protected  CodeGenerator<A> getCodeGenerator()
           
 Collection<QName> getCustomizationElementNames()
           
 FieldAccessorFactory getFieldAccessorFactory()
           
 Ignoring getIgnoring()
           
protected abstract  QName getSpecialIgnoredElementName()
           
protected  void processClassOutline(com.sun.tools.xjc.outline.ClassOutline classOutline)
           
 boolean run(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.Options opt, ErrorHandler errorHandler)
           
 void setFieldAccessorFactory(FieldAccessorFactory fieldAccessorFactory)
           
 void setIgnoring(Ignoring ignoring)
           
 
Methods inherited from class org.jvnet.jaxb2_commons.plugin.AbstractParameterizablePlugin
parseArgument
 
Methods inherited from class org.jvnet.jaxb2_commons.plugin.AbstractPlugin
afterRun, beforeRun, getCustomizationURIs, init, isCustomizationTagName, onActivated, run
 
Methods inherited from class com.sun.tools.xjc.Plugin
getOptionName, getUsage, postProcessModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCodeGeneratorPlugin

public AbstractCodeGeneratorPlugin()
Method Detail

getFieldAccessorFactory

public FieldAccessorFactory getFieldAccessorFactory()

setFieldAccessorFactory

public void setFieldAccessorFactory(FieldAccessorFactory fieldAccessorFactory)

getSpecialIgnoredElementName

protected abstract QName getSpecialIgnoredElementName()

getIgnoring

public Ignoring getIgnoring()

setIgnoring

public void setIgnoring(Ignoring ignoring)

getCustomizationElementNames

public Collection<QName> getCustomizationElementNames()
Overrides:
getCustomizationElementNames in class AbstractPlugin

getCodeGenerator

protected CodeGenerator<A> getCodeGenerator()

createCodeGenerator

protected abstract CodeGenerator<A> createCodeGenerator(com.sun.codemodel.JCodeModel codeModel)

run

public boolean run(com.sun.tools.xjc.outline.Outline outline,
                   com.sun.tools.xjc.Options opt,
                   ErrorHandler errorHandler)
Overrides:
run in class AbstractPlugin

processClassOutline

protected void processClassOutline(com.sun.tools.xjc.outline.ClassOutline classOutline)

generate

protected abstract void generate(com.sun.tools.xjc.outline.ClassOutline classOutline,
                                 com.sun.codemodel.JDefinedClass theClass)


Copyright © 2005-2014. All Rights Reserved.