Class ModuleIntegrationPolicy

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

public class ModuleIntegrationPolicy extends Object
Internal integration model object for the language module integration policy
  • Constructor Details

    • ModuleIntegrationPolicy

      public ModuleIntegrationPolicy()
      Constructs the policy
  • Method Details

    • addMethod

      public void addMethod(String name, MethodIntegrationPolicy methodIntegrationPolicy)
      Adds a new method integration policy for the given method name
      Parameters:
      name - Name of the method, cannot be null
      methodIntegrationPolicy - Integration policy, cannot be null
    • getMethod

      public MethodIntegrationPolicy getMethod(String methodName)
      Gets the method integration policy if available
      Parameters:
      methodName - The name of the method. Cannot be null
      Returns:
      The method policy of available; null otherwise
    • getPolicy

      public IntegrationPolicy getPolicy()
      Gets the policy.
      Returns:
      The module integration policy. Can be null in case of method-level definition only
    • setPolicy

      public void setPolicy(IntegrationPolicy policy)
      Sets the policy.
      Parameters:
      policy - The policy to set. Can be null in case of method-level definition only