public class MediaForCodeAttributePresetPredicate extends java.lang.Object implements java.util.function.BiPredicate<ItemModel,java.lang.String>, java.util.function.Supplier<java.lang.String>
CODE qualifier of the MediaModel 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 and Description |
|---|
MediaForCodeAttributePresetPredicate() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get() |
protected CMSItemDeepCloningService |
getCmsItemDeepCloningService() |
void |
setCmsItemDeepCloningService(CMSItemDeepCloningService cmsItemDeepCloningService) |
boolean |
test(ItemModel component,
java.lang.String qualifier) |
public MediaForCodeAttributePresetPredicate()
public boolean test(ItemModel component, java.lang.String qualifier)
test in interface java.util.function.BiPredicate<ItemModel,java.lang.String>public java.lang.String get()
get in interface java.util.function.Supplier<java.lang.String>protected CMSItemDeepCloningService getCmsItemDeepCloningService()
public void setCmsItemDeepCloningService(CMSItemDeepCloningService cmsItemDeepCloningService)
Copyright © 2018 SAP SE. All Rights Reserved.