1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.kuali.mobility.academics.util;
16
17 import org.apache.commons.collections.Transformer;
18 import org.kuali.mobility.academics.entity.SectionMeeting;
19 import org.kuali.mobility.academics.entity.SectionMeetingImpl;
20
21
22
23
24
25 public class SectionMeetingTransform implements Transformer {
26
27 @Override
28 public SectionMeetingImpl transform( Object obj ) {
29 SectionMeetingImpl proxy = null;
30 if( obj instanceof SectionMeetingImpl ) {
31 proxy = (SectionMeetingImpl)obj;
32 } else if( obj instanceof SectionMeeting ) {
33 proxy = new SectionMeetingImpl();
34 proxy.setDays( ((SectionMeeting)obj).getDays() );
35 proxy.setNumber( ((SectionMeeting)obj).getNumber() );
36 proxy.setTimes( ((SectionMeeting)obj).getTimes() );
37 proxy.setInstructors( ((SectionMeeting)obj).getInstructors() );
38 }
39 return proxy;
40 }
41
42 }