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

UsecaseCopy.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 UsecaseCopy extends RQMLFirstClassCopy {
00071     public UsecaseCopy(ChildCopier cc) {
00072         super(cc);
00073     }
00074 
00075 
00076     public boolean copy(RQMLSecondClass source, RQMLSecondClass destination) {
00077         if (!(source instanceof Usecase && destination instanceof Usecase)) {
00078             return false;
00079         }
00080         boolean ok = super.copy(source, destination);
00081         Usecase src = (Usecase) source;
00082         Usecase dst = (Usecase) destination;
00083 
00084         ok &= copyChild(Actor.class, src.getActor(), dst.getActor());
00085         ok &= copyChild(Precondition.class, src.getPrecondition(), dst.getPrecondition());
00086         ok &= copyChild(Postcondition.class, src.getPostcondition(), dst.getPostcondition());
00087         ok &= copyChild(NormalCourse.class, src.getNormalCourse(), dst.getNormalCourse());
00088         ok &= copyChild(AlternativeCourse.class, src.getAlternativeCourse(), dst.getAlternativeCourse());
00089         ok &= copyChild(com.arcle.rmt.rqml.Exception.class, src.getException(), dst.getException());
00090         ok &= copyChild(Comment.class, src.getComment(), dst.getComment());
00091 
00092         return ok;
00093     }
00094 }
00095 

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