|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
DataCollection is a set of homogeneous DataElements.
Every DataElement can be unambiguously accessed from the collection
by its name.
Method names in DataCollection whether it reasonable follows
to convention for Java beans methods, otherwise to convention
used by java.utils.Collection.
DataElement| Field Summary | |
static java.lang.String |
CHILDREN_NODE_IMAGE
Property for storing of image file names used for nodes of DataElement elements stored in LocalRepository collection |
static java.lang.String |
CHILDREN_NODE_VISIBLE
Property for storing of visible state. |
static java.lang.String |
CLASS_PROPERTY
Property for storing class of data collection. |
static java.lang.String |
CLASSPATH_JAR_PROPERTY
Property for storing class of data collection. |
static java.lang.String |
COMPARATOR_OBJECT
|
static java.lang.String |
CONFIG_FILE_PROPERTY
Property for storing config file name. |
static java.lang.String |
CONFIG_PATH_PROPERTY
Property for storing path to data collection config file. |
static java.lang.String |
DATA_ELEMENT_CLASS_PROPERTY
Property for storing class name of data elements stored in this data collection. |
static java.lang.String |
DEFAULT_CONFIG_FILE
Property for storing name of default data collection's config file. |
static java.lang.String |
DEFAULT_CONFIG_SUFFIX
Property for storing default suffix of data collection's config file. |
static java.lang.String |
DEFAULT_FILTER_CONFIG_SUFFIX
Property for storing suffix of FilteredDataCollection data collections |
static java.lang.String |
DEFAULT_FORMAT_CONFIG_SUFFIX
Property for storing suffix of FileEntryCollection data collections |
static java.lang.String |
DEFAULT_NODE_CONFIG_SUFFIX
Property for storing suffix of LocalRepository data collections |
static java.lang.String |
DEFAULT_REPOSITORY
Property for storing name of default repository file. |
static java.lang.String |
DESCRIPTION_PROPERTY
Property for storing data collection description. |
static java.lang.String |
DISPLAY_NAME_PROPERTY
Property for storing display name of data collection. |
static java.lang.String |
FILE_PATH_PROPERTY
Property for storing path to data collection file. |
static java.lang.String |
FILE_PROPERTY
Property for storing name of data collection's file. |
static java.lang.String |
FILTER_PROPERTY
Property for storing filter of data collection's file. |
static java.lang.String |
ID_FORMAT
Format for automatical name (identifier) generation. |
static java.lang.String |
IS_ROOT
Indicates whether this data collection should be registered as root by CollectionFactory.registerRoot(ru.biosoft.access.DataCollection). |
static java.lang.String |
JOB_CONTROL_PROPERTY
|
static java.lang.String |
LATE_CHILDREN_INITIALIZATION
Property for storing of |
static java.lang.String |
MUTABLE
Property for checking whether the data collection is mutable |
static java.lang.String |
NAME_PROPERTY
Property for storing name of data collection. |
static java.lang.String |
NEXT_CONFIG
Property for storing name of primary data collection config file. |
static java.lang.String |
NODE_IMAGE
Property for storing of image file names used for nodes of LocalRepository collections |
static java.lang.String |
NODE_VISIBLE
Property for storing of visible flag. |
static java.lang.String |
PRIMARY_COLLECTION
|
static java.lang.String |
REMOVE_CHILDREN
When removing data element from this DC, whether to remove its children |
static java.lang.String |
TRANSFORMER_CLASS
Property for storing class of transformer for TransformedDataCollection collections |
| Method Summary | |
void |
addDataCollectionListener(DataCollectionListener l)
Add a listener to the list that's notified each time a change to the data collection occurs. |
void |
close()
Closes data collection, releases all resources. |
boolean |
contains(DataElement element)
Returns true if this data collection contains the specified element, false otherwise |
boolean |
contains(java.lang.String name)
Returns true if this data collection contains the element with the specified name, false otherwise |
DataElement |
get(java.lang.String name)
Returns the DataElement with the specified name.
|
java.lang.String |
getCompleteName()
Returns complete name of data collection. |
java.lang.Class |
getDataElementType()
Returns the type of DataElements stored in the data collection. |
DataCollectionInfo |
getInfo()
Returns additional info for this data collection. |
java.util.List |
getNameList()
Returns an unmodifiable view of the data element name list. |
int |
getSize()
Returns the number of elements in this data collection. |
boolean |
isMutable()
Returns true if this data collection is mutable, false otherwise. |
boolean |
isNotificationEnabled()
|
boolean |
isPropagationEnabled()
|
java.util.Iterator |
iterator()
Returns an iterator over the data elements in this collection. |
void |
propagateElementChanged(DataCollection source,
DataCollectionEvent primaryEvent)
|
void |
propagateElementWillChange(DataCollection source,
DataCollectionEvent primaryEvent)
|
DataElement |
put(DataElement obj)
Adds the specified data element to the collection. |
void |
release(java.lang.String dataElementName)
Release DataElement with the specified name from the DataCollection cache. |
void |
remove(java.lang.String name)
Removes the specified data element from the collection, if present. |
void |
removeDataCollectionListener(DataCollectionListener l)
Remove a listener from the list that's notified each time a change to the data collection occurs. |
void |
setNotificationEnabled(boolean isEnabled)
|
void |
setPropagationEnabled(boolean isEnabled)
|
| Methods inherited from interface ru.biosoft.access.DataElement |
getName, getOrigin |
| Field Detail |
public static final java.lang.String NAME_PROPERTY
public static final java.lang.String DISPLAY_NAME_PROPERTY
public static final java.lang.String CLASS_PROPERTY
public static final java.lang.String DATA_ELEMENT_CLASS_PROPERTY
public static final java.lang.String DESCRIPTION_PROPERTY
public static final java.lang.String CLASSPATH_JAR_PROPERTY
public static final java.lang.String CONFIG_PATH_PROPERTY
public static final java.lang.String CONFIG_FILE_PROPERTY
public static final java.lang.String FILE_PATH_PROPERTY
public static final java.lang.String FILE_PROPERTY
public static final java.lang.String FILTER_PROPERTY
public static final java.lang.String DEFAULT_CONFIG_FILE
public static final java.lang.String DEFAULT_REPOSITORY
public static final java.lang.String DEFAULT_CONFIG_SUFFIX
public static final java.lang.String DEFAULT_NODE_CONFIG_SUFFIX
LocalRepository data collections
public static final java.lang.String DEFAULT_FORMAT_CONFIG_SUFFIX
FileEntryCollection data collections
public static final java.lang.String DEFAULT_FILTER_CONFIG_SUFFIX
FilteredDataCollection data collections
public static final java.lang.String NODE_IMAGE
LocalRepository collections
public static final java.lang.String CHILDREN_NODE_IMAGE
LocalRepository collection
public static final java.lang.String NODE_VISIBLE
public static final java.lang.String CHILDREN_NODE_VISIBLE
public static final java.lang.String LATE_CHILDREN_INITIALIZATION
public static final java.lang.String PRIMARY_COLLECTION
public static final java.lang.String TRANSFORMER_CLASS
TransformedDataCollection collections
public static final java.lang.String MUTABLE
public static final java.lang.String JOB_CONTROL_PROPERTY
public static final java.lang.String NEXT_CONFIG
TransformedDataCollection's to specify primary data collection
public static final java.lang.String COMPARATOR_OBJECT
public static final java.lang.String REMOVE_CHILDREN
public static final java.lang.String IS_ROOT
CollectionFactory.registerRoot(ru.biosoft.access.DataCollection).
public static final java.lang.String ID_FORMAT
| Method Detail |
public int getSize()
public java.lang.Class getDataElementType()
public boolean isMutable()
public DataCollectionInfo getInfo()
null.
DataCollectionInfopublic boolean contains(java.lang.String name)
name - name of data element
public boolean contains(DataElement element)
element - specified data element
public DataElement get(java.lang.String name)
throws java.lang.Exception
DataElement with the specified name.
Returns null if the data collection
contains no data element for this name.
java.lang.Exceptionpublic java.util.Iterator iterator()
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.
The name list can be sorted or unsorted depending on the DataCollection
implementing class.
public DataElement put(DataElement obj)
throws java.lang.Exception
java.util.UnsupportedOperationException - if the data collection is unmutable.
java.lang.ExceptionisMutable()
public void remove(java.lang.String name)
throws java.lang.Exception
java.util.UnsupportedOperationException - if the data collection is unmutable.
java.lang.Exception - If error occured.isMutable()public void addDataCollectionListener(DataCollectionListener l)
l - the DataCollectionListenerpublic void removeDataCollectionListener(DataCollectionListener l)
l - the DataCollectionListener
public void propagateElementWillChange(DataCollection source,
DataCollectionEvent primaryEvent)
public void propagateElementChanged(DataCollection source,
DataCollectionEvent primaryEvent)
public boolean isPropagationEnabled()
public void setPropagationEnabled(boolean isEnabled)
public boolean isNotificationEnabled()
public void setNotificationEnabled(boolean isEnabled)
public java.lang.String getCompleteName()
public void close()
throws java.lang.Exception
java.lang.Exception - If error occured.public void release(java.lang.String dataElementName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||