/** * @param eClass * @return this.property.createDefaultValue(null, null, eClass) */ public ValueSpecification createDefaultValue(final EClass eClass) { return this.property.createDefaultValue(null, null, eClass); }
/** * @param eClass * @return this.property.createDefaultValue(null, null, eClass) */ public ValueSpecification createDefaultValue(final EClass eClass) { return this.property.createDefaultValue(null, null, eClass); }
/** * @param eClass * @return this.property.createDefaultValue(null, null, eClass) */ public ValueSpecification createDefaultValue(final EClass eClass) { return this.property.createDefaultValue(null, null, eClass); }
/** * @param eClass * @return this.property.createDefaultValue(null, null, eClass) */ public ValueSpecification createDefaultValue(final EClass eClass) { return this.property.createDefaultValue(null, null, eClass); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * Sets the default value for this property to the null value. * @param property The receiving '<em><b>Property</b></em>' model object. * <!-- end-model-doc --> * @generated NOT */ public static void setNullDefaultValue(Property property) { if (!(property.getDefaultValue() instanceof LiteralNull)) { property.createDefaultValue(null, null, UMLPackage.Literals.LITERAL_NULL); } }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * Sets the default value for this property to the specified string value. * @param property The receiving '<em><b>Property</b></em>' model object. * @param value The new default value. * <!-- end-model-doc --> * @generated NOT */ public static void setStringDefaultValue(Property property, String value) { ValueSpecification defaultValue = property.getDefaultValue(); ((LiteralString) (defaultValue instanceof LiteralString ? defaultValue : property.createDefaultValue(null, null, UMLPackage.Literals.LITERAL_STRING))).setValue(value); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * Sets the default value for this property to the specified Boolean value. * @param property The receiving '<em><b>Property</b></em>' model object. * @param value The new default value. * <!-- end-model-doc --> * @generated NOT */ public static void setBooleanDefaultValue(Property property, boolean value) { ValueSpecification defaultValue = property.getDefaultValue(); ((LiteralBoolean) (defaultValue instanceof LiteralBoolean ? defaultValue : property.createDefaultValue(null, null, UMLPackage.Literals.LITERAL_BOOLEAN))).setValue(value); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * Sets the default value for this property to the specified integer value. * @param property The receiving '<em><b>Property</b></em>' model object. * @param value The new default value. * <!-- end-model-doc --> * @generated NOT */ public static void setIntegerDefaultValue(Property property, int value) { ValueSpecification defaultValue = property.getDefaultValue(); ((LiteralInteger) (defaultValue instanceof LiteralInteger ? defaultValue : property.createDefaultValue(null, null, UMLPackage.Literals.LITERAL_INTEGER))).setValue(value); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * Sets the default value for this property to the specified unlimited natural value. * @param property The receiving '<em><b>Property</b></em>' model object. * @param value The new default value. * <!-- end-model-doc --> * @generated NOT */ public static void setUnlimitedNaturalDefaultValue(Property property, int value) { ValueSpecification defaultValue = property.getDefaultValue(); ((LiteralUnlimitedNatural) (defaultValue instanceof LiteralUnlimitedNatural ? defaultValue : property.createDefaultValue(null, null, UMLPackage.Literals.LITERAL_UNLIMITED_NATURAL))) .setValue(value); }