@ SuppressWarnings ( "unchecked" ) public static < T extends ModelElementInstance > Collection < T > getModelElementCollection ( Collection < DomElement > view , ModelInstanceImpl model ) { List < ModelElementInstance > resultList = new ArrayList < ModelElementInstance > ( ) ; for ( DomElement element : view ) { resultList . add ( getModelElement ( element , model ) ) ; } return ( Collection < T > ) resultList ; }
Get a collection of all model element instances in a view