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 |
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; |
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 |
|
|