Search in sources :

Example 1 with PluginImpl

use of net.sourceforge.ccxjc.PluginImpl in project midpoint by Evolveum.

the class CloneProcessor method run.

@Override
public boolean run(Outline outline, Options opt, ErrorHandler errorHandler) throws Exception {
    PluginImpl clonePlugin = new PluginImpl();
    clonePlugin.run(outline, opt, errorHandler);
    Set<Map.Entry<NClass, CClassInfo>> set = outline.getModel().beans().entrySet();
    for (Map.Entry<NClass, CClassInfo> entry : set) {
        ClassOutline classOutline = outline.getClazz(entry.getValue());
        if (isPrism(classOutline)) {
            removeConstructors(classOutline);
            removeCloneableMethod(classOutline);
            removePrivateStaticCopyMethods(classOutline);
            createCloneMethod(classOutline);
        }
    }
    return true;
}
Also used : ClassOutline(com.sun.tools.xjc.outline.ClassOutline) CClassInfo(com.sun.tools.xjc.model.CClassInfo) NClass(com.sun.tools.xjc.model.nav.NClass) PluginImpl(net.sourceforge.ccxjc.PluginImpl) Map(java.util.Map)

Aggregations

CClassInfo (com.sun.tools.xjc.model.CClassInfo)1 NClass (com.sun.tools.xjc.model.nav.NClass)1 ClassOutline (com.sun.tools.xjc.outline.ClassOutline)1 Map (java.util.Map)1 PluginImpl (net.sourceforge.ccxjc.PluginImpl)1