lcsim/src/org/lcsim/detector/driver
diff -u -r1.4 -r1.5
--- CollectionHandler.java 16 Dec 2008 00:26:50 -0000 1.4
+++ CollectionHandler.java 6 Apr 2009 21:53:49 -0000 1.5
@@ -7,8 +7,7 @@
import org.lcsim.util.Driver;
-public abstract class CollectionHandler
-extends Driver
+public abstract class CollectionHandler extends Driver
{
Set<String> collections = new HashSet<String>();
@@ -35,6 +34,11 @@
{
collections.addAll(Arrays.asList(collectionNames));
}
+
+ public void setCollection(String collection)
+ {
+ collections.add(collection);
+ }
/**
* Return whether this CollectionHandler can handle the collection called
@@ -49,4 +53,4 @@
if (collections.size() == 0) return true;
return collections.contains(collectionName);
}
-}
\ No newline at end of file
+}