IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.models.behavior.common.impl
Class LTBlockImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by com.ibm.rational.test.common.models.behavior.impl.CBNamedElementImpl
                  extended by com.ibm.rational.test.common.models.behavior.impl.CBActionElementImpl
                      extended by com.ibm.rational.test.common.models.behavior.impl.CBBlockElementImpl
                          extended by com.ibm.rational.test.common.models.behavior.impl.CBBlockImpl
                              extended by com.ibm.rational.test.lt.models.behavior.common.impl.LTBlockImpl
All Implemented Interfaces:
CBActionElement, CBBlock, com.ibm.rational.test.common.models.behavior.CBBlockElement, CBNamedElement, com.ibm.rational.test.common.models.behavior.edit.CBCloneable, com.ibm.rational.test.common.models.behavior.edit.CBEdit, com.ibm.rational.test.common.models.behavior.errors.CBErrorHost, com.ibm.rational.test.common.models.behavior.internal.CBTempData, LTBlock, IAdaptable, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject
Direct Known Subclasses:
OptionImpl, VerificationPointImpl

public abstract class LTBlockImpl
extends com.ibm.rational.test.common.models.behavior.impl.CBBlockImpl
implements LTBlock

An implementation of the model object 'LT Block'.


Nested Class Summary
 
Nested classes/interfaces 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/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
 
Fields inherited from class com.ibm.rational.test.common.models.behavior.impl.CBBlockImpl
cbErrors, cbRequirementTarget
 
Fields inherited from class com.ibm.rational.test.common.models.behavior.impl.CBActionElementImpl
ALWAYS_LOG_EDEFAULT, alwaysLog, DISABLED_COUNT_EDEFAULT, disabledCount, enableMode, TRANSFORM_ID_EDEFAULT, transformID, TYPE
 
Fields inherited from class com.ibm.rational.test.common.models.behavior.impl.CBNamedElementImpl
namedElement
 
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 com.ibm.rational.test.common.models.behavior.edit.CBEdit
MOVE_OLD_PARENT_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected LTBlockImpl()
           
 
Method Summary
 void addProxy(LTBlock element, org.eclipse.emf.common.util.EList proxyList)
          This method creates and adds a ProxyElement to the proxy list for aggregations.
 CBActionElement createActionObject(String type)
           
 com.ibm.rational.test.lt.models.behavior.lttest.ProxyElement createProxy(LTBlock element)
          This method creates the corresponding ProxyElement for the given LTBlock element.
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 CBActionElement findNextProxyReference(LTTest test, String id, String ofType)
          This method locates the first Proxy element from the beginning of the test that is referencing the element with the given id and is of the given ofType.
 List getActions()
          Return a list with the actions contained in the Block.
 int getPropertyValue(String property, int def)
          This method returns the value of the attribute passed.
 String getPropertyValue(String property, String def)
          This method returns the value of the attribute passed.
 boolean isProxyReference(org.eclipse.emf.common.notify.Notification notification)
          This method figures out if the current Notification is related to a ProxyElement.
 void processRemoval(CBTest fromTest)
           
 void processRemoval(LTTest fromTest)
          Performs any processing that needs to take place when this current element is removed from the test.
 void removeProxy(LTBlock element, org.eclipse.emf.common.util.EList proxyList)
          This method removes the ProxyElement for the given element from the proxy list
protected  void removeReference(org.eclipse.emf.common.notify.Notification notification)
           
 void setType(String theType)
          Set the type that this IAction represents.
 
Methods inherited from class com.ibm.rational.test.common.models.behavior.impl.CBBlockImpl
basicSetCBRequirementTarget, canHostCBErrors, doClone, eGet, eInverseRemove, eIsSet, eSet, eUnset, getCBErrors, getCBRequirementTarget, isErrorGenerator, modifyText, resetDisabledCount, setCBRequirementTarget, setEnabled, validate
 
Methods inherited from class com.ibm.rational.test.common.models.behavior.impl.CBBlockElementImpl
addAction, addReference, canCopy, canMove, createConcreteClasses, doCopy, doMove, eNotify, findProblemsWithCopy, findProblemsWithMove, getFactoryClass, getInheritedCBActionElements, getReference, isControlBlock, moveAction, moveReference, setAction, setProperty, setProperty
 
Methods inherited from class com.ibm.rational.test.common.models.behavior.impl.CBActionElementImpl
canDisable, canEnable, enable, eNotificationRequired, getAction, getAdapter, getBooleanProperty, getByteProperty, getCharProperty, getChildren, getDisabledCount, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getMovingFrom, getName, getParent, getShortProperty, getStringProperty, getTempAttribute, getTransformID, getType, isAlwaysLog, isCloneable, isEnabled, isMoving, move, setActionType, setAlwaysLog, setDisabledCount, setName, setNotificationRequired, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTempAttribute, setTransformID, toString
 
Methods inherited from class com.ibm.rational.test.common.models.behavior.impl.CBNamedElementImpl
getDescription, getId, getNamedElement, getStopId, getTempAttribute, getTempAttributes, setDescription, setId, setNamedElement, setTempAttribute, unsetTempAttribute
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdapters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.rational.test.common.models.behavior.CBBlock
getCBErrors, getCBRequirementTarget, setCBRequirementTarget
 
Methods inherited from interface com.ibm.rational.test.common.models.behavior.CBBlockElement
isControlBlock
 
