|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectru.biosoft.access.DataElementSupport
ru.biosoft.access.AbstractDataCollection
ru.biosoft.access.DataCollectionUnion
Collection that is union of several collections. This class has its own agreement of names.
| Field Summary |
| Fields inherited from class ru.biosoft.access.AbstractDataCollection |
cat, info, notificationEnabled, path, propagationEnabled, v_cache |
| Constructor Summary | |
DataCollectionUnion(DataCollection dc,
java.util.Properties properties)
Make union of all collections contained in specified data collection. |
|
| Method Summary | |
void |
addCollection(DataCollection dc)
Add all elements from specified collection to union. |
boolean |
contains(DataElement element)
Returns true if this data collection contains
the specified data element. |
DataElement |
get(java.lang.String name)
Returns the DataElement with the specified composite name.
|
java.util.List |
getNameList()
Return name list of all data elements in this union. |
int |
getSize()
Returns the number of elements in this data collection union. |
java.util.Iterator |
iterator()
Returns an iterator over the data elements in this collection. |
void |
removeCollection(java.lang.String name)
Removes all elements contained in collection with specified name from union. |
| Methods inherited from class ru.biosoft.access.DataElementSupport |
getName, getOrigin, registerConstructorWithBadEqual |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ru.biosoft.access.DataCollection |
addDataCollectionListener, close, contains, getCompleteName, getDataElementType, getInfo, isMutable, isNotificationEnabled, isPropagationEnabled, propagateElementChanged, propagateElementWillChange, put, release, remove, removeDataCollectionListener, setNotificationEnabled, setPropagationEnabled |
| Methods inherited from interface ru.biosoft.access.DataElement |
getName, getOrigin |
| Constructor Detail |
public DataCollectionUnion(DataCollection dc,
java.util.Properties properties)
DataCollection.NAME_PROPERTY
dc - Collection which contain data collections for union.| Method Detail |
public void addCollection(DataCollection dc)
CollectionUnion
addCollection in interface CollectionUniondc - Collection with data elements which will be added to union.public void removeCollection(java.lang.String name)
CollectionUnion
removeCollection in interface CollectionUnionname - Simple name of data collection which contains elements to remove
from union.public int getSize()
getSize in interface DataCollectiongetSize in class AbstractDataCollectionpublic boolean contains(DataElement element)
true if this data collection contains
the specified data element.
contains in interface DataCollectioncontains in class AbstractDataCollectionelement - tested data element.
AbstractDataCollection.contains(String)
public DataElement get(java.lang.String name)
throws java.lang.Exception
DataElement with the specified composite name.
Returns null if the data collection
contains no data element for this name.
get in interface DataCollectionget in class AbstractDataCollectionname - Name in format 'data_collection_name/data_element_name'.
data_collection_name - name of collection in which
data_element_name element contains.
DataElement with specified composite name or null if
colection have no data element with specified name.
java.lang.IllegalArgumentException - if argument invalid.
java.lang.Exception - if an error occurs.AbstractDataCollection.doGet(String),
AbstractDataCollection.v_cachepublic java.util.Iterator iterator()
iterator in interface DataCollectionpublic java.util.List getNameList()
UnsupportedOperationException.
// *
// * The returned list is backed by the data collection,
// * so changes to the data collection are reflected in the returned list.
// *
// * The name list can be sorted or unsorted depending on the DataCollection
// * implementing class.
// *
getNameList in interface DataCollectiongetNameList in class AbstractDataCollection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||