Class ObjectIntegrationPolicy

java.lang.Object
com._1c.g5.v8.dt.supply.internal.integration.BaseObjectPolicy
com._1c.g5.v8.dt.supply.internal.integration.ObjectIntegrationPolicy

public class ObjectIntegrationPolicy extends BaseObjectPolicy
Container of object integration policy definition
  • 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 be null
      eClass - The eclass that defines the hierarchy of elements with unique name. Cannot be null
      containmentIntegrationPolicy - The target policy to add. Cannot be null
    • 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 be null
      topObjectFqn - The FQN of the top object the FQN-addressible containment belongs to. Cannot be null
      containmentPolicy - The target policy to add. Cannot be null
    • getContainment

      public ContainmentIntegrationPolicy getContainment(String containmentFqnSegment)
      Gets the containment integration policy, for FQN-addressible containment
      Parameters:
      containmentFqnSegment - Effective segment for the containment (containment FQN minus top object FQN). Cannot be null
    • 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 be null
      eClass - The eclass that defines the hierarchy of elements with unique name. Cannot be null
      Returns:
      The contianment integration policy if any. Can be null
    • getContainment

      public ContainmentIntegrationPolicy getContainment(String name, org.eclipse.emf.ecore.EClass eClass)