00001 00059 package com.arcle.rmt.j2se.bridge.copy.rqml; 00060 import com.arcle.rmt.j2se.bridge.copy.ChildCopier; 00061 00062 import com.arcle.rmt.rqml.*; 00063 00069 public class StringOrTermsCopy extends StringOnlyCopy { 00070 public StringOrTermsCopy(ChildCopier cc) { 00071 super(cc); 00072 } 00073 00074 public boolean copy(RQMLSecondClass source, RQMLSecondClass destination) { 00075 if (!(source instanceof StringOrTerms && destination instanceof StringOrTerms)) { 00076 return false; 00077 } 00078 boolean ok = super.copy(source, destination); 00079 StringOrTerms src = (StringOrTerms) source; 00080 StringOrTerms dst = (StringOrTerms) destination; 00081 00082 ok &= copyTerms(src, dst); 00083 return ok; 00084 } 00085 00086 00087 protected boolean copyTerms(StringOrTerms src, StringOrTerms dst) { 00091 return true; 00092 } 00093 00094 00095 } 00096