/[sdx]/sdx_v2/src/java/fr/gouv/culture/sdx/pipeline/AbstractPipeline.java
ViewVC logotype

Diff of /sdx_v2/src/java/fr/gouv/culture/sdx/pipeline/AbstractPipeline.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.36 by rpandey, Thu Feb 6 14:10:07 2003 UTC revision 1.37 by msevigny, Thu May 8 14:17:21 2003 UTC
# Line 51  import java.io.FileOutputStream; Line 51  import java.io.FileOutputStream;
51  import java.io.IOException;  import java.io.IOException;
52  import java.util.Enumeration;  import java.util.Enumeration;
53  import java.util.Hashtable;  import java.util.Hashtable;
54    import java.util.Vector;
55  import java.util.LinkedList;  import java.util.LinkedList;
56    
57  /**An abstract implementation of a Pipeline for manipulation of SAX events  /**An abstract implementation of a Pipeline for manipulation of SAX events
# Line 74  public abstract class AbstractPipeline e Line 75  public abstract class AbstractPipeline e
75      protected org.apache.avalon.framework.logger.Logger logger;      protected org.apache.avalon.framework.logger.Logger logger;
76    
77      /**A list of the transformations that make up this pipeline. */      /**A list of the transformations that make up this pipeline. */
78      protected Hashtable transformsTable = new Hashtable();          protected Vector transformsList = new Vector();
79    
80      /** The a component manager */      /** The a component manager */
81      protected ComponentManager manager;      protected ComponentManager manager;
# Line 264  public abstract class AbstractPipeline e Line 265  public abstract class AbstractPipeline e
265                          keepStep = transId;                          keepStep = transId;
266    
267                      //adding the transformation to the hashtable                      //adding the transformation to the hashtable
268                      transformsTable.put(transId, trans);                      transformsList.add(trans);
269                  }                  }
270    
271              }              }
272              //we need to build the pipeline after we have all the transformations and have determined the keep step              //we need to build the pipeline after we have all the transformations and have determined the keep step
273              Enumeration transformations = transformsTable.elements();                          for ( int k=0; k<transformsList.size(); k++ ) {
274              if (transformations != null) {                                  Transformation t = (Transformation) transformsList.get(k);
275                  while (transformations.hasMoreElements()) {                                  if (t != null) addTransformation(t);
276                      Transformation t = (Transformation) transformations.nextElement();                          }
                     if (t != null) addTransformation(t);  
                 }  
             }  
277          }          }
278    
279    

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26