Class BaseObjectPolicy
java.lang.Object
com._1c.g5.v8.dt.supply.internal.integration.BaseObjectPolicy
- Direct Known Subclasses:
ContainmentIntegrationPolicy
,ObjectIntegrationPolicy
Base integration policy implementation that contains internal representation of integration settings for
business objects of the DT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(String name, PropertyIntegrationPolicy propertyIntegrationPolicy) Adds a property policy to this container.Gets the integration policy.getProperty
(String targetFeatureName) Gets the property integration policy, if anyboolean
isIntegratedReferencesOnlyRule
(String collectionPropertyName) Checks if this policy contains the integrated reference only rule being defined for the specified property.void
setIntegratedReferencesOnlyRule
(String propertyName) Sets the integrated referencens only rule for the given property.void
setPolicy
(IntegrationPolicy policy) Sets the integration policy.
-
Constructor Details
-
BaseObjectPolicy
public BaseObjectPolicy()Constructs an instance of the policy
-
-
Method Details
-
addProperty
Adds a property policy to this container.- Parameters:
name
- The name of the property. Cannot benull
propertyIntegrationPolicy
- The property integration policy internal representation. Cannot benull
-
getPolicy
Gets the integration policy.- Returns:
- The integration policy. Can be
null
in case if the specific policy is not defined (e.g. container for finer-grained policies)
-
getProperty
Gets the property integration policy, if any- Parameters:
targetFeatureName
- The name of the target feature/path to the target feature- Returns:
- The property integration policy, if any.
null
otherwise
-
isIntegratedReferencesOnlyRule
Checks if this policy contains the integrated reference only rule being defined for the specified property.- Parameters:
collectionPropertyName
- The name of the target property. Cannot benull
- Returns:
-
setIntegratedReferencesOnlyRule
Sets the integrated referencens only rule for the given property.- Parameters:
propertyName
- The name of the property. Cannot benull
-
setPolicy
Sets the integration policy.- Parameters:
policy
- The policy. Cannot benull
-