TPTP 4.2.0 Platform Project
Public API Specification

org.eclipse.hyades.models.common.datapool.impl
Class DPLVariableImpl

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended byorg.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended byorg.eclipse.emf.ecore.impl.EObjectImpl
              extended byorg.eclipse.hyades.models.common.common.impl.CMNNamedElementImpl
                  extended byorg.eclipse.hyades.models.common.datapool.impl.DPLVariableImpl
All Implemented Interfaces:
CMNNamedElement, DPLVariable, org.eclipse.emf.ecore.EObject, org.eclipse.core.runtime.IAdaptable, IDatapoolVariable, IDatapoolVariable, INamedElement, INamedElement, org.eclipse.emf.ecore.InternalEObject, org.eclipse.emf.common.notify.Notifier

public class DPLVariableImpl
extends CMNNamedElementImpl
implements DPLVariable

An implementation of the model object 'DPL Variable'.

The following features are implemented:

Generated

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  DPLRole role
          The cached value of the 'Role' attribute
protected static DPLRole ROLE_EDEFAULT
          The default value of the 'Role' attribute
protected  java.lang.String type
          The cached value of the 'Type' attribute
protected static java.lang.String TYPE_EDEFAULT
          The default value of the 'Type' attribute
protected  org.eclipse.emf.common.util.EList variables
          The cached value of the 'Variables' containment reference list
 
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.hyades.execution.runtime.datapool.IDatapoolVariable
ROLE_INPUT_DATA, ROLE_INPUT_OUTPUT_DATA, ROLE_OUTPUT_DATA, ROLE_UNSPECIFIED, ROLE_VERIFICATION_DATA
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected DPLVariableImpl()
           
 
Method Summary
 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)
           
 DPLRole getRole()
           
 int getRoleAsInt()
          Accesor for the role associated with a variable.
 IDatapoolSuggestedType getSuggestedType()
          The suggested type of the data associated with this variable.
 java.lang.String getType()
           
 org.eclipse.emf.common.util.EList getVariables()
           
 void setName(java.lang.String name)
          Sets the value of the 'Name' attribute
 void setRole(DPLRole newRole)
           
 void setRole(int role)
          Define the role associated with a variable.
 void setSuggestedType(IDatapoolSuggestedType suggestedType)
          Define the type associated with this variable.
 void setType(java.lang.String newType)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.hyades.models.common.common.impl.CMNNamedElementImpl
getAdapter, getDescription, getId, getName, setDescription, setId
 
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, 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.common.CMNNamedElement
getDescription, getId, getName, setDescription, setId
 
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.execution.runtime.datapool.INamedElement
getDescription, getId, getName
 
Methods inherited from interface org.eclipse.hyades.edit.datapool.INamedElement
setDescription, setId
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values
Generated

TYPE_EDEFAULT

protected static final java.lang.String TYPE_EDEFAULT
The default value of the 'Type' attribute.

See Also:
getType()
Generated
[EMF] Ordered

type

protected java.lang.String type
The cached value of the 'Type' attribute.

See Also:
getType()
Generated
[EMF] Ordered

ROLE_EDEFAULT

protected static final DPLRole ROLE_EDEFAULT
The default value of the 'Role' attribute.

See Also:
getRole()
Generated
[EMF] Ordered

role

protected DPLRole role
The cached value of the 'Role' attribute.

See Also:
getRole()
Generated
[EMF] Ordered

variables

protected org.eclipse.emf.common.util.EList variables
The cached value of the 'Variables' containment reference list.

See Also:
getVariables()
Generated
[EMF] Ordered
Constructor Detail

DPLVariableImpl

protected DPLVariableImpl()

Generated
Method Detail

eStaticClass

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

Overrides:
eStaticClass in class CMNNamedElementImpl
Generated

getType

public java.lang.String getType()

Specified by:
getType in interface DPLVariable
Returns:
the value of the 'Type' attribute.
See Also:
DPLVariable.setType(String), Common_DatapoolPackage.getDPLVariable_Type()
Generated

setType

public void setType(java.lang.String newType)

Specified by:
setType in interface DPLVariable
Parameters:
newType - the new value of the 'Type' attribute.
See Also:
DPLVariable.getType()
Generated

getRole

public DPLRole getRole()

Specified by:
getRole in interface DPLVariable
Returns:
the value of the 'Role' attribute.
See Also:
DPLRole, DPLVariable.setRole(DPLRole), Common_DatapoolPackage.getDPLVariable_Role()
Generated

setRole

public void setRole(DPLRole newRole)

Specified by:
setRole in interface DPLVariable
Parameters:
newRole - the new value of the 'Role' attribute.
See Also:
DPLRole, DPLVariable.getRole()
Generated

getVariables

public org.eclipse.emf.common.util.EList getVariables()

Specified by:
getVariables in interface DPLVariable
Returns:
the value of the 'Variables' containment reference list.
See Also:
Common_DatapoolPackage.getDPLVariable_Variables()
Generated

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Generated

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class CMNNamedElementImpl
Generated

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class CMNNamedElementImpl
Generated

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class CMNNamedElementImpl
Generated

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class CMNNamedElementImpl
Generated

toString

public java.lang.String toString()

Overrides:
toString in class CMNNamedElementImpl
Generated

setSuggestedType

public void setSuggestedType(IDatapoolSuggestedType suggestedType)
Define the type associated with this variable.

Specified by:
setSuggestedType in interface IDatapoolVariable
Parameters:
suggestedType - The type associated with this variable.
See Also:
getSuggestedType()

setRole

public void setRole(int role)
Define the role associated with a variable.

Specified by:
setRole in interface IDatapoolVariable
Parameters:
role - The role to associate with a variable.
See Also:
getRole(), IDatapoolVariable.ROLE_UNSPECIFIED, IDatapoolVariable.ROLE_INPUT_DATA, IDatapoolVariable.ROLE_OUTPUT_DATA, IDatapoolVariable.ROLE_INPUT_OUTPUT_DATA, IDatapoolVariable.ROLE_VERIFICATION_DATA

getSuggestedType

public IDatapoolSuggestedType getSuggestedType()
The suggested type of the data associated with this variable. As implied by the name there is no enforcement of the type of data in any cell of the datapool. However, an editor could take advantage of the type information to improve display and editing of cells within the display.

Specified by:
getSuggestedType in interface IDatapoolVariable
Returns:
The suggested type associated with this variable.

getRoleAsInt

public int getRoleAsInt()
Accesor for the role associated with a variable. The role may be used by an editor to control the type of data that may be applied to an individual cell with a datapool.

Specified by:
getRoleAsInt in interface IDatapoolVariable
Returns:
The role associated with a variable.
See Also:
IDatapoolVariable.ROLE_UNSPECIFIED, IDatapoolVariable.ROLE_INPUT_DATA, IDatapoolVariable.ROLE_OUTPUT_DATA, IDatapoolVariable.ROLE_INPUT_OUTPUT_DATA, IDatapoolVariable.ROLE_VERIFICATION_DATA

setName

public void setName(java.lang.String name)
Description copied from interface: CMNNamedElement
Sets the value of the 'Name' attribute.

Specified by:
setName in interface CMNNamedElement
Overrides:
setName in class CMNNamedElementImpl

TPTP 4.2.0 Platform Project
Public API Specification