예제 #1
0
 public void showHelp(java.io.PrintStream out) {
   super.showHelp(out);
   out.println(" -version\tPrint version info");
   out.println(" -xmlschema\tXML Schema input mode");
   out.println(" -dtd\tDTD input mode (default)");
   out.println(
       " -javaBeans\tGenerate pure JavaBeans that do not need any runtime library support (no BaseBean).");
   out.println(" -baseBean\tForce use of BaseBean.  Runtime required.");
   out.println(" -commonInterface\tGenerate a common interface between all beans.");
   out.println(
       " -premium The \"Premium\" Package.  Turn on what ought to be the default switches (but can't be the default due to backwards compatibility).");
   out.println(
       " -strict The \"Strict\" Package.  For those who are more concerned with correctness than backwards compatibility.  Turn on what ought to be the default switches (but can't be the default due to backwards compatibility).  Very similar to -premium.");
   out.println(
       " -no*\tAny switch that does not take an argument has a -no variant that will turn it off.");
   out.println(
       "\nThe bean classes are generated in the directory rootDir/packagePath, where packagePath is built using the package name specified. If the package name is not specified, the doc root element value is used as the default package name.  Use the empty string to get no (default) package.");
   out.println("\nexamples: java GenBeans -f ejb.dtd");
   out.println(
       "          java GenBeans -f webapp.dtd -d webapp -p myproject.webapp -r /myPath/src");
   out.println("          java GenBeans -f webapp.xsd -xmlschema -r /myPath/src -premium");
   out.println("\nMost of the parameters are optional. Only the file name is mandatory.");
   out.println(
       "With only the file name specified, the generator uses the current directory, and uses the schema docroot value as the package name.");
 }
예제 #2
0
 public void setForME(boolean value) {
   super.setForME(value);
   if (value) {
     setOutputType(OUTPUT_JAVABEANS);
     setGeneratePropertyEvents(false);
     setIndexedPropertyType(null);
   }
 }
예제 #3
0
 public void setExtendBaseBean(boolean value) {
   super.setExtendBaseBean(value);
   if (value) {
     setUseRuntime(true);
     setGenerateParentRefs(true);
     setGenerateValidate(true);
     setGeneratePropertyEvents(true);
     setProcessComments(true);
     setProcessDocType(true);
   }
 }
예제 #4
0
 public void setMinFeatures(boolean value) {
   super.setMinFeatures(value);
   if (value) {
     setOutputType(OUTPUT_JAVABEANS);
     setGenerateXMLIO(false);
     setGenerateValidate(false);
     setGenerateInterfaces(false);
     setGenerateCommonInterface(null);
     setGeneratePropertyEvents(false);
     setGenerateStoreEvents(false);
     setGenerateTransactions(false);
     setDefaultsAccessable(false);
     setKeepElementPositions(false);
     setRemoveUnreferencedNodes(true);
     setProcessComments(false);
     setProcessDocType(false);
     setGenerateParentRefs(false);
     setGenerateHasChanged(false);
   }
 }
예제 #5
0
 public void setIndexedPropertyType(String className) {
   if ("".equals(className)) className = null; // use arrays
   super.setIndexedPropertyType(className);
 }
예제 #6
0
 public void setTraceGen(boolean value) {
   super.setTraceGen(value);
   DDLogFlags.debug = value;
 }
예제 #7
0
 public void setPackagePath(String pkg) {
   if (pkg.equals(".")) pkg = "";
   else pkg = pkg.replace('.', '/');
   super.setPackagePath(pkg);
 }
예제 #8
0
 public void setMessageOut(PrintStream messageOut) {
   this.messageOut = messageOut;
   super.setMessageOut(messageOut);
 }