|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.tools.ws.wscompile.Options
com.sun.tools.ws.wscompile.WsimportOptions
public class WsimportOptions
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.tools.ws.wscompile.Options |
---|
Options.Target, Options.WeAreDone |
Field Summary | |
---|---|
boolean |
additionalHeaders
-XadditionalHeaders |
File |
authFile
Authentication file |
String |
defaultPackage
The -p option that should control the default Java package that will contain the generated code. |
EntityResolver |
entityResolver
Actually stores com.sun.org.apache.xml.internal.resolver.tools.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. |
boolean |
noAddressingBbinding
-Xno-addressing-databinding option to disable addressing namespace data binding. |
String |
wsdlLocation
-wsdlLocation |
Fields inherited from class com.sun.tools.ws.wscompile.Options |
---|
classpath, compatibilityMode, debug, debugMode, destDir, EXTENSION, keep, nocompile, quiet, sourceDir, STRICT, target, targetDir, verbose |
Constructor Summary | |
---|---|
WsimportOptions()
|
Method Summary | |
---|---|
void |
addBindings(String name)
|
protected void |
addFile(String arg)
Adds a file from the argume |
void |
addGrammarRecursive(File dir)
Recursively scan directories and add all XSD files in it. |
void |
addHandlerChainConfiguration(Element config)
|
void |
addSchema(File source)
|
void |
addSchema(InputSource is)
|
void |
addSchemmaBindFile(InputSource is)
|
void |
addWSDL(File source)
|
void |
addWSDL(InputSource is)
|
void |
addWSDLBindFile(InputSource is)
Adds a new input schema. |
com.sun.codemodel.JCodeModel |
getCodeModel()
|
Element |
getHandlerChainConfiguration()
There is supposed to be one handler chain per generated SEI. |
InputSource[] |
getSchemaBindings()
|
SchemaCompiler |
getSchemaCompiler()
|
InputSource[] |
getSchemas()
|
InputSource[] |
getWSDLBindings()
|
InputSource[] |
getWSDLs()
|
int |
parseArguments(String[] args,
int i)
Parses an option args[i] and return
the number of tokens consumed. |
void |
parseBindings(ErrorReceiver receiver)
Exposing it as a public method to allow external tools such as NB to read from wsdl model and work on it. |
void |
setCodeModel(com.sun.codemodel.JCodeModel codeModel)
|
void |
validate()
|
Methods inherited from class com.sun.tools.ws.wscompile.Options |
---|
addGeneratedFile, deleteGeneratedFiles, fileToURL, getClassLoader, getGeneratedFiles, isExtensionMode, parseArguments, pathToURLs, removeGeneratedFiles, requireArgument |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String wsdlLocation
public EntityResolver entityResolver
com.sun.org.apache.xml.internal.resolver.tools.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 String defaultPackage
public boolean additionalHeaders
public File authFile
public boolean noAddressingBbinding
Constructor Detail |
---|
public WsimportOptions()
Method Detail |
---|
public com.sun.codemodel.JCodeModel getCodeModel()
public SchemaCompiler getSchemaCompiler()
public void setCodeModel(com.sun.codemodel.JCodeModel codeModel)
public int parseArguments(String[] args, int i) throws BadCommandLineException
Options
args[i]
and return
the number of tokens consumed.
parseArguments
in class Options
BadCommandLineException
- If the callee wants to provide a custom message for an error.public void validate() throws BadCommandLineException
BadCommandLineException
protected void addFile(String arg) throws BadCommandLineException
Options
addFile
in class Options
arg
- a file, could be a wsdl or xsd or a Class
BadCommandLineException
public Element getHandlerChainConfiguration()
public void addHandlerChainConfiguration(Element config)
public InputSource[] getWSDLs()
public InputSource[] getSchemas()
public InputSource[] getWSDLBindings()
public InputSource[] getSchemaBindings()
public void addWSDL(File source)
public void addWSDL(InputSource is)
public void addSchema(File source)
public void addSchema(InputSource is)
public void addGrammarRecursive(File dir)
public void addWSDLBindFile(InputSource is)
public void addSchemmaBindFile(InputSource is)
public void addBindings(String name) throws BadCommandLineException
BadCommandLineException
public final void parseBindings(ErrorReceiver receiver)
JAXBModelBuilder
receiver
- ErrorReceiver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |