Java Doc for Options.java in  » 6.0-JDK-Modules » jaxb-xjc » com » sun » tools » xjc » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » jaxb xjc » com.sun.tools.xjc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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.



Field Summary
final public static  intEXTENSION
    
final public static  intSTRICT
     strictly follow the compatibility rules and reject schemas that contain features from App.
final public  List<Plugin>activePlugins
    Plugin s that are enabled in this compilation.
public  booleanautomaticNameConflictResolution
     If true, try to resolve name conflicts automatically by assigning mechanical numbers.
public  ClassNameAllocatorclassNameAllocator
     This allocator has the final say on deciding the class name.
final public  List<URL>classpaths
    
public  intcompatibilityMode
     this switch determines how carefully the compiler will follow the compatibility rules in the spec.
public  booleandebugMode
     If "-debug" is specified.
public  StringdefaultPackage
     The -p option that should control the default Java package that will contain the generated code.
public  StringdefaultPackage2
     Similar to the -p option, but this one works with a lower priority, and customizations overrides this.
public  EntityResolverentityResolver
     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.
public  booleannoFileHeader
    
public  booleanpackageLevelAnnotations
    
final public  Set<String>pluginURIs
     Set of URIs that plug-ins recognize as extension bindings.
public  booleanquiet
     If the "-quiet" option is specified.
public  booleanreadOnly
     If the -readOnly option is specified.
public  booleanruntime14
     If -explicit-annotation option is specified.
public  booleanstrictCheck
     Check the source schemas with extra scrutiny.
public  SpecVersiontarget
     Generates output for the specified version of the runtime.
public  FiletargetDir
     Target direcoty when producing files.
public  booleanverbose
     If the "-verbose" option is specified.


Method Summary
public  voidaddBindFile(InputSource is)
     Adds a new binding file.
public  voidaddBindFile(File bindFile)
     Adds a new binding file.
public  voidaddBindFileRecursive(File dir)
     Recursively scan directories and add all ".xjb" files in it.
public  voidaddCatalog(File catalogFile)
     Adds a new catalog file.
public  voidaddGrammar(InputSource is)
     Adds a new input schema.
public  voidaddGrammar(File source)
    
public  voidaddGrammarRecursive(File dir)
     Recursively scan directories and add all XSD files in it.
public  CodeWritercreateCodeWriter()
     Creates a configured CodeWriter that produces files into the specified directory.
public  CodeWritercreateCodeWriter(CodeWriter core)
     Creates a configured CodeWriter that produces files into the specified directory.
public  List<Plugin>getAllPlugins()
     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.

public  InputSource[]getBindFiles()
     Input external binding files.
public static  StringgetBuildID()
    
public  FieldRendererFactorygetFieldRendererFactory()
     Gets the active FieldRendererFactory that shall be used to build Model .
public  InputSource[]getGrammars()
     Input schema files.
public  NameConvertergetNameConverter()
     Gets the active NameConverter that shall be used to build Model .
public  StringgetPrologComment()
     Gets the string suitable to be used as the prolog comment baked into artifacts.
public  LanguagegetSchemaLanguage()
    
public  URLClassLoadergetUserClassLoader(ClassLoader parent)
     Gets a classLoader that can load classes specified via the -classpath option.
public  LanguageguessSchemaLanguage()
     Guesses the schema language.
public  booleanisExtensionMode()
    
public  intparseArgument(String[] args, int i)
     Parses an option args[i] and return the number of tokens consumed. 0 if the argument is not understood.
public  voidparseArguments(String[] args)
     Parses arguments and fill fields of this object.
public  StringrequireArgument(String optionName, String[] args, int i)
     Obtains an operand and reports an error if it's not there.
public  voidsetFieldRendererFactory(FieldRendererFactory frf, Plugin owner)
     Sets the FieldRendererFactory .

This method is for plugins to call to set a custom FieldRendererFactory .
Parameters:
  frf - The FieldRendererFactory to be installed.

public  voidsetNameConverter(NameConverter nc, Plugin owner)
     Sets the NameConverter .

This method is for plugins to call to set a custom NameConverter .
Parameters:
  nc - The NameConverter to be installed.

public  voidsetSchemaLanguage(Language _schemaLanguage)
    

Field Detail
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



activePlugins
final public List<Plugin> activePlugins(Code)
Plugin s that are enabled in this compilation.



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.



classpaths
final public List<URL> classpaths(Code)



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.



entityResolver
public EntityResolver entityResolver(Code)
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.



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.



targetDir
public File targetDir(Code)
Target direcoty when producing files.

This field is not used when XJC is driven through the XJC API. Plugins that need to generate extra files should do so by using JPackage.addResourceFile(JResourceFile) .




verbose
public boolean verbose(Code)
If the "-verbose" option is specified.





Method Detail
addBindFile
public void addBindFile(InputSource is)(Code)
Adds a new binding file.



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.



addCatalog
public void addCatalog(File catalogFile) throws IOException(Code)
Adds a new catalog file.



addGrammar
public void addGrammar(InputSource is)(Code)
Adds a new input schema.



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.




getBindFiles
public InputSource[] getBindFiles()(Code)
Input external binding files.



getBuildID
public static String getBuildID()(Code)



getFieldRendererFactory
public FieldRendererFactory getFieldRendererFactory()(Code)
Gets the active FieldRendererFactory that shall be used to build Model . always non-null.



getGrammars
public InputSource[] getGrammars()(Code)
Input schema files.



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..."



getSchemaLanguage
public Language getSchemaLanguage()(Code)



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.



parseArguments
public void parseArguments(String[] args) throws BadCommandLineException(Code)
Parses arguments and fill fields of this object.
exception:
  BadCommandLineException - thrown when there's a problem in the command-line arguments



requireArgument
public String requireArgument(String optionName, String[] args, int i) throws BadCommandLineException(Code)
Obtains an operand and reports an error if it's not there.



setFieldRendererFactory
public void setFieldRendererFactory(FieldRendererFactory frf, Plugin owner) throws BadCommandLineException(Code)
Sets the FieldRendererFactory .

This method is for plugins to call to set a custom FieldRendererFactory .
Parameters:
  frf - The FieldRendererFactory to be installed. Must not be null.
Parameters:
  owner - Identifies the plugin that owns this FieldRendererFactory.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.




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)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.