|
||||||||||
| 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.VectorDataCollection
DataCollection based on Vector
( DataElement's is stored in Vector ).
| Field Summary | |
static int |
INITIAL_SIZE
Initial capacity of this collection. |
protected java.util.Vector |
vector
Back-end storage for data elements. |
| Fields inherited from class ru.biosoft.access.AbstractDataCollection |
cat, info, notificationEnabled, path, propagationEnabled, v_cache |
| Constructor Summary | |
VectorDataCollection(DataCollection parent,
java.util.Properties properties)
Constructor to be used by CollectionFactory to create VectorDataCollection.
|
|
VectorDataCollection(java.lang.String name,
DataCollection parent,
java.util.Properties properties)
Constructs data collection with specified name and parent. |
|
| Method Summary | |
void |
close()
Removes all of the elements from this data collection. |
protected DataElement |
doGet(java.lang.String name)
Returns the element with the specified name from this data collection. |
protected void |
doPut(DataElement dataElement,
boolean isNew)
Add the specified element to this data collection. |
protected void |
doRemove(java.lang.String name)
Removes the specified data element from this data collection. |
DataElement |
getAt(int index)
Returns the element at the specified position in this data collection. |
java.util.List |
getNameList()
Returns an unmodifiable list of the data element names contained in this data collection. |
int |
getSize()
Returns the number of data elements in this data collection. |
java.util.Iterator |
iterator()
Returns an iterator over the elements in this list in alphabetically sorted sequence. |
DataElement |
put(DataElement element)
Add the specified element to this data collection. |
java.lang.Object[] |
toArray(java.lang.Object[] a)
Returns an array containing all of the elements in this VectorDataCollection in the correct order; the runtime type of the returned array is that of the specified array. |
| 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.DataElement |
getName, getOrigin |
| Field Detail |
public static final int INITIAL_SIZE
protected java.util.Vector vector
| Constructor Detail |
public VectorDataCollection(DataCollection parent,
java.util.Properties properties)
CollectionFactory to create VectorDataCollection.
DataCollection.NAME_PROPERTY
parent - parent DataCollectionproperties - set of properties
public VectorDataCollection(java.lang.String name,
DataCollection parent,
java.util.Properties properties)
parent - Parent for this data collection.properties - Properties to initialise DataCollectionInfo. Can be null.| Method Detail |
public java.lang.Object[] toArray(java.lang.Object[] a)
Vector.toArray(Object[] a)public int getSize()
data elements in this data collection.
getSize in interface DataCollectiongetSize in class AbstractDataCollectionpublic java.util.Iterator iterator()
public DataElement put(DataElement element)
throws java.lang.Exception
put in interface DataCollectionput in class AbstractDataCollectionelement - element to be added to this data collection.
null if it did not have one.
java.lang.IllegalArgumentException - if dataElement is null.
java.lang.Exception - If any error occurs.AbstractDataCollection.put(DataElement)
public void close()
throws java.lang.Exception
close in interface DataCollectionclose in class AbstractDataCollectionNever - throws any exception.
java.lang.Exceptionpublic DataElement getAt(int index)
index - index of element to return.
java.lang.IndexOutOfBoundsException - if the index is out of range (index
< 0 || index >= getSize()).public 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.
getNameList in interface DataCollectiongetNameList in class AbstractDataCollectionprotected DataElement doGet(java.lang.String name)
doGet in class AbstractDataCollectionname - name of element to return.
AbstractDataCollection.get(String)
protected void doPut(DataElement dataElement,
boolean isNew)
throws java.lang.Exception
doPut in class AbstractDataCollectiondataElement - element to be added to this data collection.isNew - indicates whether this dataElement is new.
java.lang.IllegalArgumentException - if dataElement is null.
java.lang.Exception - If any error occurs.AbstractDataCollection.put(DataElement)
protected void doRemove(java.lang.String name)
throws java.lang.Exception
doRemove in class AbstractDataCollectionjava.lang.Exception - If any error occurs.AbstractDataCollection.remove(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||