uk.org.retep.util.xml.jaxb.plugin
Class AbstractInjectionPlugin

java.lang.Object
  extended by com.sun.tools.xjc.Plugin
      extended by uk.org.retep.util.xml.jaxb.AbstractPlugin
          extended by uk.org.retep.util.xml.jaxb.plugin.AbstractInjectionPlugin
Direct Known Subclasses:
ImplementsPlugin, PackageDocPlugin

public abstract class AbstractInjectionPlugin
extends AbstractPlugin

Base JAXB Plugin for injecting code into the generated source.

Since:
9.2
Author:
peter
See Also:
http://weblogs.java.net/blog/kohsuke/archive/2005/06/writing_a_plugi.html, http://weblogs.java.net/blog/kohsuke/archive/2007/01/using_maven_jax.html, https://jaxb2-sources.dev.java.net/source/browse/jaxb2-sources/jaxb-ri/xjc/src/com/sun/tools/xjc/addon/at_generated/PluginImpl.java?only_with_tag=HEAD&view=markup

Constructor Summary
AbstractInjectionPlugin()
           
 
Method Summary
protected abstract  void customise(com.sun.tools.xjc.outline.Outline model, com.sun.tools.xjc.Options opt, ErrorHandler errorHandler, com.sun.tools.xjc.outline.ClassOutline co, com.sun.tools.xjc.model.CPluginCustomization c)
           
protected  String getNameSpace()
          The nameSpace for the plugin.
 boolean run(com.sun.tools.xjc.outline.Outline model, com.sun.tools.xjc.Options opt, ErrorHandler errorHandler)
           
 
Methods inherited from class uk.org.retep.util.xml.jaxb.AbstractPlugin
getCustomizationURIs, getElementText, getLocalName, getOptionName, getUsage, isCustomizationTagName
 
Methods inherited from class com.sun.tools.xjc.Plugin
onActivated, parseArgument, postProcessModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInjectionPlugin

public AbstractInjectionPlugin()
Method Detail

getNameSpace

protected String getNameSpace()
The nameSpace for the plugin. The default is RetepPluginLibrary.NS

Specified by:
getNameSpace in class AbstractPlugin
Returns:
See Also:
RetepPluginLibrary.NS

run

public boolean run(com.sun.tools.xjc.outline.Outline model,
                   com.sun.tools.xjc.Options opt,
                   ErrorHandler errorHandler)
            throws SAXException
Specified by:
run in class com.sun.tools.xjc.Plugin
Throws:
SAXException

customise

protected abstract void customise(com.sun.tools.xjc.outline.Outline model,
                                  com.sun.tools.xjc.Options opt,
                                  ErrorHandler errorHandler,
                                  com.sun.tools.xjc.outline.ClassOutline co,
                                  com.sun.tools.xjc.model.CPluginCustomization c)
                           throws SAXException
Throws:
SAXException


Copyright © 1998-2009 Retep Development Group. All Rights Reserved.