use of org.apache.cxf.wsdl11.SchemaUtil in project cxf by apache.
the class ValidatorUtil method getSchema.
public static SchemaCollection getSchema(final Definition def) {
ServiceInfo serviceInfo = new ServiceInfo();
new SchemaUtil(BusFactory.getThreadDefaultBus(), new HashMap<String, Element>()).getSchemas(def, serviceInfo);
return serviceInfo.getXmlSchemaCollection();
}
use of org.apache.cxf.wsdl11.SchemaUtil in project cxf by apache.
the class WSDLRefValidator method getSchemas.
private void getSchemas(Bus bus) {
Map<String, Element> schemaList = new HashMap<>();
SchemaUtil schemaUtil = new SchemaUtil(bus, schemaList);
List<SchemaInfo> si = new ArrayList<>();
schemaUtil.getSchemas(definition, schemaCollection, si);
ServiceSchemaInfo ssi = new ServiceSchemaInfo();
ssi.setSchemaCollection(schemaCollection);
ssi.setSchemaInfoList(si);
ssi.setSchemaElementList(schemaList);
bus.getExtension(WSDLManager.class).putSchemasForDefinition(definition, ssi);
}
Aggregations