public interface ModelCloningContext
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getPresetValue(java.lang.Object original,
java.lang.String qualifier)
Only valid if
usePresetValue(Object, String) returns true for the specified attribute. |
boolean |
skipAttribute(java.lang.Object original,
java.lang.String qualifier)
If
true that particular attribute will not be included in the cloning process. |
boolean |
treatAsPartOf(java.lang.Object original,
java.lang.String qualifier)
If
true that particular attribute is treated as partOf which results in deep-cloning each attribute
value too before assigning them as value to the cloned model. |
boolean |
usePresetValue(java.lang.Object original,
java.lang.String qualifier)
If
true for the given attribute the cloning process will not use the original model attribute values
but the one returned by getPresetValue(Object, String). |
boolean skipAttribute(java.lang.Object original,
java.lang.String qualifier)
true that particular attribute will not be included in the cloning process. As a result the cloned
model will not have any value for that attribute.boolean treatAsPartOf(java.lang.Object original,
java.lang.String qualifier)
true that particular attribute is treated as partOf which results in deep-cloning each attribute
value too before assigning them as value to the cloned model.
This applies to model reference attributes only!boolean usePresetValue(java.lang.Object original,
java.lang.String qualifier)
true for the given attribute the cloning process will not use the original model attribute values
but the one returned by getPresetValue(Object, String).getPresetValue(Object, String)java.lang.Object getPresetValue(java.lang.Object original,
java.lang.String qualifier)
usePresetValue(Object, String) returns true for the specified attribute.
Returns the value to be used as attribute value of the new cloned model.Copyright © 2018 SAP SE. All Rights Reserved.