Search in sources :

Example 1 with SchemaImpl

use of com.ibm.wsdl.extensions.schema.SchemaImpl in project Activiti by Activiti.

the class CxfWSDLImporter method importTypes.

protected void importTypes(Types types) {
    SchemaCompiler compiler = XJC.createSchemaCompiler();
    ErrorListener elForRun = new ConsoleErrorReporter();
    compiler.setErrorListener(elForRun);
    SchemaImpl impl = (SchemaImpl) types.getExtensibilityElements().get(0);
    S2JJAXBModel intermediateModel = this.compileModel(types, compiler, impl.getElement());
    Collection<? extends Mapping> mappings = intermediateModel.getMappings();
    for (Mapping mapping : mappings) {
        this.importStructure(mapping);
    }
}
Also used : ErrorListener(com.sun.tools.xjc.api.ErrorListener) SchemaImpl(com.ibm.wsdl.extensions.schema.SchemaImpl) ConsoleErrorReporter(com.sun.tools.xjc.ConsoleErrorReporter) S2JJAXBModel(com.sun.tools.xjc.api.S2JJAXBModel) Mapping(com.sun.tools.xjc.api.Mapping) SchemaCompiler(com.sun.tools.xjc.api.SchemaCompiler)

Aggregations

SchemaImpl (com.ibm.wsdl.extensions.schema.SchemaImpl)1 ConsoleErrorReporter (com.sun.tools.xjc.ConsoleErrorReporter)1 ErrorListener (com.sun.tools.xjc.api.ErrorListener)1 Mapping (com.sun.tools.xjc.api.Mapping)1 S2JJAXBModel (com.sun.tools.xjc.api.S2JJAXBModel)1 SchemaCompiler (com.sun.tools.xjc.api.SchemaCompiler)1