gate
Class DataStoreRegister

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractSet
              |
              +--java.util.HashSet
                    |
                    +--gate.DataStoreRegister
All Implemented Interfaces:
Cloneable, Collection, Serializable, Set

public class DataStoreRegister
extends HashSet

Records all the open DataStores.

See Also:
Serialized Form

Field Summary
private  Vector creoleListeners
           
 
Fields inherited from class java.util.HashSet
map, PRESENT
 
Constructor Summary
DataStoreRegister()
           
 
Method Summary
 boolean add(Object o)
          Adds the specified element to this set if it is not already present.
 void addCreoleListener(CreoleListener l)
          Registers a new CreoleListener with this DataStoreRegister.
 void clear()
          Removes all of the elements from this set.
protected  void fireDatastoreClosed(CreoleEvent e)
          Notifies all registered CreoleListeners that a DataStore has been closed.
protected  void fireDatastoreCreated(CreoleEvent e)
          Notifies all registered CreoleListeners that a new DataStore has been created.
protected  void fireDatastoreOpened(CreoleEvent e)
          Notifies all registered CreoleListeners that a DataStore has been opened.
static Map getDataStoreClassNames()
          All the DataStore classes available.
 boolean remove(Object o)
          Removes the given element from this set if it is present.
 void removeCreoleListener(CreoleListener l)
          Removes a previously registered CreoleListener from the list of listeners for this DataStoreRegister.
 
Methods inherited from class java.util.HashSet
, clone, contains, isEmpty, iterator, readObject, size, writeObject
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Field Detail

creoleListeners

private transient Vector creoleListeners
Constructor Detail

DataStoreRegister

public DataStoreRegister()
Method Detail

getDataStoreClassNames

public static Map getDataStoreClassNames()
All the DataStore classes available. This is a map of class name to descriptive text.

add

public boolean add(Object o)
Adds the specified element to this set if it is not already present. Overriden here for event registration code.
Overrides:
add in class HashSet

remove

public boolean remove(Object o)
Removes the given element from this set if it is present. Overriden here for event registration code.
Overrides:
remove in class HashSet

clear

public void clear()
Removes all of the elements from this set. Overriden here for event registration code.
Overrides:
clear in class HashSet

removeCreoleListener

public void removeCreoleListener(CreoleListener l)
Removes a previously registered CreoleListener from the list of listeners for this DataStoreRegister. Normally the only listener that is registered with the DataStoreRegister is the CreoleRegister which can be obtained through Gate.getCreoleRegister()

addCreoleListener

public void addCreoleListener(CreoleListener l)
Registers a new CreoleListener with this DataStoreRegister. Normally the only listener that is registered with the DataStoreRegister is the CreoleRegister which can be obtained through Gate.getCreoleRegister()

fireDatastoreOpened

protected void fireDatastoreOpened(CreoleEvent e)
Notifies all registered CreoleListeners that a DataStore has been opened. Normally the only listener that is registered with the DataStoreRegister is the CreoleRegister which can be obtained through Gate.getCreoleRegister()

fireDatastoreCreated

protected void fireDatastoreCreated(CreoleEvent e)
Notifies all registered CreoleListeners that a new DataStore has been created. Normally the only listener that is registered with the DataStoreRegister is the CreoleRegister which can be obtained through Gate.getCreoleRegister()

fireDatastoreClosed

protected void fireDatastoreClosed(CreoleEvent e)
Notifies all registered CreoleListeners that a DataStore has been closed. Normally the only listener that is registered with the DataStoreRegister is the CreoleRegister which can be obtained through Gate.getCreoleRegister()