Search in sources :

Example 1 with JDefinedClass

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;
}
Also used : JDefinedClass(org.apache.cxf.common.jaxb.JAXBUtils.JDefinedClass)

Aggregations

JDefinedClass (org.apache.cxf.common.jaxb.JAXBUtils.JDefinedClass)1