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 ProductCopy extends RQMLSecondClassCopy { 00070 public ProductCopy(ChildCopier cc) { 00071 super(cc); 00072 } 00073 00074 public boolean copy(RQMLSecondClass source, RQMLSecondClass destination) { 00075 if (!(source instanceof Product && destination instanceof Product)) { 00076 return false; 00077 } 00078 boolean ok = super.copy(source, destination); 00079 Product src = (Product) source; 00080 Product dst = (Product) destination; 00081 00082 ok &= copyChild(Name.class, src.getName(), dst.getName()); 00083 ok &= copyChild(Description.class, src.getDescription(), dst.getDescription()); 00084 00085 return ok; 00086 } 00087 00088 } 00089