| |
|
| java.lang.Object com.sun.tools.xjc.Options
Options | public class Options (Code) | | Global options.
This class stores invocation configuration for XJC.
The configuration in this class shoule be abstract enough so that
it could be parsed from both command-line or Ant.
|
EXTENSION | final public static int EXTENSION(Code) | | loosely follow the compatibility rules and allow the use of vendor
binding extensions
|
STRICT | final public static int STRICT(Code) | | strictly follow the compatibility rules and reject schemas that
contain features from App. E.2, use vendor binding extensions
|
automaticNameConflictResolution | public boolean automaticNameConflictResolution(Code) | | If true, try to resolve name conflicts automatically by assigning mechanical numbers.
|
classNameAllocator | public ClassNameAllocator classNameAllocator(Code) | | This allocator has the final say on deciding the class name.
|
compatibilityMode | public int compatibilityMode(Code) | | this switch determines how carefully the compiler will follow
the compatibility rules in the spec. Either STRICT
or EXTENSION .
|
debugMode | public boolean debugMode(Code) | | If "-debug" is specified.
|
defaultPackage | public String defaultPackage(Code) | | The -p option that should control the default Java package that
will contain the generated code. Null if unspecified.
|
defaultPackage2 | public String defaultPackage2(Code) | | Similar to the -p option, but this one works with a lower priority,
and customizations overrides this. Used by JAX-RPC.
|
noFileHeader | public boolean noFileHeader(Code) | | No file header comment (to be more friendly with diff.)
|
packageLevelAnnotations | public boolean packageLevelAnnotations(Code) | | This switch controls whether or not xjc will generate package level annotations
|
pluginURIs | final public Set<String> pluginURIs(Code) | | Set of URIs that plug-ins recognize as extension bindings.
|
quiet | public boolean quiet(Code) | | If the "-quiet" option is specified.
|
readOnly | public boolean readOnly(Code) | | If the -readOnly option is specified.
|
runtime14 | public boolean runtime14(Code) | | If -explicit-annotation option is specified.
This generates code that works around issues specific to 1.4 runtime.
|
strictCheck | public boolean strictCheck(Code) | | Check the source schemas with extra scrutiny.
The exact meaning depends on the schema language.
|
target | public SpecVersion target(Code) | | Generates output for the specified version of the runtime.
|
verbose | public boolean verbose(Code) | | If the "-verbose" option is specified.
|
addBindFile | public void addBindFile(File bindFile)(Code) | | Adds a new binding file.
|
addBindFileRecursive | public void addBindFileRecursive(File dir)(Code) | | Recursively scan directories and add all ".xjb" files in it.
|
addGrammar | public void addGrammar(File source)(Code) | | |
addGrammarRecursive | public void addGrammarRecursive(File dir)(Code) | | Recursively scan directories and add all XSD files in it.
|
createCodeWriter | public CodeWriter createCodeWriter() throws IOException(Code) | | Creates a configured CodeWriter that produces files into the specified directory.
|
createCodeWriter | public CodeWriter createCodeWriter(CodeWriter core)(Code) | | Creates a configured CodeWriter that produces files into the specified directory.
|
getAllPlugins | public List<Plugin> getAllPlugins()(Code) | | Gets all the
Plugin s discovered so far.
A plugins are enumerated when this method is called for the first time,
by taking
Options.classpaths into account. That means
"-cp plugin.jar" has to come before you specify options to enable it.
|
getNameConverter | public NameConverter getNameConverter()(Code) | | Gets the active
NameConverter that shall be used to build
Model .
can be null, in which case it's up to the binding. |
getPrologComment | public String getPrologComment()(Code) | | Gets the string suitable to be used as the prolog comment baked into artifacts.
This is the string like "This file was generated by the JAXB RI on YYYY/mm/dd..."
|
getUserClassLoader | public URLClassLoader getUserClassLoader(ClassLoader parent)(Code) | | Gets a classLoader that can load classes specified via the
-classpath option.
|
guessSchemaLanguage | public Language guessSchemaLanguage()(Code) | | Guesses the schema language.
|
isExtensionMode | public boolean isExtensionMode()(Code) | | |
parseArgument | public int parseArgument(String[] args, int i) throws BadCommandLineException(Code) | | Parses an option args[i] and return
the number of tokens consumed.
0 if the argument is not understood. Returning 0will let the caller report an error. exception: BadCommandLineException - If the callee wants to provide a custom message for an error. |
setNameConverter | public void setNameConverter(NameConverter nc, Plugin owner) throws BadCommandLineException(Code) | | Sets the
NameConverter .
This method is for plugins to call to set a custom
NameConverter .
Parameters: nc - The NameConverter to be installed. Must not be null. Parameters: owner - Identifies the plugin that owns this NameConverter.When two Plugins try to call this method, this allows XJCto report it as a user-friendly error message. throws: BadCommandLineException - If a conflit happens, this exception carries a user-friendly errormessage, indicating a conflict. |
setSchemaLanguage | public void setSchemaLanguage(Language _schemaLanguage)(Code) | | |
|
|
|