1 23 package org.objectweb.medor.query.lib; 24 25 import org.objectweb.jorm.type.api.PType; 26 import org.objectweb.medor.api.MedorException; 27 import org.objectweb.medor.lib.BasicField; 28 import org.objectweb.medor.query.api.QueryTree; 29 import org.objectweb.medor.query.api.QueryTreeField; 30 31 import java.util.Map ; 32 33 public class BasicQueryTreeField extends BasicField implements QueryTreeField { 34 35 protected QueryTree qt; 36 37 public BasicQueryTreeField() { 38 } 39 40 public BasicQueryTreeField(String name, QueryTree qt) 41 throws MedorException { 42 super(name); 43 this.qt = qt; 44 } 45 46 public BasicQueryTreeField(String name, PType type, QueryTree qt) 47 throws MedorException { 48 super(name, type); 49 this.qt = qt; 50 } 51 52 public Object clone(Object clone, 53 Map obj2clone) throws CloneNotSupportedException { 54 clone = super.clone(clone, obj2clone); 55 ((BasicQueryTreeField) clone).qt = (QueryTree) getClone(qt, obj2clone); 56 return clone; 57 } 58 59 public QueryTree getQueryTree() { 60 return qt; 61 } 62 } 63 | Popular Tags |