Interface ISupplyDataReferenceProviderComparisonDelegate
-
- All Known Implementing Classes:
BaseSupplyDataReferenceProviderComparisonDelegate
,MdSupplyReferenceProviderComparisonDelegate
public interface ISupplyDataReferenceProviderComparisonDelegate
ISupplyDataReferenceProviderComparisonDelegate
delegates processing of supply settings references to domain-specific implementations. This allows processing logic to use domain-specific models and services
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IDataReference
getContainmentReference(String topObjectSymlink, org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EStructuralFeature targetFeature, org.eclipse.emf.ecore.EStructuralFeature containingFeature, ComparisonNode comparisonNode, ComparisonContext comparisonContext)
Delegates the call ofIDataReferenceProvider#getContainmentReference(String, EClass, EStructuralFeature, Object...)
to domain-specific implementation.boolean
handles(org.eclipse.emf.ecore.EClass topObjectEClass, org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EStructuralFeature targetFeature, org.eclipse.emf.ecore.EStructuralFeature containingFeature)
Checks provided EClass against the set of EClasses being handled by this delegate.boolean
isTopObjectReference(String topObjectSymlink, org.eclipse.emf.ecore.EClass eClass, ComparisonNode comparisonNode)
Delegates the call ofIDataReferenceProvider#isTopObjectReference(String, EClass, Object...)
-
-
-
Method Detail
-
getContainmentReference
IDataReference getContainmentReference(String topObjectSymlink, org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EStructuralFeature targetFeature, org.eclipse.emf.ecore.EStructuralFeature containingFeature, ComparisonNode comparisonNode, ComparisonContext comparisonContext)
Delegates the call ofIDataReferenceProvider#getContainmentReference(String, EClass, EStructuralFeature, Object...)
to domain-specific implementation.- Parameters:
topObjectSymlink
- Symlynk of the top object containing target containment. Cannot benull
eClass
- EClass of the target containment object. Cannot benull
targetFeature
- Target feature of the containment, if available. Can benull
containingFeature
- The feature that contains target object. Should be supplied in case if the collection element is being addressed. Can benull
comparisonNode
- The node of the comparison tree mode being the context of the reference. Cannot benull
comparisonContext
- Current comparison context. Cannot benull
This context depends on the client logic and should be matched with the corresponding impementation ofIDataReferenceProvider
- Returns:
- The encoded reference of one of standard types. Can be
null
in case if the client integration doesn't support this type of the context for direct referencing from supply settings
-
handles
boolean handles(org.eclipse.emf.ecore.EClass topObjectEClass, org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EStructuralFeature targetFeature, org.eclipse.emf.ecore.EStructuralFeature containingFeature)
Checks provided EClass against the set of EClasses being handled by this delegate.- Parameters:
topObjectEClass
- The top objectEClass
. Can benull
eClass
- The targetEClass
. Can benull
targetFeature
- Target feature for the call. Can benull
containingFeature
- The feature that contains target object. Should be supplied in case if the collection element is being addressed. Can benull
- Returns:
true
in case if this delegate handles the provided EClass.false
otherwise
-
isTopObjectReference
boolean isTopObjectReference(String topObjectSymlink, org.eclipse.emf.ecore.EClass eClass, ComparisonNode comparisonNode)
Delegates the call ofIDataReferenceProvider#isTopObjectReference(String, EClass, Object...)
- Parameters:
topObjectSymlink
- Symlynk of the top object containing target containment. Cannot benull
eClass
- EClass of the target containment object. Cannot benull
comparisonNode
- The node of the comparison tree mode being the context of the reference. Cannot benull
- Returns:
true
if the context points to the top object.false
otherwise
-
-