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

Class LTBlockImpl

  • java.lang.Object
    • org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      • org.eclipse.emf.ecore.impl.BasicEObjectImpl
        • org.eclipse.emf.ecore.impl.EObjectImpl
          • com.ibm.rational.test.common.models.behavior.impl.CBNamedElementImpl
            • com.ibm.rational.test.common.models.behavior.impl.CBActionElementImpl
              • com.ibm.rational.test.common.models.behavior.impl.CBBlockElementImpl
                • com.ibm.rational.test.common.models.behavior.impl.CBBlockImpl
                  • 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

      Constructors 
      Modifier Constructor and Description
      protected LTBlockImpl() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      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, addReferences, canCopy, canMove, createConcreteClasses, doCopy, doMove, doMove, eNotify, findProblemsWithCopy, findProblemsWithMove, getFactoryClass, getInheritedCBActionElements, getReference, isControlBlock, moveAction, moveReference, removeReferences, setAction, setProperty, setProperty, validateSelection
      • 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, setMovingToNewTestArgs, 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 interface com.ibm.rational.test.common.models.behavior.CBBlockElement

        isControlBlock
      • 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. 2013. All rights reserved.