org.apache.ws.notification.tool
Class WsnWsdl2Java

java.lang.Object
  extended byorg.apache.ws.resource.tool.Wsdl2Java
      extended byorg.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 (ian DOT springer AT hp DOT com)

Nested Class Summary
 
Nested classes inherited from class org.apache.ws.resource.tool.Wsdl2Java
org.apache.ws.resource.tool.Wsdl2Java.Wsdl2JavaOptions
 
Field Summary
protected  java.lang.String WEBAPP_NAME
          DOCUMENT_ME
 
Fields inherited from class org.apache.ws.resource.tool.Wsdl2Java
CMD_LINE_OPTIONS
 
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 resourceDefinition, 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  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, getPortType2JavaInfo, getWsdlFiles, main
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEBAPP_NAME

protected java.lang.String WEBAPP_NAME
DOCUMENT_ME

Constructor Detail

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_ME
outputDir - DOCUMENT_ME
classpath - DOCUMENT_ME
options - DOCUMENT_ME
Throws:
java.lang.Exception - DOCUMENT_ME
Method Detail

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 resourceDefinition,
                                                                                        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:
resourceDefinition - The definition we are working on.
wsdlfile - The wsdl file.
servicedir - The directory we are generating to for this service.
Returns:
the updated ServiceProperties

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.