Overview | Package | Class | Use | Tree | Help
| HEADER
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## ru.biosoft.access
Class DerivedDataCollection

    ru.biosoft.access.DataElementSupport
      |
      +--ru.biosoft.access.AbstractDataCollection
            |
            +--ru.biosoft.access.DerivedDataCollection

Direct Known Subclasses:
  VariablesDataCollection, Module, FilteredDataCollection, TransformedDataCollection

public class DerivedDataCollection
extends AbstractDataCollection

General class for derived data collection.

Subclasses should provide the difference of derived data collection from primary one.

Derived data collection is listener of primary data collection. This implementation provides delegation primary data collection events to listeners of derived data collection.

Constructor Summary
`DerivedDataCollection(DataCollection parent, Properties properties)` Constructs derived data collection with primary collection.

Method Summary
`void` | `close()` Destroys primary collection
`boolean` | `contains(String name)` Calls DataCollection.contains(java.lang.String) method of primary data collection.
`boolean` | `contains(DataElement de)` Calls DataCollection.contains(ru.biosoft.access.DataElement) method of primary data collection.
`DataElement` | `doGet(String name)` Calls DataCollection.get(java.lang.String) method of primary collection
`Class` | `getDataElementType()` Calls DataCollection.getDataElementType() method of primary data collection.
`DataCollectionInfo` | `getInfo()` Calls DataCollection.getInfo() method of primary data collection.
`List` | `getNameList()` Calls DataCollection.getNameList() method of primary data collection
`int` | `getSize()` Calls DataCollection.getSize() method of primary data collection.
`boolean` | `isMutable()` Calls DataCollection.isMutable() method of primary data collection.
`Iterator` | `iterator()` Calls DataCollection.iterator() method of primary data collection
`String` | `toString()` Returns a string representation of the derived data collection

Methods inherited from class ru.biosoft.access.AbstractDataCollection
`addDataCollectionListener, get, getCompleteName, init, propagateElementChanged, propagateElementWillChange, put, remove, removeDataCollectionListener`

Methods inherited from class ru.biosoft.access.DataElementSupport
`getName, getOrigin, registerConstructorWithBadEqual`

Constructor Detail

### DerivedDataCollection

    public DerivedDataCollection(DataCollection parent, Properties properties)

  Constructs derived data collection with primary collection.
  Parameters:
    collection
    properties - Properties for creating data collection .
  pending high DataCollectionListener, high exception treating

Method Detail

### close

    public void close()

  Destroys primary collection
  todo Remove temp code when collections will be destroyed in other place

### contains

    public boolean contains(String name)

  Calls DataCollection.contains(java.lang.String) method of primary data collection.
  Parameters:
    name - specified name of data element
  Returns: true if primary data collection contains element with specified name,
  false otherwise..

### contains

    public boolean contains(DataElement de)

  Calls DataCollection.contains(ru.biosoft.access.DataElement) method of primary data collection.
  Parameters:
    de - specified data element
  Returns: true if primary data collection contains specified element ,
  false otherwise..

### doGet

    public DataElement doGet(String name)
                       throws java.lang.Exception

  Calls DataCollection.get(java.lang.String) method of primary collection
  Parameters:
    name - Name of specified data element.
  Returns: the specified data element from the primary collection.
  Throws:
    Exception - If any error

### getDataElementType

    public Class getDataElementType()

  Calls DataCollection.getDataElementType() method of primary data collection.
  Returns: Type of data elements stored in the primary data collection.

### getInfo

    public DataCollectionInfo getInfo()

  Calls DataCollection.getInfo() method of primary data collection.
  Returns: Data collection info data collection info.
  See Also:
    DataCollectionInfo, collection

### getNameList

    public List getNameList()

  Calls DataCollection.getNameList() method of primary data collection
  Returns: primary data collection name list.

### getSize

    public int getSize()

  Calls DataCollection.getSize() method of primary data collection.
  Returns: Number of data element in primary data collection.

### isMutable

    public boolean isMutable()

  Calls DataCollection.isMutable() method of primary data collection.
  Returns: true if primary data collection is mutable,
  false otherwise..

### iterator

    public Iterator iterator()

  Calls DataCollection.iterator() method of primary data collection
  Returns: an iterator over the data elements in primary collection.

### toString

    public String toString()

  Returns a string representation of the derived data collection
  Returns: string representation of the derived data collection

Association Links

to Class ru.biosoft.access.DataCollection

  Primary collection.

Overview | Package | Class | Use | Tree | Help
| FOOTER
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

BOTTOM