ch.sahits.codegen.generator
Class Axis2ServiceStubGenerator

java.lang.Object
  extended by ch.sahits.codegen.model.BasicModelGenerator
      extended by ch.sahits.codegen.generator.BasicAxis2ModelGenerator
          extended by ch.sahits.codegen.generator.Axis2ServiceStubGenerator
All Implemented Interfaces:
IGeneralFileGenerator, IGeneralGenerator

public class Axis2ServiceStubGenerator
extends BasicAxis2ModelGenerator
implements IGeneralFileGenerator

Generator class to generate the service stub class for an AXIS webservice.

Since:
1.2.0
Author:
Andi Hotz, Sathis GmbH

Field Summary
 
Fields inherited from class ch.sahits.codegen.generator.BasicAxis2ModelGenerator
model, ws
 
Constructor Summary
Axis2ServiceStubGenerator()
           
 
Method Summary
 IFile generate()
          Generate the file reference and delegate the creation of the file to AxisWSDL2JavaWrapper
 java.lang.String getAbsoluteOutputLoacation()
          Retrieve the absolute path to the file output location based on the initialized model.
 void init(IOutputFileModel outputModel, IGeneratedObject model)
          Initialize the Registry after the initialisation of the model
 
Methods inherited from class ch.sahits.codegen.generator.BasicAxis2ModelGenerator
createModel, getAbsolutOutputDirectory, isGeneratedOutputFile
 
Methods inherited from class ch.sahits.codegen.model.BasicModelGenerator
createModelWithDBInputFile, createModelWithoutDB, initModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ch.sahits.codegen.generator.IGeneralGenerator
createModel, isGeneratedOutputFile
 

Constructor Detail

Axis2ServiceStubGenerator

public Axis2ServiceStubGenerator()
Method Detail

init

public void init(IOutputFileModel outputModel,
                 IGeneratedObject model)
Initialize the Registry after the initialisation of the model

Specified by:
init in interface IGeneralGenerator
Overrides:
init in class BasicAxis2ModelGenerator
Parameters:
outputModel - IOutputFileModel that defines the setup of the generation
model - IWebservice
See Also:
BasicAxis2ModelGenerator.init(IOutputFileModel, IGeneratedObject)

generate

public IFile generate()
Generate the file reference and delegate the creation of the file to AxisWSDL2JavaWrapper

Specified by:
generate in interface IGeneralFileGenerator
Returns:
File instance referencing the file to be created

getAbsoluteOutputLoacation

public java.lang.String getAbsoluteOutputLoacation()
Retrieve the absolute path to the file output location based on the initialized model. The file is always service.xml regardless of the specified name in the model.

Specified by:
getAbsoluteOutputLoacation in interface IGeneralFileGenerator
Returns:
Absolute path to the output location