home *** CD-ROM | disk | FTP | other *** search
- package BsscXML;
-
- import java.util.Enumeration;
- import java.util.Vector;
-
- public class BsscXMLConsumerChain implements IBsscXMLConsumer {
- private Vector m_vecConsumer = null;
-
- public BsscXMLConsumerChain() {
- this.m_vecConsumer = new Vector();
- this.m_vecConsumer.removeAllElements();
- }
-
- public boolean add(IBsscXMLConsumer var1) {
- this.m_vecConsumer.addElement(var1);
- return true;
- }
-
- public void consume(IBsscXMLElementReader var1) {
- Enumeration var2 = this.m_vecConsumer.elements();
-
- while(var2.hasMoreElements()) {
- Object var3 = var2.nextElement();
- if (var3 instanceof IBsscXMLConsumer) {
- ((IBsscXMLConsumer)var3).consume(var1);
- }
- }
-
- }
-
- public boolean remove(IBsscXMLConsumer var1) {
- return this.m_vecConsumer.removeElement(var1);
- }
- }
-