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

ProjectCopy.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 
00064 
00070 public class ProjectCopy extends RQMLFirstClassCopy {
00071     public ProjectCopy(ChildCopier cc) {
00072         super(cc);
00073     }
00074 
00075 
00076     public boolean copy(RQMLSecondClass source, RQMLSecondClass destination) {
00077         if (!(source instanceof Project && destination instanceof Project)) {
00078             return false;
00079         }
00080         boolean ok = super.copy(source, destination);
00081         Project src = (Project) source;
00082         Project dst = (Project) destination;
00083 
00084         ok &= copyChild(Product.class, src.getProduct(), dst.getProduct());
00085         ok &= copyChild(Problem.class, src.getProblem(), dst.getProblem());
00086         ok &= copyChild(Scope.class, src.getScope(), dst.getScope());
00087         ok &= copyChild(Vision.class, src.getVision(), dst.getVision());
00088 
00089         return ok;
00090     }
00091 }
00092 

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