Class LeafConditionImpl
- 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.ecp.view.spi.rule.model.impl.ConditionImpl
-
- org.eclipse.emf.ecp.view.spi.rule.model.impl.LeafConditionImpl
-
- All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier
,org.eclipse.emf.ecore.EObject
,org.eclipse.emf.ecore.InternalEObject
,Condition
,LeafCondition
public class LeafConditionImpl extends ConditionImpl implements LeafCondition
An implementation of the model object 'Leaf Condition'.- Since:
- 1.2
The following features are implemented:
-
-
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 java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
-
-
Field Summary
Fields Modifier and Type Field Description protected static CompareType
COMPARE_TYPE_EDEFAULT
The default value of the 'Compare Type
' attribute.protected CompareType
compareType
The cached value of the 'Compare Type
' attribute.protected VDomainModelReference
domainModelReference
The cached value of the 'Domain Model Reference
' containment reference.protected static java.lang.Object
EXPECTED_VALUE_EDEFAULT
The default value of the 'Expected Value
' attribute.protected java.lang.Object
expectedValue
The cached value of the 'Expected Value
' attribute.protected VDomainModelReference
valueDomainModelReference
The cached value of the 'Value Domain Model Reference
' containment reference.-
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LeafConditionImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.common.notify.NotificationChain
basicSetDomainModelReference(VDomainModelReference newDomainModelReference, org.eclipse.emf.common.notify.NotificationChain msgs)
org.eclipse.emf.common.notify.NotificationChain
basicSetValueDomainModelReference(VDomainModelReference newValueDomainModelReference, org.eclipse.emf.common.notify.NotificationChain msgs)
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)
boolean
evaluate(org.eclipse.emf.ecore.EObject domainModel)
Evaluates the given condition.boolean
evaluateChangedValues(org.eclipse.emf.ecore.EObject domainModel, java.util.Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,java.lang.Object> possibleNewValues)
Evaluates the given condition.CompareType
getCompareType()
VDomainModelReference
getDomainModelReference()
java.lang.Object
getExpectedValue()
VDomainModelReference
getValueDomainModelReference()
void
setCompareType(CompareType newCompareType)
void
setDomainModelReference(VDomainModelReference newDomainModelReference)
void
setExpectedValue(java.lang.Object newExpectedValue)
void
setValueDomainModelReference(VDomainModelReference newValueDomainModelReference)
java.lang.String
toString()
-
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, eNotificationRequired, eNotify
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
EXPECTED_VALUE_EDEFAULT
protected static final java.lang.Object EXPECTED_VALUE_EDEFAULT
The default value of the 'Expected Value
' attribute.- See Also:
getExpectedValue()
-
expectedValue
protected java.lang.Object expectedValue
The cached value of the 'Expected Value
' attribute.- See Also:
getExpectedValue()
-
domainModelReference
protected VDomainModelReference domainModelReference
The cached value of the 'Domain Model Reference
' containment reference.- See Also:
getDomainModelReference()
-
valueDomainModelReference
protected VDomainModelReference valueDomainModelReference
The cached value of the 'Value Domain Model Reference
' containment reference.- Since:
- 1.5
- See Also:
getValueDomainModelReference()
-
COMPARE_TYPE_EDEFAULT
protected static final CompareType COMPARE_TYPE_EDEFAULT
The default value of the 'Compare Type
' attribute.- Since:
- 1.11
- See Also:
getCompareType()
-
compareType
protected CompareType compareType
The cached value of the 'Compare Type
' attribute.- Since:
- 1.11
- See Also:
getCompareType()
-
-
Method Detail
-
eStaticClass
protected org.eclipse.emf.ecore.EClass eStaticClass()
- Overrides:
eStaticClass
in classConditionImpl
-
getExpectedValue
public java.lang.Object getExpectedValue()
- Specified by:
getExpectedValue
in interfaceLeafCondition
- Returns:
- the value of the 'Expected Value' attribute.
- See Also:
LeafCondition.setExpectedValue(Object)
,RulePackage.getLeafCondition_ExpectedValue()
-
setExpectedValue
public void setExpectedValue(java.lang.Object newExpectedValue)
- Specified by:
setExpectedValue
in interfaceLeafCondition
- Parameters:
newExpectedValue
- the new value of the 'Expected Value' attribute.- See Also:
LeafCondition.getExpectedValue()
-
getDomainModelReference
public VDomainModelReference getDomainModelReference()
- Specified by:
getDomainModelReference
in interfaceLeafCondition
- Returns:
- the value of the 'Domain Model Reference' containment reference.
- See Also:
LeafCondition.setDomainModelReference(VDomainModelReference)
,RulePackage.getLeafCondition_DomainModelReference()
-
basicSetDomainModelReference
public org.eclipse.emf.common.notify.NotificationChain basicSetDomainModelReference(VDomainModelReference newDomainModelReference, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setDomainModelReference
public void setDomainModelReference(VDomainModelReference newDomainModelReference)
- Specified by:
setDomainModelReference
in interfaceLeafCondition
- Parameters:
newDomainModelReference
- the new value of the 'Domain Model Reference' containment reference.- See Also:
LeafCondition.getDomainModelReference()
-
getValueDomainModelReference
public VDomainModelReference getValueDomainModelReference()
- Specified by:
getValueDomainModelReference
in interfaceLeafCondition
- Returns:
- the value of the 'Value Domain Model Reference' containment reference.
- Since:
- 1.5
- See Also:
LeafCondition.setValueDomainModelReference(VDomainModelReference)
,RulePackage.getLeafCondition_ValueDomainModelReference()
-
basicSetValueDomainModelReference
public org.eclipse.emf.common.notify.NotificationChain basicSetValueDomainModelReference(VDomainModelReference newValueDomainModelReference, org.eclipse.emf.common.notify.NotificationChain msgs)
- Since:
- 1.5
-
setValueDomainModelReference
public void setValueDomainModelReference(VDomainModelReference newValueDomainModelReference)
- Specified by:
setValueDomainModelReference
in interfaceLeafCondition
- Parameters:
newValueDomainModelReference
- the new value of the 'Value Domain Model Reference' containment reference.- Since:
- 1.5
- See Also:
LeafCondition.getValueDomainModelReference()
-
getCompareType
public CompareType getCompareType()
- Specified by:
getCompareType
in interfaceLeafCondition
- Returns:
- the value of the 'Compare Type' attribute.
- Since:
- 1.11
- See Also:
CompareType
,LeafCondition.setCompareType(CompareType)
,RulePackage.getLeafCondition_CompareType()
-
setCompareType
public void setCompareType(CompareType newCompareType)
- Specified by:
setCompareType
in interfaceLeafCondition
- Parameters:
newCompareType
- the new value of the 'Compare Type' attribute.- Since:
- 1.11
- See Also:
CompareType
,LeafCondition.getCompareType()
-
eInverseRemove
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
- Overrides:
eInverseRemove
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eGet
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
- Specified by:
eGet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eGet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eSet
public void eSet(int featureID, java.lang.Object newValue)
- Specified by:
eSet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eSet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eUnset
public void eUnset(int featureID)
- Specified by:
eUnset
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eUnset
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eIsSet
public boolean eIsSet(int featureID)
- Specified by:
eIsSet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eIsSet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
toString
public java.lang.String toString()
- Overrides:
toString
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
evaluate
public boolean evaluate(org.eclipse.emf.ecore.EObject domainModel)
Evaluates the given condition.- Specified by:
evaluate
in interfaceCondition
- Parameters:
domainModel
- The root domain object of this condition.- Returns:
true
, if the condition matches,false
otherwise- Since:
- 1.9
- See Also:
Condition.evaluate(org.eclipse.emf.ecore.EObject)
-
evaluateChangedValues
public boolean evaluateChangedValues(org.eclipse.emf.ecore.EObject domainModel, java.util.Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,java.lang.Object> possibleNewValues)
Evaluates the given condition.- Specified by:
evaluateChangedValues
in interfaceCondition
- Parameters:
domainModel
- The root domain object of this condition.possibleNewValues
- the new value that should be compared against the expected value of the condition- Returns:
true
, if the condition matches,false
otherwise- Since:
- 1.9
- See Also:
Condition.evaluateChangedValues(org.eclipse.emf.ecore.EObject, java.util.Map)
-
-