| HEADER | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ru.biosoft.access.DataElementSupport | +--ru.biosoft.access.AbstractDataCollection
This abstract class provides default implementations for most of
the methods in the DataCollection interface. It takes care of
the management of listeners and provides some conveniences for generating
DataCollectionEvents and dispatching them to the listeners.
To create a concrete DataCollection as a sublcass of
AbstractDataCollection you need only provide implementations for the
following methods:
DataCollection.iterator()
if concrete DataColection mutable, then next methods should be implemented
#doPut(DataElement)
#doRemove(DataElement)
| Constructor Summary | |
AbstractDataCollection(DataCollection parent, Properties properties)Constructor to be used by CollectionFactory to creata DataCollection. | |
| Method Summary | |
void | addDataCollectionListener(DataCollectionListener listener)Adds listener to this data collection. |
void | close()Close the data collection and release all used resources. |
boolean | contains(DataElement element)Check if this data collection contains the specified data element. |
boolean | contains(String name)Returns true if this data collection contains the element with specified name. |
DataElement | get(String name)Gets data element with specified name. |
String | getCompleteName()Gets complete name of data collection. |
Class | getDataElementType()Gets the type of DataElements stored in the data collection. |
String | getDescription()Utility method that returns data collection description. |
DataCollectionInfo | getInfo()Gets data collection info. |
List | getNameList()Gets list of all names in data collection. |
int | getSize()Gets size of data collection. |
boolean | isMutable()Returns false. |
boolean | isNotificationEnabled() |
boolean | isPropagationEnabled() |
void | propagateElementChanged(DataCollection source, DataCollectionEvent primaryEvent) |
void | propagateElementWillChange(DataCollection source, DataCollectionEvent primaryEvent) |
DataElement | put(DataElement element)Adds the specified data element to the collection. |
void | release(String name)Release the DataElement specified by its name from the cache. |
void | remove(String name)Removes the specified data element from the collection, if present. |
void | removeDataCollectionListener(DataCollectionListener listener)Removes listener from this data collection. |
void | setNotificationEnabled(boolean isEnabled) |
void | setPropagationEnabled(boolean propagationEnabled) |
String | toString()Returns a String representation of the data collection. |
| Methods inherited from class ru.biosoft.access.DataElementSupport |
getName, getOrigin, registerConstructorWithBadEqual |
| Constructor Detail |
public AbstractDataCollection(DataCollection parent, Properties properties)
| Method Detail |
public void addDataCollectionListener(DataCollectionListener listener)
public void close()
throws java.lang.Exception
public boolean contains(DataElement element)
public boolean contains(String name)
public DataElement get(String name)
throws java.lang.Exception
public String getCompleteName()
public Class getDataElementType()
public String getDescription()
public DataCollectionInfo getInfo()
public List getNameList()
public int getSize()
public boolean isMutable()
public boolean isNotificationEnabled()
public boolean isPropagationEnabled()
public void propagateElementChanged(DataCollection source, DataCollectionEvent primaryEvent)
public void propagateElementWillChange(DataCollection source, DataCollectionEvent primaryEvent)
public DataElement put(DataElement element)
throws java.lang.Exception
#doPut(DataElement) method is used to put the data element.
If the data collection previously contained the specified element,
the old value is replaced.public void release(String name)
public void remove(String name)
throws java.lang.Exception,
java.lang.UnsupportedOperationException
#doRemove(ru.biosoft.access.DataElement) method is used to remove the data element.public void removeDataCollectionListener(DataCollectionListener listener)
public void setNotificationEnabled(boolean isEnabled)
public void setPropagationEnabled(boolean propagationEnabled)
public String toString()
| Association Links |
to Class org.apache.log4j.Category
to Class java.lang.String
to Class ru.biosoft.access.DataCollectionInfo
to Class javax.swing.event.EventListenerList
| FOOTER | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||