Package com.nomagic.magicdraw.uml2.util
Class PropertyDefaultValuesManager
java.lang.Object
com.nomagic.magicdraw.uml2.util.PropertyDefaultValuesManager
Class is used to set multiple default values for property, since current implementation only allows single value to be set
If a configurator is specified for property, the default values from configurator will be set, skipping the model default value.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addPropertyDefaultValues
(PropertyDefaultValues defaultValues) getDefaultValues
(Property property, Function<ValueSpecification, ?> valueRetrievalFunction) static void
removePropertyDefaultValues
(PropertyDefaultValues defaultValues)
-
Constructor Details
-
PropertyDefaultValuesManager
public PropertyDefaultValuesManager()
-
-
Method Details
-
addPropertyDefaultValues
-
removePropertyDefaultValues
-
getDefaultValues
@CheckForNull public static Supplier<Object> getDefaultValues(Property property, Function<ValueSpecification, ?> valueRetrievalFunction)
-