Package com.sun.tools.ws.wscompile
Class Options
java.lang.Object
com.sun.tools.ws.wscompile.Options
- Direct Known Subclasses:
WsgenOptions
,WsimportOptions
Provide common jaxws tool options.
- Author:
- Vivek Pandey
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static final class
Used to signal that we've finished processing. -
Field Summary
Modifier and TypeFieldDescriptionint
this switch determines how carefully the compiler will follow the compatibility rules in the spec.boolean
boolean
-Xdebug - gives complete stack trace-dboolean
-disableXmlSecurity-encodingstatic final int
loosely follow the compatibility rules and allow the use of vendor binding extensionsThe filer that can use used to write out the generated files-javacOptionsboolean
-keepboolean
-Xnocompileboolean
- quite-sstatic final int
Type of input schema language.boolean
-verbose -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds a file from the argumevoid
addGeneratedFile
(File file) Deprecated.void
Remember info on generated file so that it can be removed later, if appropriate.void
Delete all the generated source files made during the execution of this environment (those that have been registered with the "addGeneratedFile" method).protected void
static URL
Returns the directory or JAR file URL corresponding to the specified local file name.Get a URLClassLoader from using the classpathReturn all the generated files and its types.getJavacOptions
(List<String> existingOptions, WsimportListener listener) boolean
void
parseArguments
(String[] args) Parses arguments and fill fields of this object.protected int
parseArguments
(String[] args, int i) Parses an optionargs[i]
and return the number of tokens consumed.static URL[]
pathToURLs
(String path) Utility method for converting a search path string to an array of directory and JAR file URLs.void
Remove generated filesrequireArgument
(String optionName, String[] args, int i) Obtains an operand and reports an error if it's not there.
-
Field Details
-
classNameReplacer
-
verbose
public boolean verbose-verbose -
quiet
public boolean quiet- quite -
keep
public boolean keep-keep -
destDir
-d -
sourceDir
-s -
filer
The filer that can use used to write out the generated files -
encoding
-encoding -
classpath
-
javacOptions
-javacOptions- Since:
- 2.2.9
-
nocompile
public boolean nocompile-Xnocompile -
disableXmlSecurity
public boolean disableXmlSecurity-disableXmlSecurityIf true XML security features when parsing XML documents will be disabled. The default value is false. Boolean
- Since:
- 2.2.9
-
target
-
STRICT
public static final int STRICTType of input schema language. One of theSCHEMA_XXX
strictly follow the compatibility rules specified in JAXWS spec- See Also:
-
EXTENSION
public static final int EXTENSIONloosely follow the compatibility rules and allow the use of vendor binding extensions- See Also:
-
compatibilityMode
public int compatibilityModethis switch determines how carefully the compiler will follow the compatibility rules in the spec. EitherSTRICT
orEXTENSION
. -
debug
public boolean debug -
debugMode
public boolean debugMode-Xdebug - gives complete stack trace
-
-
Constructor Details
-
Options
public Options()Default constructor.
-
-
Method Details
-
isExtensionMode
public boolean isExtensionMode() -
addGeneratedFile
Deprecated.UseaddGeneratedFile(javax.tools.FileObject)
instead.Remember info on generated source file so that it can be removed later, if appropriate.- Parameters:
file
- generated File
-
addGeneratedFile
Remember info on generated file so that it can be removed later, if appropriate.- Parameters:
fo
- generated FileObject
-
removeGeneratedFiles
public void removeGeneratedFiles()Remove generated files -
getGeneratedFiles
Return all the generated files and its types. -
deleteGeneratedFiles
public void deleteGeneratedFiles()Delete all the generated source files made during the execution of this environment (those that have been registered with the "addGeneratedFile" method). -
parseArguments
Parses arguments and fill fields of this object.- Throws:
BadCommandLineException
- thrown when there's a problem in the command-line arguments
-
addFile
Adds a file from the argume- Parameters:
arg
- a file, could be a wsdl or xsd or a Class- Throws:
BadCommandLineException
-
parseArguments
Parses an optionargs[i]
and return the number of tokens consumed.- Returns:
- 0 if the argument is not understood. Returning 0 will let the caller report an error.
- Throws:
BadCommandLineException
- If the callee wants to provide a custom message for an error.
-
disableXmlSecurity
protected void disableXmlSecurity() -
requireArgument
public String requireArgument(String optionName, String[] args, int i) throws BadCommandLineException Obtains an operand and reports an error if it's not there.- Throws:
BadCommandLineException
-
getJavacOptions
-
getClassLoader
Get a URLClassLoader from using the classpath -
pathToURLs
Utility method for converting a search path string to an array of directory and JAR file URLs.- Parameters:
path
- the search path string- Returns:
- the resulting array of directory and JAR file URLs
-
fileToURL
Returns the directory or JAR file URL corresponding to the specified local file name.- Parameters:
file
- the File object- Returns:
- the resulting directory or JAR file URL, or null if unknown
-
addGeneratedFile(javax.tools.FileObject)
instead.