Class IterateConditionImpl
- 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.IterateConditionImpl
-
- All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier
,org.eclipse.emf.ecore.EObject
,org.eclipse.emf.ecore.InternalEObject
,Condition
,IterateCondition
public class IterateConditionImpl extends ConditionImpl implements IterateCondition
An implementation of the model object 'Iterate Condition'.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 boolean
IF_EMPTY_EDEFAULT
The default value of the 'If Empty
' attribute.protected boolean
ifEmpty
The cached value of the 'If Empty
' attribute.protected Condition
itemCondition
The cached value of the 'Item Condition
' containment reference.protected VDomainModelReference
itemReference
The cached value of the 'Item Reference
' containment reference.protected Quantifier
quantifier
The cached value of the 'Quantifier
' attribute.protected static Quantifier
QUANTIFIER_EDEFAULT
The default value of the 'Quantifier
' attribute.-
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
IterateConditionImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.common.notify.NotificationChain
basicSetItemCondition(Condition newItemCondition, org.eclipse.emf.common.notify.NotificationChain msgs)
org.eclipse.emf.common.notify.NotificationChain
basicSetItemReference(VDomainModelReference newItemReference, org.eclipse.emf.common.notify.NotificationChain msgs)
protected boolean
doEvaluate(java.util.Collection<? extends org.eclipse.emf.ecore.EObject> subjects)
Evaluates me by iteration of the givensubjects
.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.Condition
getItemCondition()
VDomainModelReference
getItemReference()
Quantifier
getQuantifier()
boolean
isIfEmpty()
void
setIfEmpty(boolean newIfEmpty)
void
setItemCondition(Condition newItemCondition)
void
setItemReference(VDomainModelReference newItemReference)
void
setQuantifier(Quantifier newQuantifier)
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
-
QUANTIFIER_EDEFAULT
protected static final Quantifier QUANTIFIER_EDEFAULT
The default value of the 'Quantifier
' attribute.- See Also:
getQuantifier()
-
quantifier
protected Quantifier quantifier
The cached value of the 'Quantifier
' attribute.- See Also:
getQuantifier()
-
IF_EMPTY_EDEFAULT
protected static final boolean IF_EMPTY_EDEFAULT
The default value of the 'If Empty
' attribute.- See Also:
isIfEmpty()
, Constant Field Values
-
ifEmpty
protected boolean ifEmpty
The cached value of the 'If Empty
' attribute.- See Also:
isIfEmpty()
-
itemReference
protected VDomainModelReference itemReference
The cached value of the 'Item Reference
' containment reference.- See Also:
getItemReference()
-
itemCondition
protected Condition itemCondition
The cached value of the 'Item Condition
' containment reference.- See Also:
getItemCondition()
-
-
Method Detail
-
eStaticClass
protected org.eclipse.emf.ecore.EClass eStaticClass()
- Overrides:
eStaticClass
in classConditionImpl
-
getQuantifier
public Quantifier getQuantifier()
- Specified by:
getQuantifier
in interfaceIterateCondition
- Returns:
- the value of the 'Quantifier' attribute.
- See Also:
Quantifier
,IterateCondition.setQuantifier(Quantifier)
,RulePackage.getIterateCondition_Quantifier()
-
setQuantifier
public void setQuantifier(Quantifier newQuantifier)
- Specified by:
setQuantifier
in interfaceIterateCondition
- Parameters:
newQuantifier
- the new value of the 'Quantifier' attribute.- See Also:
Quantifier
,IterateCondition.getQuantifier()
-
isIfEmpty
public boolean isIfEmpty()
- Specified by:
isIfEmpty
in interfaceIterateCondition
- Returns:
- the value of the 'If Empty' attribute.
- See Also:
IterateCondition.setIfEmpty(boolean)
,RulePackage.getIterateCondition_IfEmpty()
-
setIfEmpty
public void setIfEmpty(boolean newIfEmpty)
- Specified by:
setIfEmpty
in interfaceIterateCondition
- Parameters:
newIfEmpty
- the new value of the 'If Empty' attribute.- See Also:
IterateCondition.isIfEmpty()
-
getItemReference
public VDomainModelReference getItemReference()
- Specified by:
getItemReference
in interfaceIterateCondition
- Returns:
- the value of the 'Item Reference' containment reference.
- See Also:
IterateCondition.setItemReference(VDomainModelReference)
,RulePackage.getIterateCondition_ItemReference()
-
basicSetItemReference
public org.eclipse.emf.common.notify.NotificationChain basicSetItemReference(VDomainModelReference newItemReference, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setItemReference
public void setItemReference(VDomainModelReference newItemReference)
- Specified by:
setItemReference
in interfaceIterateCondition
- Parameters:
newItemReference
- the new value of the 'Item Reference' containment reference.- See Also:
IterateCondition.getItemReference()
-
getItemCondition
public Condition getItemCondition()
- Specified by:
getItemCondition
in interfaceIterateCondition
- Returns:
- the value of the 'Item Condition' containment reference.
- See Also:
IterateCondition.setItemCondition(Condition)
,RulePackage.getIterateCondition_ItemCondition()
-
basicSetItemCondition
public org.eclipse.emf.common.notify.NotificationChain basicSetItemCondition(Condition newItemCondition, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setItemCondition
public void setItemCondition(Condition newItemCondition)
- Specified by:
setItemCondition
in interfaceIterateCondition
- Parameters:
newItemCondition
- the new value of the 'Item Condition' containment reference.- See Also:
IterateCondition.getItemCondition()
-
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)
Description copied from interface:Condition
Evaluates the given condition.
-
doEvaluate
protected boolean doEvaluate(java.util.Collection<? extends org.eclipse.emf.ecore.EObject> subjects)
Evaluates me by iteration of the givensubjects
.- Parameters:
subjects
- the objects over which to iterate mycondition
- Returns:
- the result of the iteration
-
evaluateChangedValues
public boolean evaluateChangedValues(org.eclipse.emf.ecore.EObject domainModel, java.util.Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,java.lang.Object> possibleNewValues)
Description copied from interface:Condition
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
-
-