Methods inherited from interface com.ibm.rational.test.common.models.behavior.CBActionElement
canDisable, canEnable, enable, getAction, getBooleanProperty, getByteProperty, getCharProperty, getDisabledCount, getDoubleProperty, getFloatProperty, getInheritedCBActionElements, getIntProperty, getLongProperty, getMovingFrom, getParent, getShortProperty, getStringProperty, getTransformID, getType, isAlwaysLog, isEnabled, isMoving, move, resetDisabledCount, setAction, setAlwaysLog, setDisabledCount, setEnabled, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTransformID, validate
 
Methods inherited from interface com.ibm.rational.test.common.models.behavior.CBNamedElement
getDescription, getId, getName, getStopId, setDescription, setId, setName
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface com.ibm.rational.test.common.models.behavior.internal.CBTempData
getTempAttribute, getTempAttribute, getTempAttributes, setTempAttribute, setTempAttribute, unsetTempAttribute
 
Methods inherited from interface com.ibm.rational.test.common.models.behavior.edit.CBCloneable
doClone, isCloneable
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface com.ibm.rational.test.common.models.behavior.edit.CBEdit
canCopy, canMove, doCopy, doMove, findProblemsWithCopy, findProblemsWithMove
 
Methods inherited from interface com.ibm.rational.test.common.models.behavior.errors.CBErrorHost
canHostCBErrors, isErrorGenerator
 

Constructor Detail

LTBlockImpl

protected LTBlockImpl()

Method Detail

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()

Overrides:
eStaticClass in class com.ibm.rational.test.common.models.behavior.impl.CBBlockImpl

setType

public final void setType(String theType)
Description copied from interface: CBActionElement
Set the type that this IAction represents.

Specified by:
setType in interface CBActionElement
Overrides:
setType in class com.ibm.rational.test.common.models.behavior.impl.CBActionElementImpl
Parameters:
theType - The actual class of the IAction as a fully qualified class name.

createActionObject

public CBActionElement createActionObject(String type)
Overrides:
createActionObject in class com.ibm.rational.test.common.models.behavior.impl.CBBlockElementImpl

getPropertyValue

public int getPropertyValue(String property,
                            int def)
This method returns the value of the attribute passed. If the property has not yet been set, it returns the default value def passed to it.

Parameters:
property - - name of the property
def - - default value of the property
Returns:
- value of the property, default if not yet set

getPropertyValue

public String getPropertyValue(String property,
                               String def)
This method returns the value of the attribute passed. If the property has not yet been set, it returns the default value def passed to it.

Parameters:
property - - name of the property
def - - default value of property passed it
Returns:
String

getActions

public List getActions()
Description copied from interface: CBBlock
Return a list with the actions contained in the Block. In order to add objects simply add to the list. Objects can also be removed by using the standard List methods.

Specified by:
getActions in interface CBBlock
Specified by:
getActions in interface com.ibm.rational.test.common.models.behavior.CBBlockElement
Overrides:
getActions in class com.ibm.rational.test.common.models.behavior.impl.CBBlockImpl
Returns:
A list with the contained IActions.

addProxy

public void addProxy(LTBlock element,
                     org.eclipse.emf.common.util.EList proxyList)
Description copied from interface: LTBlock
This method creates and adds a ProxyElement to the proxy list for aggregations.

Specified by:
addProxy in interface LTBlock

removeProxy

public void removeProxy(LTBlock element,
                        org.eclipse.emf.common.util.EList proxyList)
Description copied from interface: LTBlock
This method removes the ProxyElement for the given element from the proxy list

Specified by:
removeProxy in interface LTBlock

createProxy

public com.ibm.rational.test.lt.models.behavior.lttest.ProxyElement createProxy(LTBlock element)
                                                                         throws UnsupportedOperationException
Description copied from interface: LTBlock
This method creates the corresponding ProxyElement for the given LTBlock element. This needs to be implemented by the LTBlock that contains the ProxyElement

Specified by:
createProxy in interface LTBlock
Returns:
ProxyElement
Throws:
UnsupportedOperationException

isProxyReference

public boolean isProxyReference(org.eclipse.emf.common.notify.Notification notification)
Description copied from interface: LTBlock
This method figures out if the current Notification is related to a ProxyElement.

Specified by:
isProxyReference in interface LTBlock
Returns:
boolean

removeReference

protected void removeReference(org.eclipse.emf.common.notify.Notification notification)
Overrides:
removeReference in class com.ibm.rational.test.common.models.behavior.impl.CBBlockElementImpl

processRemoval

public void processRemoval(LTTest fromTest)
Description copied from interface: LTBlock
Performs any processing that needs to take place when this current element is removed from the test. It should also propagate this removal information to any shildren of this element.

Specified by:
processRemoval in interface LTBlock
Parameters:
fromTest - - the LTTest that this element is being removed from

processRemoval

public void processRemoval(CBTest fromTest)
Specified by:
processRemoval in interface CBBlock
Specified by:
processRemoval in interface com.ibm.rational.test.common.models.behavior.CBBlockElement
Overrides:
processRemoval in class com.ibm.rational.test.common.models.behavior.impl.CBBlockImpl

findNextProxyReference

public CBActionElement findNextProxyReference(LTTest test,
                                              String id,
                                              String ofType)
This method locates the first Proxy element from the beginning of the test that is referencing the element with the given id and is of the given ofType. The ofType argument is optional and should be set to null if that filter is not needed.

Parameters:
test -
id -
ofType -
Returns:
CBActionElement

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.