org.sonatype.sisu.jacksbee
Class CodeInsertPlugin

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.sonatype.sisu.jacksbee.CodeInsertPlugin

public class CodeInsertPlugin
extends org.jvnet.jaxb2_commons.plugin.AbstractParameterizablePlugin

Allows arbitrary code to be inserted into generated types.

Since:
1.0

Field Summary
static String CODE
           
static String IMPORT
           
static String NS
           
 
Fields inherited from class org.jvnet.jaxb2_commons.plugin.AbstractPlugin
logger
 
Constructor Summary
CodeInsertPlugin()
           
 
Method Summary
 Collection<QName> getCustomizationElementNames()
           
 String getOptionName()
           
 String getUsage()
           
protected  boolean run(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.Options options)
           
 
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
postProcessModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NS

public static final String NS
See Also:
Constant Field Values

CODE

public static final String CODE
See Also:
Constant Field Values

IMPORT

public static final String IMPORT
See Also:
Constant Field Values
Constructor Detail

CodeInsertPlugin

public CodeInsertPlugin()
Method Detail

getOptionName

public String getOptionName()
Specified by:
getOptionName in class com.sun.tools.xjc.Plugin

getUsage

public String getUsage()
Specified by:
getUsage in class com.sun.tools.xjc.Plugin

getCustomizationElementNames

public Collection<QName> getCustomizationElementNames()
Overrides:
getCustomizationElementNames in class org.jvnet.jaxb2_commons.plugin.AbstractPlugin

run

protected boolean run(com.sun.tools.xjc.outline.Outline outline,
                      com.sun.tools.xjc.Options options)
               throws Exception
Overrides:
run in class org.jvnet.jaxb2_commons.plugin.AbstractPlugin
Throws:
Exception


Copyright © 2008-2012 Sonatype, Inc.. All Rights Reserved.