Class ObjectIntegrationPolicy
java.lang.Object
com._1c.g5.v8.dt.supply.internal.integration.BaseObjectPolicy
com._1c.g5.v8.dt.supply.internal.integration.ObjectIntegrationPolicy
Container of object integration policy definition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContainment
(String fqn, String topObjectFqn, ContainmentIntegrationPolicy containmentPolicy) Adds an FQN-addresable containment policy to the object policyvoid
addContainment
(String uniqueName, org.eclipse.emf.ecore.EClass eClass, ContainmentIntegrationPolicy containmentIntegrationPolicy) Adds a unique named containment policy to the object policy.getContainment
(SupplyDependencyContext depContext, org.eclipse.emf.ecore.EClass eClass) Gets the unique named (in hierachy) containment integration policygetContainment
(String containmentFqnSegment) Gets the containment integration policy, for FQN-addressible containmentgetContainment
(String name, org.eclipse.emf.ecore.EClass eClass) Methods inherited from class com._1c.g5.v8.dt.supply.internal.integration.BaseObjectPolicy
addProperty, getPolicy, getProperty, isIntegratedReferencesOnlyRule, setIntegratedReferencesOnlyRule, setPolicy
-
Constructor Details
-
ObjectIntegrationPolicy
public ObjectIntegrationPolicy()Constructs the policy
-
-
Method Details
-
addContainment
public void addContainment(String uniqueName, org.eclipse.emf.ecore.EClass eClass, ContainmentIntegrationPolicy containmentIntegrationPolicy) Adds a unique named containment policy to the object policy. The name uniquiness should be supported for each separate hierarchy of containments defined by eClass parameter- Parameters:
uniqueName
- The unique name of the containment. Cannot benull
eClass
- The eclass that defines the hierarchy of elements with unique name. Cannot benull
containmentIntegrationPolicy
- The target policy to add. Cannot benull
-
addContainment
public void addContainment(String fqn, String topObjectFqn, ContainmentIntegrationPolicy containmentPolicy) Adds an FQN-addresable containment policy to the object policy- Parameters:
fqn
- The FQN that points to the containment. Cannot benull
topObjectFqn
- The FQN of the top object the FQN-addressible containment belongs to. Cannot benull
containmentPolicy
- The target policy to add. Cannot benull
-
getContainment
Gets the containment integration policy, for FQN-addressible containment- Parameters:
containmentFqnSegment
- Effective segment for the containment (containment FQN minus top object FQN). Cannot benull
-
getContainment
public ContainmentIntegrationPolicy getContainment(SupplyDependencyContext depContext, org.eclipse.emf.ecore.EClass eClass) Gets the unique named (in hierachy) containment integration policy- Parameters:
depContext
- The context (SupplyDependencyContext
) of the element. Cannot benull
eClass
- The eclass that defines the hierarchy of elements with unique name. Cannot benull
- Returns:
- The contianment integration policy if any. Can be
null
-
getContainment
public ContainmentIntegrationPolicy getContainment(String name, org.eclipse.emf.ecore.EClass eClass)
-