final ILesson lesson = (ILesson) iterator.next(); final InfoLesson infoLesson = InfoLesson.newInfoFromDomain(lesson); final InfoRoom infoRoom = InfoRoom.newInfoFromDomain(lesson.getSala()); infoLesson.setInfoSala(infoRoom); infoShift.getInfoLessons().add(infoLesson); } return infoShift;
final ILesson lesson = (ILesson) iterator.next(); final InfoLesson infoLesson = InfoLesson.newInfoFromDomain(lesson); final InfoRoom infoRoom = InfoRoom.newInfoFromDomain(lesson.getSala()); infoLesson.setInfoSala(infoRoom); infoShift.getInfoLessons().add(infoLesson);
                    public Object transform(Object arg0) {                        final IShift turno = (IShift) arg0;                        final InfoShift infoShift = InfoShift.newInfoFromDomain(turno);                        infoShift.setInfoLessons(new ArrayList(turno.getAssociatedLessons().size()));                    for (final Iterator iterator = turno.getAssociatedLessons().iterator(); iterator                            .hasNext();) {                            final ILesson lesson = (ILesson) iterator.next();                            final InfoLesson infoLesson = InfoLesson.newInfoFromDomain(lesson);                            final InfoRoom infoRoom = InfoRoom.newInfoFromDomain(lesson.getSala());                            infoLesson.setInfoSala(infoRoom);                            infoShift.getInfoLessons().add(infoLesson);                        }                        return infoShift;                    }