1 23 24 package org.objectweb.jorm.compiler.api; 25 26 import org.objectweb.jorm.api.PException; 27 import org.objectweb.jorm.util.io.api.PathExplorer; 28 import org.objectweb.jorm.util.api.Loggable; 29 30 import java.io.InputStream ; 31 import java.util.ArrayList ; 32 import java.util.Collection ; 33 import java.util.Iterator ; 34 35 41 public interface JormCompilerParameter extends Cloneable , Loggable { 42 47 String INHERITANCE_CLASSNAME_PATTERN = "%c"; 48 String INHERITANCE_PACKAGE_PATTERN = "%p"; 49 50 53 void print(); 54 55 62 String computePClassMappingInheritance(String cn); 63 64 71 String computePBindingInheritance(String cn); 72 73 77 void loadConfFile(String file, Iterator knownmappers) throws PException; 78 79 83 void loadConfFile(InputStream in, Iterator knownmappers) throws PException; 84 85 PathExplorer getClasspath(); 86 87 90 String getOutput(); 91 92 95 boolean isVerbose(); 96 97 Collection getInputFiles(); 98 99 boolean isKeepSrc(); 100 101 String getJavacName(); 102 103 String getProjectName(); 104 105 boolean isJavac(); 106 107 boolean isParseOnly(); 108 109 112 String getBindingInheritance(); 113 114 String getClassMappingInheritance(); 115 116 boolean isBindingAbstract(); 117 118 ArrayList getDtdLocations(); 119 120 boolean isGeneratedPDFiles(); 121 122 boolean isGeneratedWithMapperPackage(); 123 124 void setClasspath(PathExplorer classpath); 125 126 void setOutput(String output); 127 128 void setVerbose(boolean verbose); 129 130 void setKeepSrc(boolean keepSrc); 131 132 void setProjectName(String projectName); 133 134 void setJavac(boolean javac); 135 136 void setBindingInheritance(String bindingInheritance); 137 138 void setClassMappingInheritance(String classMappingInheritance); 139 140 void setBindingAbstract(boolean bindingAbstract); 141 142 void setDtdLocations(ArrayList dtdLocations); 143 144 void setGeneratedPDFiles(boolean generatedPDFiles); 145 146 void setInputFiles(Collection inputFiles); 147 148 void setGeneratedWithMapperPackage(boolean generatedWithMapperPackage); 149 150 void setLogConfFile(String logConfFile); 151 152 Object clone(); 153 } 154 | Popular Tags |