private void extractMithraInterfaces(Map<String, MithraInterfaceType> mithraInterfaces, List<String> errors)
    {
        for (String mithraInterfaceType : this.getWrapped().getMithraInterfaces())
        {
            MithraInterfaceType mithraInterfaceObject = mithraInterfaces.get(mithraInterfaceType);

            if (mithraInterfaceObject != null)
            {
                //boolean hasNoSuperClass  = validateObjectHasNoSuperClass(errors);
                boolean hasAllInterfaceAttributes = validateObjectHasAllMithraInterfaceAttributes(mithraInterfaceObject, errors);

                boolean hasAllInterfaceRelationships = validateObjectHasAllMithraInterfaceRelationships(mithraInterfaceObject, mithraInterfaces, errors);

                if (hasAllInterfaceAttributes && hasAllInterfaceRelationships)
                {
                    this.mithraInterfaces.add(mithraInterfaceObject);
                    this.addToRequiredClasses(mithraInterfaceObject.getPackageName(), mithraInterfaceObject.getClassName());
                    this.addToRequiredClasses(mithraInterfaceObject.getPackageName(), mithraInterfaceObject.getClassName() + "Finder");
                }
            }
        }
    }
private void extractMithraInterfaces ( Map < String , MithraInterfaceType > mithraInterfaces , List < String > errors ) { for ( String mithraInterfaceType : this . getWrapped ( ) . getMithraInterfaces ( ) ) { MithraInterfaceType mithraInterfaceObject = mithraInterfaces . get ( mithraInterfaceType ) ; if ( mithraInterfaceObject != null ) { boolean hasAllInterfaceAttributes = validateObjectHasAllMithraInterfaceAttributes ( mithraInterfaceObject , errors ) ; boolean hasAllInterfaceRelationships = validateObjectHasAllMithraInterfaceRelationships ( mithraInterfaceObject , mithraInterfaces , errors ) ; if ( hasAllInterfaceAttributes && hasAllInterfaceRelationships ) { this . mithraInterfaces . add ( mithraInterfaceObject ) ; this . addToRequiredClasses ( mithraInterfaceObject . getPackageName ( ) , mithraInterfaceObject . getClassName ( ) ) ; this . addToRequiredClasses ( mithraInterfaceObject . getPackageName ( ) , mithraInterfaceObject . getClassName ( ) + "Finder" ) ; } } } }
For each finder interface validate the