|
||||||||||
| 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
ru.biosoft.access.FileCollection
FileCollection is DataCollection for storing FileDataElement objects .
This data collection is storage for files of corresponding subdirectory
| Field Summary | |
static java.lang.String |
FILE_FILTER
Property for storing filter file extension |
protected java.io.FileFilter |
filter
FileFilter is used to select needed files from root directory as well as to check added filed . |
protected java.io.File |
root
Subdirectory corresponded with this collection. |
| Fields inherited from class ru.biosoft.access.VectorDataCollection |
INITIAL_SIZE, vector |
| Fields inherited from class ru.biosoft.access.AbstractDataCollection |
cat, info, notificationEnabled, path, propagationEnabled, v_cache |
| Constructor Summary | |
FileCollection(DataCollection parent,
java.util.Properties properties)
Constructs data collection with parent. |
|
| Method Summary | |
void |
close()
Removes all of the elements from this data collection. |
protected void |
doPut(DataElement dataElement,
boolean isNew)
Puts FileDataElement to the collection . |
protected void |
doRemove(java.lang.String name)
Removes FileDataElement element from collection, and removes corresponding file in subdirectory. |
java.lang.Class |
getDataElementType()
Returns FileDataElement.class |
java.io.File |
getFile()
|
protected void |
init(java.util.Properties properties)
Initialize file collection from the properties. |
| Methods inherited from class ru.biosoft.access.VectorDataCollection |
doGet, getAt, getNameList, getSize, iterator, put, toArray |
| 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 java.lang.String FILE_FILTER
protected java.io.File root
protected java.io.FileFilter filter
#doPut(DataElement )| Constructor Detail |
public FileCollection(DataCollection parent,
java.util.Properties properties)
throws java.io.IOException
DataCollection.NAME_PROPERTYru.biosoft.access.DataCollection#PATH_PROPERTYFILE_FILTERDataCollection.NODE_IMAGEDataCollection.CHILDREN_NODE_IMAGEDataCollection.NODE_VISIBLEDataCollection.CHILDREN_NODE_VISIBLE
parent - Parent data collection.properties - Properties for creating data collection .| Method Detail |
public void close()
throws java.lang.Exception
VectorDataCollection
close in interface DataCollectionclose in class VectorDataCollectionjava.lang.Exceptionprotected void init(java.util.Properties properties)
ChainRuntimeException - If error occurs.public java.lang.Class getDataElementType()
FileDataElement.class
getDataElementType in interface DataCollectiongetDataElementType in class AbstractDataCollectionFileDataElement.class
protected void doPut(DataElement dataElement,
boolean isNew)
throws java.lang.Exception
doPut in class VectorDataCollectiondataElement - FileDataElement objectisNew - indicates whether this dataElement is new.
java.lang.Exception - If current filter does not accept file (has other extension) .AbstractDataCollection.put(DataElement)public java.io.File getFile()
protected void doRemove(java.lang.String name)
throws java.lang.Exception
doRemove in class VectorDataCollectionjava.lang.Exception - If removal is not successful.AbstractDataCollection.remove(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||