|| collector.containSeiClass(packageName, className)
|| collector.containExceptionClass(packageName, className);
}
private void processService(JavaModel model, Service service) throws ToolException {
JavaServiceClass sclz = new JavaServiceClass(model);
String name = ProcessorUtil.mangleNameToClassName(service.getQName().getLocalPart());
String namespace = service.getQName().getNamespaceURI();
String packageName = ProcessorUtil.parsePackageName(namespace, env.mapPackageName(namespace));
while (isNameCollision(packageName, name)) {
name = name + "_Service";
}
sclz.setName(name);
sclz.setNamespace(namespace);
sclz.setPackageName(packageName);
Map ports = service.getPorts();
for (Iterator ite = ports.values().iterator(); ite.hasNext();) {
Port port = (Port)ite.next();
JavaPort javaport = processPort(model, port);
sclz.addPort(javaport);
}
model.addServiceClass(name, sclz);
}