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