1 23 package org.objectweb.medor.query.jorm; 24 25 import org.objectweb.medor.jorm.TestJormHelper; 26 27 import java.util.ArrayList ; 28 29 32 public abstract class TestJormPDHelper extends TestJormHelper { 33 34 public TestJormPDHelper(String testName, String loggerName) { 35 super(testName, loggerName); 36 } 37 38 public Example getExtentOfA() { 39 ArrayList al = new ArrayList (); 40 al.add("org/objectweb/medor/query/jorm/A.pd"); 41 al.add("org/objectweb/medor/query/jorm/B.pd"); 42 return getExtent(al, "org.objectweb.medor.query.jorm.A"); 43 } 44 public Example getRewritedA() { 45 return getRewritten(getExtentOfA()); 46 } 47 48 public Example getExtentOfB() { 49 ArrayList al = new ArrayList (); 50 al.add("org/objectweb/medor/query/jorm/B.pd"); 51 al.add("org/objectweb/medor/query/jorm/C.pd"); 52 return getExtent(al, "org.objectweb.medor.query.jorm.B"); 53 } 54 public Example getRewritedB() { 55 return getRewritten(getExtentOfB()); 56 } 57 58 public Example getExtentOfC() { 59 ArrayList al = new ArrayList (); 60 al.add("org/objectweb/medor/query/jorm/C.pd"); 61 al.add("org/objectweb/medor/query/jorm/D.pd"); 62 return getExtent(al, "org.objectweb.medor.query.jorm.C", "object1", null); 63 } 64 public Example getExtentOfD() { 65 ArrayList al = new ArrayList (); 66 al.add("org/objectweb/medor/query/jorm/D.pd"); 67 return getExtent(al, "org.objectweb.medor.query.jorm.D"); 68 } 69 public Example getExtentOfD(String [] fn) { 70 ArrayList al = new ArrayList (); 71 al.add("org/objectweb/medor/query/jorm/D.pd"); 72 return getExtent(al, "org.objectweb.medor.query.jorm.D", TestJormHelper.DEFAULT_PNAME_FIELD_NAME + 1, fn); 73 } 74 public Example getRewritedD() { 75 return getRewritten(getExtentOfD()); 76 } 77 78 79 public Example getExtentOfE() { 80 ArrayList al = new ArrayList (); 81 al.add("org/objectweb/medor/query/jorm/E.pd"); 82 return getExtent(al, "org.objectweb.medor.query.jorm.E"); 83 } 84 public Example getRewritedE() { 85 return getRewritten(getExtentOfE()); 86 } 87 88 } 89 | Popular Tags |