Search in sources :

Example 11 with CClassInfo

use of com.sun.tools.xjc.model.CClassInfo in project midpoint by Evolveum.

the class ProcessorUtils method findClassOutline.

public static ClassOutline findClassOutline(Outline outline, QName type) {
    Set<Map.Entry<NClass, CClassInfo>> set = outline.getModel().beans().entrySet();
    for (Map.Entry<NClass, CClassInfo> entry : set) {
        ClassOutline classOutline = outline.getClazz(entry.getValue());
        QName qname = entry.getValue().getTypeName();
        if (!type.equals(qname)) {
            continue;
        }
        return classOutline;
    }
    throw new IllegalStateException("Object type class defined by qname '" + type + "' outline was not found.");
}
Also used : ClassOutline(com.sun.tools.xjc.outline.ClassOutline) CClassInfo(com.sun.tools.xjc.model.CClassInfo) NClass(com.sun.tools.xjc.model.nav.NClass) QName(javax.xml.namespace.QName)

Aggregations

CClassInfo (com.sun.tools.xjc.model.CClassInfo)11 NClass (com.sun.tools.xjc.model.nav.NClass)10 ClassOutline (com.sun.tools.xjc.outline.ClassOutline)10 Map (java.util.Map)9 HashMap (java.util.HashMap)8 QName (javax.xml.namespace.QName)8 Entry (java.util.Map.Entry)7 PrismContainerArrayList (com.evolveum.midpoint.prism.xjc.PrismContainerArrayList)3 PrismReferenceArrayList (com.evolveum.midpoint.prism.xjc.PrismReferenceArrayList)3 ArrayList (java.util.ArrayList)3 HashSet (java.util.HashSet)2 List (java.util.List)2 Containerable (com.evolveum.midpoint.prism.Containerable)1 Objectable (com.evolveum.midpoint.prism.Objectable)1 PrismReferenceValue (com.evolveum.midpoint.prism.PrismReferenceValue)1 Referencable (com.evolveum.midpoint.prism.Referencable)1 CPropertyInfo (com.sun.tools.xjc.model.CPropertyInfo)1 CTypeInfo (com.sun.tools.xjc.model.CTypeInfo)1 PluginImpl (net.sourceforge.ccxjc.PluginImpl)1