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

ContextCopy.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 ContextCopy extends RQMLFirstClassCopy {
00071     public ContextCopy(ChildCopier cc) {
00072         super(cc);
00073     }
00074 
00075 
00076     public boolean copy(RQMLSecondClass source, RQMLSecondClass destination) {
00077         if (!(source instanceof Context && destination instanceof Context)) {
00078             return false;
00079         }
00080         boolean ok = super.copy(source, destination);
00081         Context src = (Context) source;
00082         Context dst = (Context) destination;
00083 
00084         ok &= copyChild(Origin.class, src.getOrigin(), dst.getOrigin());
00085         ok &= copyChild(TextualData.class, src.getTextualData(), dst.getTextualData());
00086 
00087         return ok;
00088     }
00089 }
00090 

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