| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private File | |
| private static final XSFunction | SCD
Computes SCD. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getOptionName()
Implements abstract com. Gets the option name to turn on this add-on. |
| public String | getUsage()
Implements abstract com. Gets the description of this add-on. |
| public int | parseArgument(Options opt, String[] args, int i)
Overrides com. Parses an option |
| public boolean | run(Outline model, Options opt, ErrorHandler errorHandler)
Implements abstract com. Capture all the generated classes from global schema components and generate them in an episode file. |
| episodeFile | back to summary |
|---|---|
| private File episodeFile | |
| SCD | back to summary |
|---|---|
| private static final XSFunction<String> SCD Computes SCD. This is fairly limited as JAXB can only map a certain kind of components to classes. | |
| PluginImpl | back to summary |
|---|---|
| public PluginImpl() | |
| getOptionName | back to summary |
|---|---|
| public String getOptionName() Implements abstract com. Doc from com. Gets the option name to turn on this add-on. For example, if "abc" is returned, "-abc" will turn on this plugin. A plugin needs to be turned on explicitly, or else no other methods of will be invoked.
Starting 2.1, when an option matches the name returned
from this method, XJC will then invoke
| |
| getUsage | back to summary |
|---|---|
| public String getUsage() Implements abstract com. Doc from com. Gets the description of this add-on. Used to generate a usage screen.
| |
| parseArgument | back to summary |
|---|---|
| public int parseArgument(Options opt, String[] args, int i) throws BadCommandLineException, IOException Overrides com. Doc from com. Parses an option The callee doesn't need to recognize the option that the getOptionName method returns. Once a plugin is activated, this method is called for options that XJC didn't recognize. This allows a plugin to define additional options to customize its behavior.
Since options can appear in no particular order,
XJC allows sub-options of a plugin to show up before
the option that activates a plugin (one that's returned
by
| |
| run | back to summary |
|---|---|
| public boolean run(Outline model, Options opt, ErrorHandler errorHandler) throws SAXException Implements abstract com. Capture all the generated classes from global schema components and generate them in an episode file.
| |
| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final PluginImpl. | |
| private final String | |
| private final XSComponent |
| Access | Constructor and Description |
|---|---|
| public | OutlineAdaptor(XSComponent schemaComponent, PluginImpl.
|
| Modifier and Type | Method and Description |
|---|---|
| private void |
| implName | back to summary |
|---|---|
| private final String implName | |
| outlineType | back to summary |
|---|---|
| private final PluginImpl. | |
| packageName | back to summary |
|---|---|
| private final String packageName | |
| schemaComponent | back to summary |
|---|---|
| private final XSComponent schemaComponent | |
| OutlineAdaptor | back to summary |
|---|---|
| public OutlineAdaptor(XSComponent schemaComponent, PluginImpl. | |
| buildBindings | back to summary |
|---|---|
| private void buildBindings(Bindings bindings) | |
| Modifier and Type | Class and Description |
|---|---|
| private static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final PluginImpl. | |
| public static final PluginImpl. | |
| public static final PluginImpl. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PluginImpl. | |
| public static PluginImpl. |
| bindingsBuilder | back to summary |
|---|---|
| private final PluginImpl. | |
| CLASS | back to summary |
|---|---|
| public static final PluginImpl. | |
| ENUM | back to summary |
|---|---|
| public static final PluginImpl. | |
| OutlineType | back to summary |
|---|---|
| private OutlineType(PluginImpl. | |
| valueOf | back to summary |
|---|---|
| public static PluginImpl. | |
| values | back to summary |
|---|---|
| public static PluginImpl. | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| build | back to summary |
|---|---|
| public void build(PluginImpl. | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void |
| outlineAdaptors | back to summary |
|---|---|
| private final List<PluginImpl. | |
| packageNames | back to summary |
|---|---|
| private final Set<String> packageNames | |
| PerSchemaOutlineAdaptors | back to summary |
|---|---|
| private PerSchemaOutlineAdaptors() | |
| add | back to summary |
|---|---|
| private void add(PluginImpl. | |