Ejemplo n.º 1
0
 public void printError(java.io.PrintStream o) {
   if (failureMode != null) {
     failureMode.printStackTrace(o);
   } else {
     if (out != null && out.checkError()) o.println(outputFileName + ": Output write error");
   }
 }
Ejemplo n.º 2
0
 public void dump(java.io.PrintStream out) {
   for (Slot s : slots()) out.println((s.d ? " " : "!") + s.r + ": " + s.os);
 }
Ejemplo n.º 3
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.");
 }
Ejemplo n.º 4
0
 protected void print_arg(java.io.PrintStream w, Context ctxt, int i) {
   if (ctxt.getFlag("show_spec_args")) if (specarg[i]) w.print("spec ");
   super.print_arg(w, ctxt, i);
 }
Ejemplo n.º 5
0
 public void do_print(java.io.PrintStream w, Context ctxt) {
   w.print("(");
   super.do_print(w, ctxt);
   w.print(")");
 }
 void log(String string) {
   stream.println(string);
 }