| Constructor and Description |
|---|
AbstractAxisConfig(org.gradle.api.Project project,
java.lang.String confname)
Class with configuration for Axis 1 and 2.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addArg(java.lang.String argument)
Add argument to list of additional arguments.
|
void |
addArgs(java.util.List<java.lang.String> args)
Add a list of arguments to list of additional arguments.
|
java.util.List<java.lang.String> |
getArgs()
Additional arguments for WSDL code configuration.
|
org.gradle.api.provider.Provider<java.util.List> |
getArgumentsProvider()
Provider for additional arguments.
|
boolean |
getGenerateTestcase()
Generate a client-side JUnit test case. This test case can stand on its own, but it doesn't
really do anything except pass default values (null for objects, 0 or false for primitive types).
Like the generated implementation file, the generated test case file could be considered a template
that you may fill in.
|
org.gradle.api.provider.Provider<java.lang.Boolean> |
getGenerateTestcaseProvider()
Provider for generateTestcase.
|
java.lang.String |
getName() |
java.io.File |
getNamespacePackageMappingFile()
If there are a number of namespaces in the WSDLExtension document, listing a mapping for them all could
become tedious. To help keep the command line terse, WSDL2Java will also look for mappings in
a properties file. By default, this file is named "NStoPkg.properties" and it must reside in
the default package (ie., no package). But you can explicitly provide your own file using this option.
|
org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> |
getNamespacePackageMappingFileProvider()
Provider for namespacePackageMappingFile.
|
org.gradle.api.NamedDomainObjectContainer<com.intershop.gradle.wsdl.extension.data.NamespacePackageMapping> |
getNamespacePackageMappingsContainer() |
java.lang.String |
getPackageName()
This is a shorthand option to map all namespaces in a WSDLExtension document to the same
Java package name. This can be useful, but dangerous. You must make sure that you
understand the effects of doing this. For instance there may be multiple types
with the same name in different namespaces.
Only for Axis1: It is an error to use the --NStoPkg switch and --package at the same time.
|
org.gradle.api.provider.Provider<java.lang.String> |
getPackageNameProvider()
Provider for packageName.
|
org.gradle.api.Project |
getProject() |
java.lang.String |
getSourceSetName()
SourceSet name for Java files.
|
org.gradle.api.provider.Provider<java.lang.String> |
getSourceSetNameProvider()
Provider for source set name property.
|
java.io.File |
getWsdlFile()
WSDLExtension file for processing.
|
org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> |
getWsdlFileProvider()
Provider for wsdlFile property.
|
void |
namespacePackageMappings(groovy.lang.Closure<com.intershop.gradle.wsdl.extension.data.NamespacePackageMapping> c)
By default, package names are generated from the namespace strings in the WSDLExtension document in a
magical manner (typically, if the namespace is of the form "http://x.y.com" or "urn:x.y.com"
the corresponding package will be "com.y.x"). If this magic is not what you want, you can provide your
own mapping using the this maps argument. For example, if there is a namespace in the WSDLExtension document
called "urn:AddressFetcher2", and you want files generated from the objects within this namespace
to reside in the package samples.addr, you would provide the following option:
|
void |
setArgs(java.util.List<java.lang.String> value)
Additional arguments for WSDL code configuration.
|
void |
setGenerateTestcase(boolean p)
Generate a client-side JUnit test case. This test case can stand on its own, but it doesn't
really do anything except pass default values (null for objects, 0 or false for primitive types).
Like the generated implementation file, the generated test case file could be considered a template
that you may fill in.
|
void |
setNamespacePackageMappingFile(java.io.File p)
If there are a number of namespaces in the WSDLExtension document, listing a mapping for them all could
become tedious. To help keep the command line terse, WSDL2Java will also look for mappings in
a properties file. By default, this file is named "NStoPkg.properties" and it must reside in
the default package (ie., no package). But you can explicitly provide your own file using this option.
|
void |
setPackageName(java.lang.String p)
This is a shorthand option to map all namespaces in a WSDLExtension document to the same
Java package name. This can be useful, but dangerous. You must make sure that you
understand the effects of doing this. For instance there may be multiple types
with the same name in different namespaces.
Only for Axis1: It is an error to use the --NStoPkg switch and --package at the same time.
|
void |
setSourceSetName(java.lang.String p)
SourceSet name for Java files.
|
void |
setWsdlFile(java.io.File p)
WSDLExtension file for processing.
|
public AbstractAxisConfig(org.gradle.api.Project project,
java.lang.String confname)
Class with configuration for Axis 1 and 2.
public java.lang.String getName()
public org.gradle.api.NamedDomainObjectContainer<com.intershop.gradle.wsdl.extension.data.NamespacePackageMapping> getNamespacePackageMappingsContainer()
public org.gradle.api.provider.Provider<java.lang.String> getPackageNameProvider()
Provider for packageName.
public java.lang.String getPackageName()
This is a shorthand option to map all namespaces in a WSDLExtension document to the same Java package name. This can be useful, but dangerous. You must make sure that you understand the effects of doing this. For instance there may be multiple types with the same name in different namespaces. Only for Axis1: It is an error to use the --NStoPkg switch and --package at the same time.
public void setPackageName(java.lang.String p)
This is a shorthand option to map all namespaces in a WSDLExtension document to the same Java package name. This can be useful, but dangerous. You must make sure that you understand the effects of doing this. For instance there may be multiple types with the same name in different namespaces. Only for Axis1: It is an error to use the --NStoPkg switch and --package at the same time.
public void namespacePackageMappings(groovy.lang.Closure<com.intershop.gradle.wsdl.extension.data.NamespacePackageMapping> c)
By default, package names are generated from the namespace strings in the WSDLExtension document in a magical manner (typically, if the namespace is of the form "http://x.y.com" or "urn:x.y.com" the corresponding package will be "com.y.x"). If this magic is not what you want, you can provide your own mapping using the this maps argument. For example, if there is a namespace in the WSDLExtension document called "urn:AddressFetcher2", and you want files generated from the objects within this namespace to reside in the package samples.addr, you would provide the following option:
public org.gradle.api.provider.Provider<java.lang.Boolean> getGenerateTestcaseProvider()
Provider for generateTestcase.
public boolean getGenerateTestcase()
Generate a client-side JUnit test case. This test case can stand on its own, but it doesn't really do anything except pass default values (null for objects, 0 or false for primitive types). Like the generated implementation file, the generated test case file could be considered a template that you may fill in.
public void setGenerateTestcase(boolean p)
Generate a client-side JUnit test case. This test case can stand on its own, but it doesn't really do anything except pass default values (null for objects, 0 or false for primitive types). Like the generated implementation file, the generated test case file could be considered a template that you may fill in.
public org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> getNamespacePackageMappingFileProvider()
Provider for namespacePackageMappingFile.
public java.io.File getNamespacePackageMappingFile()
If there are a number of namespaces in the WSDLExtension document, listing a mapping for them all could become tedious. To help keep the command line terse, WSDL2Java will also look for mappings in a properties file. By default, this file is named "NStoPkg.properties" and it must reside in the default package (ie., no package). But you can explicitly provide your own file using this option.
The entries in this file are of the same form as the arguments to the namespacePackageMapping option. For example, instead of providing the command line option as above, we could provide the same information in a properties file:
(Note that the colon must be escaped in the properties file.)
If an entry for a given mapping exists both with namespacePackageMapping and in this properties file, the namespacePackageMapping entry takes precedence.
public void setNamespacePackageMappingFile(java.io.File p)
If there are a number of namespaces in the WSDLExtension document, listing a mapping for them all could become tedious. To help keep the command line terse, WSDL2Java will also look for mappings in a properties file. By default, this file is named "NStoPkg.properties" and it must reside in the default package (ie., no package). But you can explicitly provide your own file using this option.
The entries in this file are of the same form as the arguments to the namespacePackageMapping option. For example, instead of providing the command line option as above, we could provide the same information in a properties file:
(Note that the colon must be escaped in the properties file.)
If an entry for a given mapping exists both with namespacePackageMapping and in this properties file, the namespacePackageMapping entry takes precedence.
public org.gradle.api.provider.Provider<java.util.List> getArgumentsProvider()
Provider for additional arguments.
public java.util.List<java.lang.String> getArgs()
Additional arguments for WSDL code configuration.
public void setArgs(java.util.List<java.lang.String> value)
Additional arguments for WSDL code configuration.
public void addArg(java.lang.String argument)
Add argument to list of additional arguments.
public void addArgs(java.util.List<java.lang.String> args)
Add a list of arguments to list of additional arguments.
public org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> getWsdlFileProvider()
Provider for wsdlFile property.
public java.io.File getWsdlFile()
WSDLExtension file for processing.
public void setWsdlFile(java.io.File p)
WSDLExtension file for processing.
public org.gradle.api.provider.Provider<java.lang.String> getSourceSetNameProvider()
Provider for source set name property.
public java.lang.String getSourceSetName()
SourceSet name for Java files.
public void setSourceSetName(java.lang.String p)
SourceSet name for Java files.
public org.gradle.api.Project getProject()