Package com.nomagic.magicdraw.uml2.util
Class PropertyDefaultValuesManager
- java.lang.Object
-
- com.nomagic.magicdraw.uml2.util.PropertyDefaultValuesManager
-
public class PropertyDefaultValuesManager extends java.lang.Object
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.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Collection<PropertyDefaultValues>
PROPERTY_DEFAULT_VALUES
-
Constructor Summary
Constructors Constructor Description PropertyDefaultValuesManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addPropertyDefaultValues(PropertyDefaultValues defaultValues)
static java.util.function.Supplier<java.lang.Object>
getDefaultValues(Property property, java.util.function.Function<ValueSpecification,?> valueRetrievalFunction)
static void
removePropertyDefaultValues(PropertyDefaultValues defaultValues)
-
-
-
Field Detail
-
PROPERTY_DEFAULT_VALUES
private static final java.util.Collection<PropertyDefaultValues> PROPERTY_DEFAULT_VALUES
-
-
Method Detail
-
addPropertyDefaultValues
public static void addPropertyDefaultValues(PropertyDefaultValues defaultValues)
-
removePropertyDefaultValues
public static void removePropertyDefaultValues(PropertyDefaultValues defaultValues)
-
getDefaultValues
@CheckForNull public static java.util.function.Supplier<java.lang.Object> getDefaultValues(Property property, java.util.function.Function<ValueSpecification,?> valueRetrievalFunction)
-
-