Class CodeInjectingPlugin


  • public class CodeInjectingPlugin
    extends org.jvnet.jaxb2_commons.plugin.AbstractParameterizablePlugin
    This class injects code into NeuroML classes while they're being generated. Its used as a plugin for the xjc ant task. This class is based on an example given here.
    Author:
    mschachter
    • Field Summary

      • Fields inherited from class org.jvnet.jaxb2_commons.plugin.AbstractPlugin

        logger
    • Constructor Detail

      • CodeInjectingPlugin

        public CodeInjectingPlugin()
    • 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
      • run

        public boolean run​(com.sun.tools.xjc.outline.Outline model,
                           com.sun.tools.xjc.Options opt,
                           ErrorHandler errorHandler)
        Overrides:
        run in class org.jvnet.jaxb2_commons.plugin.AbstractPlugin