Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

JetWebGeneratorReader.java

Go to the documentation of this file.
00001 package cedar.jetweb.xml;
00002 
00003 import cedar.jetweb.generator.GeneratorWrapper;
00004 import cedar.jetweb.generator.Generator;
00005 import cedar.jetweb.job.LogFile;
00006 import cedar.jetweb.JetWebException;
00007 
00014 public class JetWebGeneratorReader extends JetWebLogReader{
00015 
00016     GeneratorWrapper genWrapper = null;
00017     Generator generator_;//= new Generator();
00018 
00024     public JetWebGeneratorReader(String filename)
00025     throws JetWebException,
00026     JetWebXMLException{
00027     super(filename);
00028     System.out.println("Making the log file");
00029     LogFile log = new LogFile(filename);
00030     System.out.println("log file made");
00031     this.fillLog(log);
00032     System.out.println("log file filled");
00033     }
00034 
00041     public GeneratorWrapper getGeneratorWrapper()
00042     throws JetWebException{
00043 
00044     //fillGenerator();
00045 
00046     generator_ = runSeries_.getGenerator();
00047 
00048     if(genWrapper==null){
00049         genWrapper = new GeneratorWrapper(generator_);
00050     }
00051 
00052     return(genWrapper);
00053     }
00054 
00055 
00060     public Generator getGenerator()
00061     throws JetWebException {
00062     
00063     //  fillGenerator();
00064 
00065     generator_ = runSeries_.getGenerator();
00066 
00067     return(generator_);
00068     }
00069 
00070 
00071 }

Generated Wed Jan 17 09:14:27 GMT 2007