Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

CourseCopy.java

Go to the documentation of this file.
00001 
00059 package com.arcle.rmt.j2se.bridge.copy.rqml;
00060 
00061 import com.arcle.rmt.rqml.*;
00062 import com.arcle.rmt.j2se.bridge.copy.ChildCopier;
00063 
00069 public class CourseCopy extends RQMLSecondClassCopy {
00070     public CourseCopy(ChildCopier cc) {
00071         super(cc);
00072     }
00073 
00074     public boolean copy(RQMLSecondClass source, RQMLSecondClass destination) {
00075         if (!(source instanceof Course && destination instanceof Course)) {
00076             return false;
00077         }
00078         boolean ok = super.copy(source, destination);
00079         Course src = (Course) source;
00080         Course dst = (Course) destination;
00081 
00082         ok &= copyChild(Description.class, src.getDescription(), dst.getDescription());
00083         ok &= copyChild(ActorAction.class, src.getActorAction(), dst.getActorAction());
00084         ok &= copyChild(SystemResponse.class, src.getSystemResponse(), dst.getSystemResponse());
00085 
00086         return ok;
00087     }
00088 }
00089 

Generated on Fri Jun 18 19:51:14 2004 for Arcle Rambutan by doxygen 1.3.5