|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.resource.tool.Wsdl2Java
Generates Java Web service types and skeletons from a WSRF WSDL. The types are generated as XMLBeans.
Nested Class Summary | |
static class |
Wsdl2Java.Wsdl2JavaOptions
DOCUMENT_ME |
Field Summary | |
protected static org.apache.commons.cli.Options |
CMD_LINE_OPTIONS
DOCUMENT_ME |
protected static java.lang.String |
VELOCITY_CONTEXT_KEY_GENERATED
DOCUMENT_ME |
Constructor Summary | |
Wsdl2Java(java.io.File[] wsdlFiles,
java.io.File outputDir,
java.io.File[] classpathFiles,
Wsdl2Java.Wsdl2JavaOptions options)
Creates a new Wsdl2Java object. |
Method Summary | |
protected void |
addPortType2JavaInfo(PortType2JavaInfo ptInfo)
DOCUMENT_ME |
protected org.apache.ws.resource.tool.velocity.ServiceProperties |
buildServiceProperties(ResourceDefinition resourceDef,
java.io.File wsdlFile,
java.io.File serviceDir)
Builds the ServiceProperties object which is a javabean used for storing values
which are passed to the VelocityContext for code generation. |
void |
generate()
DOCUMENT_ME |
Wsdl2Java.Wsdl2JavaOptions |
getOptions()
DOCUMENT_ME |
java.io.File |
getOutputDir()
DOCUMENT_ME |
protected java.io.File |
getPackageDir(java.lang.String targetNamespace,
java.io.File serviceDir)
DOCUMENT_ME |
protected PortType2JavaInfo |
getPortType2JavaInfo(javax.xml.namespace.QName ptName)
DOCUMENT_ME |
protected java.lang.String |
getValidJavaName(ResourceDefinition resourceDef)
DOCUMENT_ME |
protected java.lang.String |
getWebbappName()
DOCUMENT_ME |
java.io.File[] |
getWsdlFiles()
DOCUMENT_ME |
static void |
main(java.lang.String[] args)
DOCUMENT_ME |
protected void |
processTemplate(org.apache.velocity.VelocityContext context,
java.lang.String templateLocation,
java.io.File outputFile)
|
protected void |
processTemplates(ResourceDefinition resourceDef,
java.io.File wsdlFile,
java.io.File serviceDir)
|
protected org.apache.velocity.VelocityContext |
updateVelocityContext(org.apache.velocity.VelocityContext context,
ResourceDefinition resourceDef)
Provides a hook for adding to the Velocity Context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final org.apache.commons.cli.Options CMD_LINE_OPTIONS
protected static final java.lang.String VELOCITY_CONTEXT_KEY_GENERATED
Constructor Detail |
public Wsdl2Java(java.io.File[] wsdlFiles, java.io.File outputDir, java.io.File[] classpathFiles, Wsdl2Java.Wsdl2JavaOptions options) throws java.lang.Exception
Wsdl2Java
object.
wsdlFiles
- DOCUMENT_MEoutputDir
- DOCUMENT_MEclasspathFiles
- options
- DOCUMENT_MEMethod Detail |
public Wsdl2Java.Wsdl2JavaOptions getOptions()
public java.io.File getOutputDir()
public java.io.File[] getWsdlFiles()
public void generate() throws java.lang.Exception
java.lang.Exception
- DOCUMENT_MEpublic static void main(java.lang.String[] args) throws org.apache.commons.cli.ParseException
args
- DOCUMENT_ME
org.apache.commons.cli.ParseException
- DOCUMENT_MEprotected java.io.File getPackageDir(java.lang.String targetNamespace, java.io.File serviceDir)
targetNamespace
- DOCUMENT_MEserviceDir
- DOCUMENT_ME
protected PortType2JavaInfo getPortType2JavaInfo(javax.xml.namespace.QName ptName)
ptName
- DOCUMENT_ME
protected java.lang.String getValidJavaName(ResourceDefinition resourceDef)
resourceDef
- DOCUMENT_ME
protected java.lang.String getWebbappName()
protected void addPortType2JavaInfo(PortType2JavaInfo ptInfo)
ptInfo
- DOCUMENT_MEprotected org.apache.ws.resource.tool.velocity.ServiceProperties buildServiceProperties(ResourceDefinition resourceDef, java.io.File wsdlFile, java.io.File serviceDir)
ServiceProperties
object which is a javabean used for storing values
which are passed to the VelocityContext for code generation.
resourceDef
- The definition we are working on.wsdlFile
- The File
representation of the wsdl file.serviceDir
- The File
representation of the directory we are writing the service to.
protected void processTemplate(org.apache.velocity.VelocityContext context, java.lang.String templateLocation, java.io.File outputFile) throws java.lang.Exception
context
- templateLocation
- outputFile
-
java.lang.Exception
protected void processTemplates(ResourceDefinition resourceDef, java.io.File wsdlFile, java.io.File serviceDir) throws java.lang.Exception
resourceDef
- wsdlFile
- serviceDir
-
java.lang.Exception
protected org.apache.velocity.VelocityContext updateVelocityContext(org.apache.velocity.VelocityContext context, ResourceDefinition resourceDef)
context
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |