TPTP 4.1.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:


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.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 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(org.eclipse.emf.ecore.EStructuralFeature eFeature, boolean resolve)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, java.lang.Class baseClass, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)
           
 void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature, java.lang.Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)
           
 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
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalResource, eInverseAdd, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount, eStore, eURIFragmentSegment
 
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, eIsProxy, eResource
 
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

TYPE_EDEFAULT

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

See Also:
getType()

type

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

See Also:
getType()

ROLE_EDEFAULT

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

See Also:
getRole()

role

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

See Also:
getRole()

variables

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

See Also:
getVariables()
Constructor Detail

DPLVariableImpl

protected DPLVariableImpl()

Method Detail

eStaticClass

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

Overrides:
eStaticClass in class CMNNamedElementImpl

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()

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()

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()

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()

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()

eInverseRemove

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

Specified by:
eInverseRemove in interface org.eclipse.emf.ecore.InternalEObject

eGet

public java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
                             boolean resolve)

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

eSet

public void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
                 java.lang.Object newValue)

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

eUnset

public void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)

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

eIsSet

public boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)

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

toString

public java.lang.String toString()

Overrides:
toString in class CMNNamedElementImpl

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.1.0 Platform Project
Public API Specification