use of org.apache.cxf.common.jaxb.JAXBUtils.JDefinedClass in project cxf by apache.
the class DynamicClientFactory method isValidPackage.
private boolean isValidPackage(JPackage jpackage) {
if (jpackage == null) {
return false;
}
String name = jpackage.name();
if ("org.w3._2001.xmlschema".equals(name) || "java.lang".equals(name) || "java.io".equals(name) || "generated".equals(name)) {
return false;
}
Iterator<JDefinedClass> i = jpackage.classes();
while (i.hasNext()) {
JDefinedClass current = i.next();
if ("ObjectFactory".equals(current.name())) {
return true;
}
}
return false;
}
Aggregations