Class SchemaUnwrapperExtension
- java.lang.Object
-
- org.apache.axis2.wsdl.codegen.extension.AbstractCodeGenerationExtension
-
- 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
Constructors Constructor Description SchemaUnwrapperExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
engage(CodeGenConfiguration configuration)
void
walkSchema(AxisMessage message, 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 >
-
-
-
Method Detail
-
engage
public void engage(CodeGenConfiguration configuration) throws CodeGenerationException
- Parameters:
configuration
-- Throws:
CodeGenerationException
-
walkSchema
public void walkSchema(AxisMessage message, 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
-
-