biouml.plugins.sbw
Class SbwService
java.lang.Object
ru.biosoft.access.DataElementSupport
ru.biosoft.access.AbstractDataCollection
ru.biosoft.access.VectorDataCollection
biouml.plugins.sbw.SbwService
- All Implemented Interfaces:
- DataCollection, DataElement
- public class SbwService
- extends VectorDataCollection
| Fields inherited from interface ru.biosoft.access.DataCollection |
CHILDREN_NODE_IMAGE, CHILDREN_NODE_VISIBLE, CLASS_PROPERTY, CLASSPATH_JAR_PROPERTY, COMPARATOR_OBJECT, CONFIG_FILE_PROPERTY, CONFIG_PATH_PROPERTY, DATA_ELEMENT_CLASS_PROPERTY, DEFAULT_CONFIG_FILE, DEFAULT_CONFIG_SUFFIX, DEFAULT_FILTER_CONFIG_SUFFIX, DEFAULT_FORMAT_CONFIG_SUFFIX, DEFAULT_NODE_CONFIG_SUFFIX, DEFAULT_REPOSITORY, DESCRIPTION_PROPERTY, DISPLAY_NAME_PROPERTY, FILE_PATH_PROPERTY, FILE_PROPERTY, FILTER_PROPERTY, ID_FORMAT, IS_ROOT, JOB_CONTROL_PROPERTY, LATE_CHILDREN_INITIALIZATION, MUTABLE, NAME_PROPERTY, NEXT_CONFIG, NODE_IMAGE, NODE_VISIBLE, PRIMARY_COLLECTION, REMOVE_CHILDREN, TRANSFORMER_CLASS |
|
Method Summary |
protected DataElement |
doGet(java.lang.String name)
Returns the element with the specified name from this data collection. |
DataElement |
getAt(int index)
Returns the element at the specified position in this data collection. |
java.lang.Class |
getDataElementType()
Gets the type of DataElements stored in the data collection.
|
java.util.List |
getNameList()
Returns an unmodifiable list of the data element names contained in this data collection.
|
edu.caltech.sbw.Service |
getService()
|
edu.caltech.sbw.ServiceDescriptor |
getServiceDescriptor()
|
int |
getSize()
Returns the number of data elements in this data collection. |
protected void |
init()
|
protected void |
init(edu.caltech.sbw.ServiceDescriptor descriptor)
|
boolean |
isMutable()
Returns false.
|
java.util.Iterator |
iterator()
Returns an iterator over the elements in this list in alphabetically sorted sequence. |
| Methods inherited from class ru.biosoft.access.AbstractDataCollection |
addDataCollectionListener, cachePut, checkMutable, contains, contains, doAddPostNotify, doAddPreNotify, doRemovePostNotify, doRemovePreNotify, finalize, fireElementAdded, fireElementChanged, fireElementRemoved, fireElementWillAdd, fireElementWillChange, fireElementWillRemove, get, getCompleteName, getDescription, getInfo, initLog, isNotificationEnabled, isPropagationEnabled, makeInfo, propagateElementChanged, propagateElementWillChange, registerRoot, release, remove, removeDataCollectionListener, setNotificationEnabled, setPropagationEnabled, toString |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
isInit
protected boolean isInit
service
protected edu.caltech.sbw.Service service
serviceDescriptor
protected edu.caltech.sbw.ServiceDescriptor serviceDescriptor
SbwService
public SbwService(SbwServiceCategory parent,
edu.caltech.sbw.ServiceDescriptor descriptor)
SbwService
public SbwService(SbwModule parent,
edu.caltech.sbw.ServiceDescriptor descriptor)
throws java.lang.Exception
init
protected void init(edu.caltech.sbw.ServiceDescriptor descriptor)
init
protected void init()
getService
public edu.caltech.sbw.Service getService()
throws java.lang.Exception
- Throws:
java.lang.Exception
getServiceDescriptor
public edu.caltech.sbw.ServiceDescriptor getServiceDescriptor()
isMutable
public boolean isMutable()
- Description copied from class:
AbstractDataCollection
- Returns false.
Override this method for return correct value.
- Specified by:
isMutable in interface DataCollection- Overrides:
isMutable in class AbstractDataCollection
- Returns:
- Always return false.
getDataElementType
public java.lang.Class getDataElementType()
- Description copied from class:
AbstractDataCollection
- Gets the type of DataElements stored in the data collection.
The DataElement type should be specified using {&link DATA_ELEMENT_CLASS_PROPERTY}
or should be specified in derived collections.
- Specified by:
getDataElementType in interface DataCollection- Overrides:
getDataElementType in class AbstractDataCollection
- Returns:
- Type of DataElements stored in the data collection.
getSize
public int getSize()
- Description copied from class:
VectorDataCollection
- Returns the number of
data elements in this data collection.
- Specified by:
getSize in interface DataCollection- Overrides:
getSize in class VectorDataCollection
- Returns:
- the number of data elements in this data collection.
doGet
protected DataElement doGet(java.lang.String name)
- Description copied from class:
VectorDataCollection
- Returns the element with the specified name from this data collection.
- Overrides:
doGet in class VectorDataCollection
- Parameters:
name - name of element to return.
- Returns:
- the element with the specified name in this data collection.
- See Also:
AbstractDataCollection.get(String)
getAt
public DataElement getAt(int index)
- Description copied from class:
VectorDataCollection
- Returns the element at the specified position in this data collection.
- Overrides:
getAt in class VectorDataCollection
- Parameters:
index - index of element to return.
- Returns:
- the element at the specified position in this data collection.
iterator
public java.util.Iterator iterator()
- Description copied from class:
VectorDataCollection
- Returns an iterator over the elements in this list in alphabetically sorted sequence.
- Specified by:
iterator in interface DataCollection- Overrides:
iterator in class VectorDataCollection
- Returns:
- an iterator over the elements in this list in alphabetically sorted sequence.
getNameList
public java.util.List getNameList()
- Description copied from class:
VectorDataCollection
- Returns an unmodifiable list of the data element names contained in this data collection.
Query operations on the returned list "read through" to the internal name list,
and attempts to modify the returned list, whether direct or via its iterator,
result in an
UnsupportedOperationException.
The returned list is backed by the data collection,
so changes to the data collection are reflected in the returned list.
- Specified by:
getNameList in interface DataCollection- Overrides:
getNameList in class VectorDataCollection
- Returns:
- Names of all elements in this data collection in alphabetically sorted order.
Copyright © 2001-2003 Biosof.Ru. All Rights Reserved.