Package org.jvnet.basicjaxb.plugin
Class AbstractPlugin
java.lang.Object
com.sun.tools.xjc.Plugin
org.jvnet.basicjaxb.plugin.AbstractPlugin
- Direct Known Subclasses:
AbstractParameterizablePlugin
public abstract class AbstractPlugin
extends com.sun.tools.xjc.Plugin
An abstract XJC plugin to add or modify the XJC outline. An outline captures
which code is generated for which model component. A
Model is a
schema language neutral representation of the result of a schema parsing. XJC
uses this model to turn this into a series of Java source code.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterRun(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.Options options) protected voidbeforeRun(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.Options options) protected org.slf4j.Loggerprotected voidinit(com.sun.tools.xjc.Options options) booleanisCustomizationTagName(String namespaceURI, String localName) voidonActivated(com.sun.tools.xjc.Options options) protected booleanrun(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.Options options) booleanrun(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.Options options, ErrorHandler errorHandler) Methods inherited from class com.sun.tools.xjc.Plugin
getOptionName, getUsage, parseArgument, postProcessModel
-
Constructor Details
-
AbstractPlugin
public AbstractPlugin()
-
-
Method Details
-
getLogger
protected org.slf4j.Logger getLogger() -
onActivated
public void onActivated(com.sun.tools.xjc.Options options) throws com.sun.tools.xjc.BadCommandLineException - Overrides:
onActivatedin classcom.sun.tools.xjc.Plugin- Throws:
com.sun.tools.xjc.BadCommandLineException
-
run
public boolean run(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.Options options, ErrorHandler errorHandler) throws SAXException - Specified by:
runin classcom.sun.tools.xjc.Plugin- Throws:
SAXException
-
beforeRun
protected void beforeRun(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.Options options) throws Exception - Throws:
Exception
-
run
protected boolean run(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.Options options) throws Exception - Throws:
Exception
-
afterRun
protected void afterRun(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.Options options) throws Exception - Throws:
Exception
-
init
- Throws:
Exception
-
getCustomizationElementNames
-
getCustomizationURIs
- Overrides:
getCustomizationURIsin classcom.sun.tools.xjc.Plugin
-
isCustomizationTagName
- Overrides:
isCustomizationTagNamein classcom.sun.tools.xjc.Plugin
-