org.apache.axis2.wsdl.codegen.extension
Class SchemaUnwrapperExtension

java.lang.Object
  extended by org.apache.axis2.wsdl.codegen.extension.AbstractCodeGenerationExtension
      extended by org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension
All Implemented Interfaces:
CodeGenExtension

public class SchemaUnwrapperExtension
extends AbstractCodeGenerationExtension

This extension invokes the schema unwrapper depending on the users setting. it is desirable to put this extension before other extensions since extnsions such as the databinding extension may well depend on the schema being unwrapped previously. For a complete unwrap the following format of the schema is expected < element > < complexType > < sequence > < element /> < /sequence > < /complexType > < /element >

When an unwrapped WSDL is encountered Axis2 generates a wrapper schema and that wrapper schema has the above mentioned format. This unwrapping algorithm will work on a pure doc/lit WSDL if it has the above mentioned format only


Field Summary
 
Fields inherited from class org.apache.axis2.wsdl.codegen.extension.AbstractCodeGenerationExtension
log
 
Constructor Summary
SchemaUnwrapperExtension()
           
 
Method Summary
 void engage(CodeGenConfiguration configuration)
           
 void walkSchema(AxisMessage message, java.lang.String qnameSuffix)
          walk the given schema element For a successful unwrapping the element should have the following structure < element > < complexType > < sequence > < element /> < /sequence > < /complexType > < /element >
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaUnwrapperExtension

public SchemaUnwrapperExtension()
Method Detail

engage

public void engage(CodeGenConfiguration configuration)
            throws CodeGenerationException
Parameters:
configuration -
Throws:
CodeGenerationException

walkSchema

public void walkSchema(AxisMessage message,
                       java.lang.String qnameSuffix)
                throws CodeGenerationException
walk the given schema element For a successful unwrapping the element should have the following structure < element > < complexType > < sequence > < element /> < /sequence > < /complexType > < /element >

Throws:
CodeGenerationException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.