ch.sahits.codegen.generator
Class Axis2ServiceXMLGenerator

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

public final class Axis2ServiceXMLGenerator
extends BasicAxis2ModelGenerator
implements IGeneralFileGenerator

This generator will generate the service.xml using Axis2 WSDL2Java tool.

Since:
1.2.0
Author:
Andi Hotz, Sahits GmbH
See Also:
AxisWSDL2JavaWrapper

Field Summary
 
Fields inherited from class ch.sahits.codegen.generator.BasicAxis2ModelGenerator
model, ws
 
Constructor Summary
Axis2ServiceXMLGenerator()
           
 
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

Axis2ServiceXMLGenerator

public Axis2ServiceXMLGenerator()
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