Class IntegrationDataReferenceProvider
java.lang.Object
com._1c.g5.v8.dt.internal.compare.supply.IntegrationDataReferenceProvider
- All Implemented Interfaces:
IDataReferenceProvider
Data reference provider that delegates its logic to
ISupplyDataReferenceProviderComparisonDelegate
being registered
by business modules that take part in the comparison process.-
Constructor Summary
ConstructorsConstructorDescriptionIntegrationDataReferenceProvider
(IntegrationDelegateProvider integrationDelegateProvider) -
Method Summary
Modifier and TypeMethodDescriptiongetContainmentReference
(String topObjectSymlink, org.eclipse.emf.ecore.EClass topObjectEClass, org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EStructuralFeature targetFeature, org.eclipse.emf.ecore.EStructuralFeature containingFeature, Object... contextObjects) Gets containment reference based on provided context.boolean
isTopObjectReference
(String topObjectSymlink, org.eclipse.emf.ecore.EClass topObjectEClass, org.eclipse.emf.ecore.EClass eClass, Object... contextObjects) Checks if the provided context points to the top object itself.
-
Constructor Details
-
IntegrationDataReferenceProvider
-
-
Method Details
-
getContainmentReference
public IDataReference getContainmentReference(String topObjectSymlink, org.eclipse.emf.ecore.EClass topObjectEClass, org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EStructuralFeature targetFeature, org.eclipse.emf.ecore.EStructuralFeature containingFeature, Object... contextObjects) Description copied from interface:IDataReferenceProvider
Gets containment reference based on provided context.- Specified by:
getContainmentReference
in interfaceIDataReferenceProvider
- Parameters:
topObjectSymlink
- Symlynk of the top object containing target containment. Cannot benull
topObjectEClass
- EClass of the top object for this containment. Cannot benull
eClass
- EClass of the target containment object. Cannot benull
targetFeature
- Target feature of the containment, if available. Can benull
- Returns:
- The generated 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
-
isTopObjectReference
public boolean isTopObjectReference(String topObjectSymlink, org.eclipse.emf.ecore.EClass topObjectEClass, org.eclipse.emf.ecore.EClass eClass, Object... contextObjects) Description copied from interface:IDataReferenceProvider
Checks if the provided context points to the top object itself. Such references are being processed byISupplySettingsManager
standard logic and doesn't require reference processing and encoding.- Specified by:
isTopObjectReference
in interfaceIDataReferenceProvider
- Parameters:
topObjectSymlink
- Symlynk of the top object containing target containment. Cannot benull
topObjectEClass
- EClass of the top object for this containment. Cannot benull
eClass
- EClass of the target containment object. Cannot benull
- Returns:
true
if the context points to the top object.false
otherwise
-