private static boolean generateAsResource ( MetaDataObject metaDataObject ) { if ( metaDataObject instanceof MetaResource ) { return true ; } List < MetaDataObject > subTypes = metaDataObject . getSubTypes ( true , false ) ; if ( ! subTypes . isEmpty ( ) ) { for ( MetaDataObject subType : subTypes ) { if ( generateAsResource ( subType ) ) { return true ; } } return false ; } return false ; }
Generate resources and their base classes as resources .