public abstract class AbstractConfigurablePlugin
extends org.jvnet.jaxb2_commons.plugin.AbstractParameterizablePlugin
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMONS_LOGGING_LOG_LEVEL_PROPERTY_KEY |
protected GlobalConfiguration |
globalConfiguration |
| Constructor and Description |
|---|
AbstractConfigurablePlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected static <T extends CommonConfiguration> |
applyConfigurationFromCustomizations(CommonConfiguration configuration,
com.sun.tools.xjc.model.CCustomizations customizations,
boolean cloneClassConfiguration)
Clone given configuration and apply settings from global/class/field JAXB customization.
|
Collection<QName> |
getCustomizationElementNames() |
String |
getOptionName() |
String |
getUsage() |
void |
onActivated(com.sun.tools.xjc.Options opts) |
int |
parseArgument(com.sun.tools.xjc.Options opts,
String[] args,
int i)
Parse and apply plugin configuration options.
|
boolean |
run(com.sun.tools.xjc.outline.Outline outline,
com.sun.tools.xjc.Options opt,
ErrorHandler errorHandler)
Implements exception handling.
|
protected abstract void |
runInternal(com.sun.tools.xjc.outline.Outline outline)
Actual work is done in this method.
|
String |
toString() |
protected void |
writeSummary(String s) |
protected GlobalConfiguration globalConfiguration
public static final String COMMONS_LOGGING_LOG_LEVEL_PROPERTY_KEY
public String getOptionName()
getOptionName in class com.sun.tools.xjc.Pluginpublic String getUsage()
getUsage in class com.sun.tools.xjc.Pluginpublic Collection<QName> getCustomizationElementNames()
getCustomizationElementNames in class org.jvnet.jaxb2_commons.plugin.AbstractPluginprotected final void writeSummary(String s)
public void onActivated(com.sun.tools.xjc.Options opts)
onActivated in class org.jvnet.jaxb2_commons.plugin.AbstractPluginpublic int parseArgument(com.sun.tools.xjc.Options opts,
String[] args,
int i)
throws com.sun.tools.xjc.BadCommandLineException
parseArgument in class org.jvnet.jaxb2_commons.plugin.AbstractParameterizablePlugincom.sun.tools.xjc.BadCommandLineExceptionprotected static <T extends CommonConfiguration> T applyConfigurationFromCustomizations(CommonConfiguration configuration, com.sun.tools.xjc.model.CCustomizations customizations, boolean cloneClassConfiguration) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic boolean run(com.sun.tools.xjc.outline.Outline outline,
com.sun.tools.xjc.Options opt,
ErrorHandler errorHandler)
throws SAXException
run in class org.jvnet.jaxb2_commons.plugin.AbstractPluginSAXExceptionprotected abstract void runInternal(com.sun.tools.xjc.outline.Outline outline)
throws ClassNotFoundException,
IOException
ClassNotFoundExceptionIOExceptionCopyright © 2022–2023. All rights reserved.