public static boolean isCollection ( EntityDataModel entityDataModel , String typeName ) { EntitySet entitySet = entityDataModel . getEntityContainer ( ) . getEntitySet ( typeName ) ; if ( entitySet != null ) { return true ; } try { if ( Collection . class . isAssignableFrom ( Class . forName ( typeName ) ) || COLLECTION_PATTERN . matcher ( typeName ) . matches ( ) ) { return true ; } } catch ( ClassNotFoundException e ) { LOG . debug ( "Not possible to find class for type name: {}" , typeName ) ; } return false ; }
Checks if the specified typeName is a collection .