Class MediaContainerForCatalogVersionAttributePresetPredicate

  • All Implemented Interfaces:
    java.util.function.BiPredicate<ItemModel,​java.lang.String>, java.util.function.Supplier<CatalogVersionModel>

    public class MediaContainerForCatalogVersionAttributePresetPredicate
    extends java.lang.Object
    implements java.util.function.BiPredicate<ItemModel,​java.lang.String>, java.util.function.Supplier<CatalogVersionModel>
    Predicate to test if the CATALOGVERSION qualifier of the MediaContainerModel component has a preset value during the deep cloning process.

    When the expression evaluates to TRUE, the deep cloning process will detect that a new preset value (e.g. UID) needs to be generated for the qualifier of the component and the process will call #get() to retrieve the generated preset value.

    • Constructor Detail

      • MediaContainerForCatalogVersionAttributePresetPredicate

        public MediaContainerForCatalogVersionAttributePresetPredicate​(CatalogVersionModel targetCatalogVersion)
    • Method Detail

      • test

        public boolean test​(ItemModel component,
                            java.lang.String qualifier)
        Specified by:
        test in interface java.util.function.BiPredicate<ItemModel,​java.lang.String>
      • setTargetCatalogVersion

        public void setTargetCatalogVersion​(CatalogVersionModel targetCatalogVersion)