org.apache.ws.notification.tool
Class WsnWsdl2Java
java.lang.Object
org.apache.ws.resource.tool.Wsdl2Java
org.apache.ws.notification.tool.WsnWsdl2Java
- public class WsnWsdl2Java
- extends org.apache.ws.resource.tool.Wsdl2Java
Generates Java Web service types and skeletons from a WSRF/WSN WSDL.
- Author:
- Ian Springer
Nested classes inherited from class org.apache.ws.resource.tool.Wsdl2Java |
org.apache.ws.resource.tool.Wsdl2Java.Wsdl2JavaOptions |
Fields inherited from class org.apache.ws.resource.tool.Wsdl2Java |
CMD_LINE_OPTIONS, VELOCITY_CONTEXT_KEY_GENERATED |
Constructor Summary |
WsnWsdl2Java(java.io.File[] wsdlFiles,
java.io.File outputDir,
java.io.File[] classpath,
org.apache.ws.resource.tool.Wsdl2Java.Wsdl2JavaOptions options)
Creates a new WsnWsdl2Java object. |
Method Summary |
protected org.apache.ws.resource.tool.velocity.ServiceProperties |
buildServiceProperties(org.apache.ws.resource.ResourceDefinition resourceDef,
java.io.File wsdlfile,
java.io.File servicedir)
Adds to the ServiceProperties object by making a call to super and then adding anything impl specific to
be used by the VelocityContext for code generation. |
protected java.lang.String |
getWebbappName()
Returns the name of the webapp for use in generating code. |
protected void |
processTemplates(org.apache.ws.resource.ResourceDefinition resourceDef,
java.io.File wsdlFile,
java.io.File serviceDir)
DOCUMENT_ME |
protected org.apache.velocity.VelocityContext |
updateVelocityContext(org.apache.velocity.VelocityContext context,
org.apache.ws.resource.ResourceDefinition resourceDef)
Provides a hook for adding directly to the Velocity Context. |
Methods inherited from class org.apache.ws.resource.tool.Wsdl2Java |
addPortType2JavaInfo, generate, getOptions, getOutputDir, getPackageDir, getPortType2JavaInfo, getValidJavaName, getWsdlFiles, main, processTemplate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WsnWsdl2Java
public WsnWsdl2Java(java.io.File[] wsdlFiles,
java.io.File outputDir,
java.io.File[] classpath,
org.apache.ws.resource.tool.Wsdl2Java.Wsdl2JavaOptions options)
throws java.lang.Exception
- Creates a new
WsnWsdl2Java
object.
- Parameters:
wsdlFiles
- DOCUMENT_MEoutputDir
- DOCUMENT_MEclasspath
- DOCUMENT_MEoptions
- DOCUMENT_ME
- Throws:
java.lang.Exception
- DOCUMENT_ME
getWebbappName
protected java.lang.String getWebbappName()
- Returns the name of the webapp for use in generating code.
- Returns:
- the webapp name.
buildServiceProperties
protected org.apache.ws.resource.tool.velocity.ServiceProperties buildServiceProperties(org.apache.ws.resource.ResourceDefinition resourceDef,
java.io.File wsdlfile,
java.io.File servicedir)
- Adds to the
ServiceProperties
object by making a call to super and then adding anything impl specific to
be used by the VelocityContext for code generation.
Wsdl2Java.buildServiceProperties(ResourceDefinition resourceDefinition, File wsdlfile, File servicedir)
- Parameters:
resourceDef
- the definition we are working on.wsdlfile
- the wsdl file.servicedir
- the directory we are generating to for this service.
- Returns:
- the updated ServiceProperties
processTemplates
protected void processTemplates(org.apache.ws.resource.ResourceDefinition resourceDef,
java.io.File wsdlFile,
java.io.File serviceDir)
throws java.lang.Exception
- DOCUMENT_ME
- Parameters:
resourceDef
- DOCUMENT_MEwsdlFile
- DOCUMENT_MEserviceDir
- DOCUMENT_ME
- Throws:
java.lang.Exception
- DOCUMENT_ME
updateVelocityContext
protected org.apache.velocity.VelocityContext updateVelocityContext(org.apache.velocity.VelocityContext context,
org.apache.ws.resource.ResourceDefinition resourceDef)
- Provides a hook for adding directly to the Velocity Context.
- Parameters:
context
-
- Returns:
- VelocityContext
Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.