|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.hyades.models.common.common.impl.CMNNamedElementImpl
org.eclipse.hyades.models.common.configuration.impl.CFGClassImpl
org.eclipse.hyades.models.common.datapool.impl.DPLDatapoolImpl
An implementation of the model object 'DPL Datapool'.
The following features are implemented:
| Nested Class Summary |
|---|
| Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
|---|
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl |
| Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
|---|
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList |
| Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject |
|---|
org.eclipse.emf.ecore.InternalEObject.EStore |
| Field Summary | |
|---|---|
static java.lang.String |
copyright
|
protected DPLDatapoolSpec |
datapoolSpec
The cached value of the ' Datapool Spec' containment reference |
protected int |
defaultEquivalenceClass
default equivalence class |
protected org.eclipse.emf.common.util.EList |
equivalenceClasses
The cached value of the ' Equivalence Classes' containment reference list |
protected org.eclipse.core.runtime.ListenerList |
listenerList
listeners associated with this datapool |
| Fields inherited from class org.eclipse.hyades.models.common.configuration.impl.CFGClassImpl |
|---|
environmentVariables, instances, instantiations, operations |
| Fields inherited from class org.eclipse.hyades.models.common.common.impl.CMNNamedElementImpl |
|---|
description, DESCRIPTION_EDEFAULT, id, ID_EDEFAULT, name, NAME_EDEFAULT |
| Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
|---|
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY |
| Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
|---|
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET |
| Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
|---|
EOPPOSITE_FEATURE_BASE |
| Constructor Summary | |
|---|---|
protected |
DPLDatapoolImpl()
|
| Method Summary | |
|---|---|
void |
addDatapoolListener(IDatapoolListener listener)
Register a listener for actions against the datapool that modify the data or structure of the data model. |
void |
appendEquivalenceClass(IDatapoolEquivalenceClass equivalenceClass)
Append the supplied equivalence class to the end
of the set of available equivalence classes. |
void |
appendVariable(IDatapoolVariable variable)
Append a variable to the end of the datapool ordered variable collection. |
org.eclipse.emf.common.notify.NotificationChain |
basicSetDatapoolSpec(DPLDatapoolSpec newDatapoolSpec,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
IDatapoolEquivalenceClass |
constructEquivalenceClass()
Constructs an empty equivalence class |
IDatapoolVariable |
constructVariable()
Constructs an empty variable |
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
org.eclipse.emf.common.notify.NotificationChain |
eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
boolean |
eIsSet(int featureID)
|
void |
eSet(int featureID,
java.lang.Object newValue)
|
protected org.eclipse.emf.ecore.EClass |
eStaticClass()
|
void |
eUnset(int featureID)
|
IDatapoolListener |
getDatapoolListener()
Returns the first listener from the datapool instance (convenience method) |
IDatapoolListener[] |
getDatapoolListeners()
Returns current listeners from the datapool instance (convenience method) |
DPLDatapoolSpec |
getDatapoolSpec()
|
int |
getDefaultEquivalenceClassIndex()
Accessor for the default equivalence class
in the datapool. |
IDatapoolEquivalenceClass |
getEquivalenceClass(int index)
Accessor for the equivalence class at the specified
zero based index in the datapool. |
int |
getEquivalenceClassCount()
Returns the number of equivalence classes
associated with a datapool. |
org.eclipse.emf.common.util.EList |
getEquivalenceClasses()
|
int |
getEquivalenceClassIndex(java.lang.String equivalenceClassName)
Locate an equivalence class by name
within an instance of a datapool. |
int |
getEquivalenceClassIndexById(java.lang.String equivalenceClassId)
Locate an equivalence class by ID
within an instance of a datapool. |
java.lang.String |
getLocation()
Returns the location of the deployable component. |
ITest |
getOwner()
Returns the test suite that owns this deployable component. |
java.lang.String |
getResource()
Returns the resource of the deployable component. |
IDatapoolVariable |
getVariable(int variableIndex)
The variable at a specified zero based column index. |
int |
getVariableCount()
The number of variables available in each record. |
int |
getVariableIndex(java.lang.String variableName)
Locates the appropriate index associated with a specific variable name. |
int |
getVariableIndexById(java.lang.String variableId)
Locates the appropriate index associated with a specific variable ID. |
void |
insertEquivalenceClass(IDatapoolEquivalenceClass equivalenceClass,
int beforeEquivalenceClassIndex)
Insert the equivalence class at a
supplied index. |
protected void |
insertEquivalenceClassDoNotNotify(IDatapoolEquivalenceClass equivalenceClass,
int beforeEquivalenceClassIndex)
Helper function Insert the equivalence class at a
supplied index. |
void |
insertVariable(IDatapoolVariable variable,
int beforeVariableIndex)
Insert a variable before the variable at the specified zero based variable index. |
protected void |
insertVariableDoNotNotify(IDatapoolVariable variable,
int beforeVariableIndex)
Helper function Insert a variable before the variable at the specified zero based variable index. |
void |
logDatapoolAsStrings()
Convenience method - for testing |
void |
moveEquivalenceClass(int sourceEquivalenceClassIndex,
int targetEquivalenceClassIndex)
Move the equivalence class at a
supplied index to a new position within the set of available equivalence classes. |
void |
moveVariable(int sourceVariableIndex,
int targetVariableIndex)
Move a variable to immediately before another variable. |
void |
removeDatapoolListener(IDatapoolListener listener)
Removes a listener from the datapool instance. |
void |
removeEquivalenceClass(int equivalenceClassIndex)
Remove the equivalence class at a
supplied index. |
protected void |
removeEquivalenceClassDoNotNotify(int equivalenceClassIndex)
Helper function Remove the equivalence class at a
supplied index. |
void |
removeVariable(int variableIndex)
Remove the specified variable from the datapool. |
protected void |
removeVariableDoNotNotify(int variableIndex)
Helper function Remove the specified variable from the datapool. |
void |
setDatapoolSpec(DPLDatapoolSpec newDatapoolSpec)
|
void |
setDefaultEquivalenceClassIndex(int equivalenceClassIndex)
Define the default equivalence class
in a datapool. |
void |
setLocation(java.lang.String location)
Sets the location of the deployable component. |
void |
setResource(java.lang.String resource)
Sets the resource of the deployable component. |
void |
updateEquivalenceClass(IDatapoolEquivalenceClass equivalenceClass,
int equivalenceClassIndex)
Replace the equivalence class at a
supplied index with a new value. |
void |
updateVariable(IDatapoolVariable variable,
int variableIndex)
Update the variable at a specified zero based variable index. |
| Methods inherited from class org.eclipse.hyades.models.common.configuration.impl.CFGClassImpl |
|---|
eInverseAdd, getEnvironmentVariables, getInstances, getInstantiations, getMethods, getOperations |
| Methods inherited from class org.eclipse.hyades.models.common.common.impl.CMNNamedElementImpl |
|---|
getAdapter, getDescription, getId, getName, setDescription, setId, setName, toString |
| Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
|---|
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI |
| Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
|---|
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues |
| Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
|---|
eNotificationRequired, eNotify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.hyades.models.common.configuration.CFGClass |
|---|
getInstances, getInstantiations, getOperations |
| Methods inherited from interface org.eclipse.hyades.models.common.common.CMNNamedElement |
|---|
getDescription, getId, getName, setDescription, setId, setName |
| Methods inherited from interface org.eclipse.emf.ecore.EObject |
|---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
| Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
|---|
eAdapters, eDeliver, eNotify, eSetDeliver |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Methods inherited from interface org.eclipse.hyades.models.common.facades.behavioral.IDeployableComponent |
|---|
getEnvironmentVariables, getMethods |
| Methods inherited from interface org.eclipse.hyades.models.common.facades.behavioral.INamedElement |
|---|
getDescription, getId, getName, setDescription, setId, setName |
| Methods inherited from interface org.eclipse.hyades.execution.runtime.datapool.INamedElement |
|---|
getDescription, getId, getName |
| Methods inherited from interface org.eclipse.hyades.edit.datapool.INamedElement |
|---|
setDescription, setId, setName |
| Methods inherited from interface org.eclipse.emf.ecore.InternalEObject |
|---|
eNotificationRequired |
| Field Detail |
public static final java.lang.String copyright
protected org.eclipse.emf.common.util.EList equivalenceClasses
Equivalence Classes' containment reference list.
getEquivalenceClasses()protected DPLDatapoolSpec datapoolSpec
Datapool Spec' containment reference.
getDatapoolSpec()protected int defaultEquivalenceClass
protected org.eclipse.core.runtime.ListenerList listenerList
| Constructor Detail |
protected DPLDatapoolImpl()
| Method Detail |
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass in class CFGClassImplpublic org.eclipse.emf.common.util.EList getEquivalenceClasses()
getEquivalenceClasses in interface DPLDatapoolCommon_DatapoolPackage.getDPLDatapool_EquivalenceClasses()public DPLDatapoolSpec getDatapoolSpec()
getDatapoolSpec in interface DPLDatapoolDPLDatapool.setDatapoolSpec(DPLDatapoolSpec),
Common_DatapoolPackage.getDPLDatapool_DatapoolSpec()
public org.eclipse.emf.common.notify.NotificationChain basicSetDatapoolSpec(DPLDatapoolSpec newDatapoolSpec,
org.eclipse.emf.common.notify.NotificationChain msgs)
public void setDatapoolSpec(DPLDatapoolSpec newDatapoolSpec)
setDatapoolSpec in interface DPLDatapoolnewDatapoolSpec - the new value of the 'Datapool Spec' containment reference.DPLDatapool.getDatapoolSpec()
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseRemove in class CFGClassImpl
public java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
eGet in interface org.eclipse.emf.ecore.InternalEObjecteGet in class CFGClassImpl
public void eSet(int featureID,
java.lang.Object newValue)
eSet in interface org.eclipse.emf.ecore.InternalEObjecteSet in class CFGClassImplpublic void eUnset(int featureID)
eUnset in interface org.eclipse.emf.ecore.InternalEObjecteUnset in class CFGClassImplpublic boolean eIsSet(int featureID)
eIsSet in interface org.eclipse.emf.ecore.InternalEObjecteIsSet in class CFGClassImplpublic java.lang.String getLocation()
IDeployableComponent
getLocation in interface IDeployableComponentgetLocation in class CFGClassImplpublic ITest getOwner()
IDeployableComponentThis reference is bidirectional and its opposite is
ITestSuite#getTestComponents().
getOwner in interface IDeployableComponentgetOwner in class CFGClassImplpublic java.lang.String getResource()
IDeployableComponent
getResource in interface IDeployableComponentgetResource in class CFGClassImplpublic void setLocation(java.lang.String location)
IDeployableComponent
setLocation in interface IDeployableComponentsetLocation in class CFGClassImplpublic void setResource(java.lang.String resource)
IDeployableComponent
setResource in interface IDeployableComponentsetResource in class CFGClassImpl
public void updateVariable(IDatapoolVariable variable,
int variableIndex)
updateVariable in interface IDatapoolvariable - The variable for the cells at variableIndex.variableIndex - A zero based variable index.getVariableIndex(String),
getVariableIndexById(String),
getVariable(int)
public void insertVariable(IDatapoolVariable variable,
int beforeVariableIndex)
insertVariable in interface IDatapoolvariable - The new variable for the cells at beforeVariableIndex.beforeVariableIndex - A zero based variable index.appendVariable(IDatapoolVariable),
moveVariable(int,int),
removeVariable(int)
protected void insertVariableDoNotNotify(IDatapoolVariable variable,
int beforeVariableIndex)
variable - The new variable for the cells at beforeVariableIndex.beforeVariableIndex - A zero based variable index.public void appendVariable(IDatapoolVariable variable)
appendVariable in interface IDatapoolvariable - The variable instance to append.insertVariable(IDatapoolVariable,int),
moveVariable(int,int),
removeVariable(int)
public void moveVariable(int sourceVariableIndex,
int targetVariableIndex)
moveVariable in interface IDatapoolsourceVariableIndex - A zero based variable index for the
variable to be moved.targetVariableIndex - The variable index marking the target
location for the move action.insertVariable(IDatapoolVariable,int),
appendVariable(IDatapoolVariable),
removeVariable(int)public void removeVariable(int variableIndex)
removeVariable in interface IDatapoolvariableIndex - A zero based variable index for the variable to
be removed.insertVariable(IDatapoolVariable,int),
appendVariable(IDatapoolVariable),
moveVariable(int,int)protected void removeVariableDoNotNotify(int variableIndex)
variableIndex - A zero based variable index for the variable to
be removed.public void setDefaultEquivalenceClassIndex(int equivalenceClassIndex)
equivalence class
in a datapool.
setDefaultEquivalenceClassIndex in interface IDatapoolequivalenceClassIndex - The zero-based index for the default equivalence class.getDefaultEquivalenceClassIndex()
public void updateEquivalenceClass(IDatapoolEquivalenceClass equivalenceClass,
int equivalenceClassIndex)
equivalence class at a
supplied index with a new value. This method is essentially a
shortcut for a call to removeEquivalenceClass
followed by a call to
insertEquivalenceClass.
updateEquivalenceClass in interface IDatapoolequivalenceClass - The equivalence class to insert.equivalenceClassIndex - The equivalence class indsex to remove and insert at.insertEquivalenceClass(IDatapoolEquivalenceClass,int),
appendEquivalenceClass(IDatapoolEquivalenceClass),
moveEquivalenceClass(int,int),
removeEquivalenceClass(int)
public void insertEquivalenceClass(IDatapoolEquivalenceClass equivalenceClass,
int beforeEquivalenceClassIndex)
equivalence class at a
supplied index. The records in the equivalence
class must match the layout of all other records in the datapool.
insertEquivalenceClass in interface IDatapoolequivalenceClass - The equivalence class to insert.beforeEquivalenceClassIndex - The equivalence class index to insert before.updateEquivalenceClass(IDatapoolEquivalenceClass,int),
appendEquivalenceClass(IDatapoolEquivalenceClass),
moveEquivalenceClass(int,int),
removeEquivalenceClass(int)
protected void insertEquivalenceClassDoNotNotify(IDatapoolEquivalenceClass equivalenceClass,
int beforeEquivalenceClassIndex)
equivalence class at a
supplied index. Do not notify listeners.
equivalenceClass - The equivalence class to insert.beforeEquivalenceClassIndex - The equivalence class index to insert before.public void appendEquivalenceClass(IDatapoolEquivalenceClass equivalenceClass)
equivalence class to the end
of the set of available equivalence classes. The records in
the equivalence class must match the layout of all other records in the datapool.
appendEquivalenceClass in interface IDatapoolequivalenceClass - The equivalence class to append.updateEquivalenceClass(IDatapoolEquivalenceClass,int),
insertEquivalenceClass(IDatapoolEquivalenceClass,int),
moveEquivalenceClass(int,int),
removeEquivalenceClass(int)
public void moveEquivalenceClass(int sourceEquivalenceClassIndex,
int targetEquivalenceClassIndex)
equivalence class at a
supplied index to a new position within the set of available equivalence classes.
moveEquivalenceClass in interface IDatapoolsourceEquivalenceClassIndex - The equivalence class index to move.targetEquivalenceClassIndex - The equivalence class destination index.updateEquivalenceClass(IDatapoolEquivalenceClass,int),
insertEquivalenceClass(IDatapoolEquivalenceClass,int),
appendEquivalenceClass(IDatapoolEquivalenceClass),
removeEquivalenceClass(int)public void removeEquivalenceClass(int equivalenceClassIndex)
equivalence class at a
supplied index.
removeEquivalenceClass in interface IDatapoolequivalenceClassIndex - The equivalence class indsex to remove.updateEquivalenceClass(IDatapoolEquivalenceClass,int),
insertEquivalenceClass(IDatapoolEquivalenceClass,int),
appendEquivalenceClass(IDatapoolEquivalenceClass),
moveEquivalenceClass(int,int)protected void removeEquivalenceClassDoNotNotify(int equivalenceClassIndex)
equivalence class at a
supplied index. Do not notify listeners.
equivalenceClassIndex - The equivalence class indsex to remove.public void addDatapoolListener(IDatapoolListener listener)
addDatapoolListener in interface IDatapoolIDatapoolListenerpublic IDatapoolListener getDatapoolListener()
IDatapoolListenerpublic IDatapoolListener[] getDatapoolListeners()
IDatapoolListenerpublic void removeDatapoolListener(IDatapoolListener listener)
removeDatapoolListener in interface IDatapoolIDatapoolListenerpublic int getVariableCount()
getVariableCount in interface IDatapoolpublic IDatapoolVariable getVariable(int variableIndex)
DatapoolException is thrown if the
specified index is not valid.
getVariable in interface IDatapoolvariableIndex - A zero based variable index.
getVariableIndex(String)public int getVariableIndex(java.lang.String variableName)
variable name. Users will depend
on this method to determine the appropriate cell to access
within a record given a current record and a variable name.
The current record is typically made available from
an iterator that is performing an
ordered traversal of the records in a datapool.
getVariableIndex in interface IDatapoolvariableName - The name of the variable associated
with the desired cell.
getVariableIndexById(String)public int getVariableIndexById(java.lang.String variableId)
variable ID. Users may use
this method to determine the appropriate cell to access
within a record given a current record and a variable ID.
getVariableIndexById in interface IDatapoolvariableId - The ID of the variable associated
with the desired cell.
getVariableIndex(String)public int getEquivalenceClassCount()
equivalence classes
associated with a datapool.
getEquivalenceClassCount in interface IDatapoolpublic IDatapoolEquivalenceClass getEquivalenceClass(int index)
equivalence class at the specified
zero based index in the datapool. If an invalid index is supplied a
DatapoolException with an appropriate message is thrown.
getEquivalenceClass in interface IDatapoolpublic int getDefaultEquivalenceClassIndex()
equivalence class
in the datapool. If the default equivalence class has not been defined then
a value of -1 is returned.
getDefaultEquivalenceClassIndex in interface IDatapoolpublic int getEquivalenceClassIndex(java.lang.String equivalenceClassName)
equivalence class by name
within an instance of a datapool.
getEquivalenceClassIndex in interface IDatapoolgetEquivalenceClassIndexById(String)public int getEquivalenceClassIndexById(java.lang.String equivalenceClassId)
equivalence class by ID
within an instance of a datapool.
getEquivalenceClassIndexById in interface IDatapoolgetEquivalenceClassIndex(String)public void logDatapoolAsStrings()
public IDatapoolEquivalenceClass constructEquivalenceClass()
constructEquivalenceClass in interface IDatapoolpublic IDatapoolVariable constructVariable()
constructVariable in interface IDatapool
|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||