org.eclipse.ocl.uml.impl
Class IfExpImpl
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.emf.ecore.impl.FlatEObjectImpl
org.eclipse.emf.ecore.impl.EModelElementImpl
org.eclipse.uml2.uml.internal.impl.ElementImpl
org.eclipse.uml2.uml.internal.impl.NamedElementImpl
org.eclipse.uml2.uml.internal.impl.TypedElementImpl
org.eclipse.ocl.uml.impl.OCLExpressionImpl
org.eclipse.ocl.uml.impl.IfExpImpl
- All Implemented Interfaces:
- Notifier, EModelElement, EObject, InternalEObject, IfExp<Classifier>, OCLExpression<Classifier>, ASTNode, Visitable, Element, NamedElement, TypedElement
public class IfExpImpl
- extends OCLExpressionImpl
- implements IfExp
An implementation of the model object 'If Exp'.
The following features are implemented:
Fields inherited from class org.eclipse.uml2.uml.internal.impl.TypedElementImpl |
type |
Fields inherited from class org.eclipse.uml2.uml.internal.impl.NamedElementImpl |
clientDependencies, name, NAME_EDEFAULT, NAME_ESETFLAG, nameExpression, OWNED_ELEMENT_ESUBSETS, QUALIFIED_NAME_EDEFAULT, VISIBILITY_EDEFAULT, VISIBILITY_EFLAG, VISIBILITY_EFLAG_DEFAULT, VISIBILITY_EFLAG_OFFSET, VISIBILITY_EFLAG_VALUES, VISIBILITY_ESETFLAG |
Fields inherited from class org.eclipse.uml2.uml.internal.impl.ElementImpl |
ownedComments |
Method Summary |
<T,U extends Visitor<T,?,?,?,?,?,?,?,?,?>>
T |
|
accept(U v)
|
NotificationChain |
basicSetCondition(OCLExpression<Classifier> newCondition,
NotificationChain msgs)
|
NotificationChain |
basicSetElseExpression(OCLExpression<Classifier> newElseExpression,
NotificationChain msgs)
|
NotificationChain |
basicSetThenExpression(OCLExpression<Classifier> newThenExpression,
NotificationChain msgs)
|
boolean |
checkBooleanCondition(DiagnosticChain diagnostics,
Map<Object,Object> context)
|
boolean |
checkIfType(DiagnosticChain diagnostics,
Map<Object,Object> context)
|
int |
eBaseStructuralFeatureID(int derivedFeatureID,
Class<?> baseClass)
|
int |
eDerivedStructuralFeatureID(int baseFeatureID,
Class<?> baseClass)
|
Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
NotificationChain msgs)
|
boolean |
eIsSet(int featureID)
|
void |
eSet(int featureID,
Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(int featureID)
|
OCLExpression<Classifier> |
getCondition()
|
OCLExpression<Classifier> |
getElseExpression()
|
OCLExpression<Classifier> |
getThenExpression()
|
void |
setCondition(OCLExpression<Classifier> newCondition)
|
void |
setElseExpression(OCLExpression<Classifier> newElseExpression)
|
void |
setThenExpression(OCLExpression<Classifier> newThenExpression)
|
Methods inherited from class org.eclipse.uml2.uml.internal.impl.TypedElementImpl |
basicGetType, setType |
Methods inherited from class org.eclipse.uml2.uml.internal.impl.NamedElementImpl |
allNamespaces, allOwningPackages, basicGetNameExpression, basicGetNamespace, basicGetNamespaceGen, basicGetOwner, basicSetNameExpression, createDependency, createNameExpression, createUsage, eInverseAdd, eObjectForURIFragmentSegment, eURIFragmentSegment, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getOwnedElements, getOwner, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetNamespace, isSetNamespaceGen, isSetOwnedElements, isSetOwner, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership |
Methods inherited from class org.eclipse.uml2.uml.internal.impl.ElementImpl |
addKeyword, allOwnedElements, applyStereotype, basicGetOwnerGen, create, createEAnnotation, createOwnedComment, destroy, eAdapters, eBasicSetContainer, eNotificationRequired, eNotify, eSetDeliver, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getCacheAdapter, getKeywords, getModel, getNearestPackage, getOwnedComments, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isSetOwnerGen, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf |
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
eAddVirtualValue, eAllContents, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, 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, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues |
Methods inherited from interface org.eclipse.uml2.uml.NamedElement |
allNamespaces, allOwningPackages, createDependency, createNameExpression, createUsage, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership |
Methods inherited from interface org.eclipse.uml2.uml.Element |
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
condition
protected OCLExpression<Classifier> condition
- The cached value of the '
Condition
' containment reference.
- See Also:
getCondition()
thenExpression
protected OCLExpression<Classifier> thenExpression
- The cached value of the '
Then Expression
' containment reference.
- See Also:
getThenExpression()
elseExpression
protected OCLExpression<Classifier> elseExpression
- The cached value of the '
Else Expression
' containment reference.
- See Also:
getElseExpression()
IfExpImpl
protected IfExpImpl()
-
eStaticClass
protected EClass eStaticClass()
-
- Overrides:
eStaticClass
in class OCLExpressionImpl
getCondition
public OCLExpression<Classifier> getCondition()
-
- Specified by:
getCondition
in interface IfExp<Classifier>
- Returns:
- the value of the 'Condition' containment reference.
- See Also:
IfExp.setCondition(OCLExpression)
,
ExpressionsPackage.getIfExp_Condition()
basicSetCondition
public NotificationChain basicSetCondition(OCLExpression<Classifier> newCondition,
NotificationChain msgs)
-
setCondition
public void setCondition(OCLExpression<Classifier> newCondition)
-
- Specified by:
setCondition
in interface IfExp<Classifier>
- Parameters:
newCondition
- the new value of the 'Condition' containment reference.- See Also:
IfExp.getCondition()
getThenExpression
public OCLExpression<Classifier> getThenExpression()
-
- Specified by:
getThenExpression
in interface IfExp<Classifier>
- Returns:
- the value of the 'Then Expression' containment reference.
- See Also:
IfExp.setThenExpression(OCLExpression)
,
ExpressionsPackage.getIfExp_ThenExpression()
basicSetThenExpression
public NotificationChain basicSetThenExpression(OCLExpression<Classifier> newThenExpression,
NotificationChain msgs)
-
setThenExpression
public void setThenExpression(OCLExpression<Classifier> newThenExpression)
-
- Specified by:
setThenExpression
in interface IfExp<Classifier>
- Parameters:
newThenExpression
- the new value of the 'Then Expression' containment reference.- See Also:
IfExp.getThenExpression()
getElseExpression
public OCLExpression<Classifier> getElseExpression()
-
- Specified by:
getElseExpression
in interface IfExp<Classifier>
- Returns:
- the value of the 'Else Expression' containment reference.
- See Also:
IfExp.setElseExpression(OCLExpression)
,
ExpressionsPackage.getIfExp_ElseExpression()
basicSetElseExpression
public NotificationChain basicSetElseExpression(OCLExpression<Classifier> newElseExpression,
NotificationChain msgs)
-
setElseExpression
public void setElseExpression(OCLExpression<Classifier> newElseExpression)
-
- Specified by:
setElseExpression
in interface IfExp<Classifier>
- Parameters:
newElseExpression
- the new value of the 'Else Expression' containment reference.- See Also:
IfExp.getElseExpression()
checkBooleanCondition
public boolean checkBooleanCondition(DiagnosticChain diagnostics,
Map<Object,Object> context)
-
- Specified by:
checkBooleanCondition
in interface IfExp<Classifier>
- Parameters:
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
checkIfType
public boolean checkIfType(DiagnosticChain diagnostics,
Map<Object,Object> context)
-
- Specified by:
checkIfType
in interface IfExp<Classifier>
- Parameters:
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
eInverseRemove
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID,
NotificationChain msgs)
-
- Overrides:
eInverseRemove
in class org.eclipse.uml2.uml.internal.impl.NamedElementImpl
eGet
public Object eGet(int featureID,
boolean resolve,
boolean coreType)
-
- Specified by:
eGet
in interface InternalEObject
- Overrides:
eGet
in class OCLExpressionImpl
eSet
public void eSet(int featureID,
Object newValue)
-
- Specified by:
eSet
in interface InternalEObject
- Overrides:
eSet
in class OCLExpressionImpl
eUnset
public void eUnset(int featureID)
-
- Specified by:
eUnset
in interface InternalEObject
- Overrides:
eUnset
in class OCLExpressionImpl
eIsSet
public boolean eIsSet(int featureID)
-
- Specified by:
eIsSet
in interface InternalEObject
- Overrides:
eIsSet
in class OCLExpressionImpl
eBaseStructuralFeatureID
public int eBaseStructuralFeatureID(int derivedFeatureID,
Class<?> baseClass)
-
- Specified by:
eBaseStructuralFeatureID
in interface InternalEObject
- Overrides:
eBaseStructuralFeatureID
in class OCLExpressionImpl
eDerivedStructuralFeatureID
public int eDerivedStructuralFeatureID(int baseFeatureID,
Class<?> baseClass)
-
- Specified by:
eDerivedStructuralFeatureID
in interface InternalEObject
- Overrides:
eDerivedStructuralFeatureID
in class OCLExpressionImpl
accept
public <T,U extends Visitor<T,?,?,?,?,?,?,?,?,?>> T accept(U v)
-
- Specified by:
accept
in interface Visitable
- Overrides:
accept
in class OCLExpressionImpl