|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.tools.xjc.Options
public class Options
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.
Field Summary | |
---|---|
java.util.List<Plugin> |
activePlugins
Plugin s that are enabled in this compilation. |
static java.util.List<Plugin> |
allPlugins
All discovered Plugin s. |
ClassNameAllocator |
classNameAllocator
This allocator has the final say on deciding the class name. |
java.util.List<java.net.URL> |
classpaths
|
int |
compatibilityMode
this switch determines how carefully the compiler will follow the compatibility rules in the spec. |
boolean |
debugMode
If "-debug" is specified. |
java.lang.String |
defaultPackage
The -p option that should control the default Java package that will contain the generated code. |
java.lang.String |
defaultPackage2
Similar to the -p option, but this one works with a lower priority, and customizations overrides this. |
org.xml.sax.EntityResolver |
entityResolver
Actually stores CatalogResolver , but the field
type is made to EntityResolver so that XJC can be
used even if resolver.jar is not available in the classpath. |
static int |
EXTENSION
loosely follow the compatibility rules and allow the use of vendor binding extensions |
boolean |
packageLevelAnnotations
This switch controls whether or not xjc will generate package level annotations |
java.util.Set<java.lang.String> |
pluginURIs
Set of URIs that plug-ins recognize as extension bindings. |
boolean |
quiet
If the "-quiet" option is specified. |
boolean |
readOnly
If the -readOnly option is specified |
static int |
STRICT
strictly follow the compatibility rules and reject schemas that contain features from App. |
boolean |
strictCheck
Check the source schemas with extra scrutiny. |
java.io.File |
targetDir
Target direcoty when producing files. |
boolean |
verbose
If the "-verbose" option is specified. |
Constructor Summary | |
---|---|
Options()
|
Method Summary | |
---|---|
void |
addBindFile(org.xml.sax.InputSource is)
Adds a new input schema. |
void |
addCatalog(java.io.File catalogFile)
Adds a new catalog file. |
void |
addGrammar(java.io.File source)
|
void |
addGrammar(org.xml.sax.InputSource is)
Adds a new input schema. |
void |
addGrammarRecursive(java.io.File dir)
Recursively scan directories and add all XSD files in it. |
org.xml.sax.InputSource[] |
getBindFiles()
Input external binding files. |
static java.lang.String |
getBuildID()
|
org.xml.sax.InputSource[] |
getGrammars()
Input schema files. |
Language |
getSchemaLanguage()
|
java.net.URLClassLoader |
getUserClassLoader(java.lang.ClassLoader parent)
Gets a classLoader that can load classes specified via the -classpath option. |
Language |
guessSchemaLanguage()
Guesses the schema language. |
protected int |
parseArgument(java.lang.String[] args,
int i)
Parses an option args[i] and return
the number of tokens consumed. |
void |
parseArguments(java.lang.String[] args)
Parses arguments and fill fields of this object. |
void |
setSchemaLanguage(Language _schemaLanguage)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean debugMode
public boolean verbose
public boolean quiet
public boolean readOnly
public boolean strictCheck
public static final int STRICT
public static final int EXTENSION
public int compatibilityMode
STRICT
or EXTENSION
.
public java.io.File targetDir
public org.xml.sax.EntityResolver entityResolver
CatalogResolver
, but the field
type is made to EntityResolver
so that XJC can be
used even if resolver.jar is not available in the classpath.
public java.lang.String defaultPackage
public java.lang.String defaultPackage2
public final java.util.List<Plugin> activePlugins
Plugin
s that are enabled in this compilation.
public static final java.util.List<Plugin> allPlugins
Plugin
s.
public final java.util.Set<java.lang.String> pluginURIs
public ClassNameAllocator classNameAllocator
public boolean packageLevelAnnotations
public final java.util.List<java.net.URL> classpaths
Constructor Detail |
---|
public Options()
Method Detail |
---|
public Language getSchemaLanguage()
public void setSchemaLanguage(Language _schemaLanguage)
public org.xml.sax.InputSource[] getGrammars()
public void addGrammar(org.xml.sax.InputSource is)
public void addGrammar(java.io.File source)
public void addGrammarRecursive(java.io.File dir)
public org.xml.sax.InputSource[] getBindFiles()
public void addBindFile(org.xml.sax.InputSource is)
public java.net.URLClassLoader getUserClassLoader(java.lang.ClassLoader parent)
protected int parseArgument(java.lang.String[] args, int i) throws BadCommandLineException
args[i]
and return
the number of tokens consumed.
BadCommandLineException
- If the callee wants to provide a custom message for an error.public void addCatalog(java.io.File catalogFile) throws java.io.IOException
java.io.IOException
public void parseArguments(java.lang.String[] args) throws BadCommandLineException
BadCommandLineException
- thrown when there's a problem in the command-line argumentspublic Language guessSchemaLanguage()
public static java.lang.String getBuildID()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |