Gets the value of the DefaultValue property.
Return value
Type: object [0..1]The default value (the type depending on the type of value), or null if no default value can be determined.
A Property is a StructuralFeature. A Property related by ownedAttribute to a Classifier (other than an association) represents an attribute and might also represent an association end. It relates an instance of the Classifier to a value or set of values of the type of the attribute. A Property related by memberEnd to an Association represents an end of the Association. The type of the Property is the type of the end of the Association.
Property | ⇾StructuralFeature | ⇾Feature | ⇾RedefinableElement | ⇾NamedElement | ⇾Element |
⇾OrderedElement | ⇾Element | ||||
⇾MultiplicityElement | ⇾Element | ||||
⇾TypedElement | ⇾NamedElement | ⇾Element |
Name | Type | Description |
---|---|---|
aggregation | AggregationKind [1..1] | |
appliedStereotypes | Stereotype [0..*] | Indicates which stereotypes from the selected profile (or profiles) are applied to the element. The selected profiles are the profiles that are applied to the containing package. Inherited from Element. |
association | Association [0..1] | The Association of which this Property is a member, if any. |
defaultValue | ValueSpecification [0..1] | A ValueSpecification that is evaluated to give a default value for the Property when an instance of the owning Classifier is instantiated. |
id | string | Gets the unique ID of the element. Inherited from Element. |
isDeprecated | boolean | If true, using this element should be avoided, typically because it has been superseded. Inherited from NamedElement. |
isDerived | boolean | Specifies whether the property is derived as the union of all of the Properties that are constrained to subset it. |
isDerivedUnion | boolean | Specifies whether the property is derived as the union of all of the Properties that are constrained to subset it. |
isID | boolean | True indicates this property can be used to uniquely identify an instance of the containing Class. |
isLeaf | boolean | Indicates whether it is possible to further redefine a RedefinableElement. If the value is true, then it is not possible to further redefine the RedefinableElement. Inherited from RedefinableElement. |
isNavigable | boolean [1..1] | Returns true if the Property is owned by a classifier or is included in the NavigableOwnedEnds of an association. |
isOrdered | boolean | For a multivalued multiplicity, this attribute specifies whether the values in an instantiation of this MultiplicityElement are sequentially ordered. Inherited from MultiplicityElement. |
isReadOnly | boolean | If isReadOnly is true, the StructuralFeature may not be written to after initialization. Inherited from StructuralFeature. |
isStatic | boolean | Specifies whether this Feature characterizes individual instances classified by the Classifier (false) or the Classifier itself (true). Inherited from Feature. |
isUnique | boolean | For a multivalued multiplicity, this attributes specifies whether the values in an instantiation of this MultiplicityElement are unique. Inherited from MultiplicityElement. |
lower | integer [0..1] | Gets the lower bound of the multiplicity interval. Inherited from MultiplicityElement. |
lowerValue | ValueSpecification [0..1] | The specification of the lower bound for this multiplicity. Inherited from MultiplicityElement. |
name | string | The name of the NamedElement. Inherited from NamedElement. |
order | integer [1..1] | Gets or set the sort order of the element if it is part of a collection. The value is 0 for elements to which no particular ordering applies. Elements with a lower order come before elements with a higher order. Inherited from OrderedElement. |
ownedComments | Comment [0..*] | The Comments owned by this Element. Inherited from Element. |
owner | Element [0..1] | Gets the element that owns this element. Inherited from Element. |
taggedValues | TaggedValueSpecification [0..*] | Contains 0 or more tagged values for the element. Inherited from Element. |
type | Type [0..1] | The type of the TypedElement. Inherited from TypedElement. |
upper | UnlimitedNatural [0..1] | The upper bound of the multiplicity interval. Inherited from MultiplicityElement. |
upperValue | ValueSpecification [0..1] | The specification of the upper bound for this multiplicity. Inherited from MultiplicityElement. |
visibility | VisibilityKind [0..1] | Determines whether and how the NamedElement is visible outside its owning Namespace. Inherited from NamedElement. |
Name | Returns | Description |
---|---|---|
getDefault()Property.getDefaultXGets the value of the DefaultValue property. Return valueType: object [0..1]The default value (the type depending on the type of value), or null if no default value can be determined. | object [0..1] | Gets the value of the DefaultValue property. |
getFirstCommentBody()Property.getFirstCommentBodyXGets the text contents of the first comment in the element's owned comments, or an empty string if the element has no comments. Return valueType: string [1..1]The body string of the first comment. If the element has no comments, an empty string is returned. | string [1..1] | Gets the text contents of the first comment in the element's owned comments, or an empty string if the element has no comments. Inherited from Element. |
getLowerBound()Property.getLowerBoundXThe query lowerBound() returns the lower bound of the multiplicity as an integer, which is the integerValue of lowerValue, if this is given, and 1 otherwise. Return valueType: integer | integer | The query lowerBound() returns the lower bound of the multiplicity as an integer, which is the integerValue of lowerValue, if this is given, and 1 otherwise. Inherited from MultiplicityElement. |
getTypeName()Property.getTypeNameXGets the name of the typed element's type. Return valueType: string [1..1]The type name, or an empty string if the element has no type. | string [1..1] | Gets the name of the typed element's type. Inherited from TypedElement. |
getUpperBound()Property.getUpperBoundXThe query upperBound() returns the upper bound of the multiplicity for a bounded multiplicity as an unlimited natural, which is the unlimitedNaturalValue of upperValue, if given, and 1, otherwise. Return valueType: UnlimitedNatural | UnlimitedNatural | The query upperBound() returns the upper bound of the multiplicity for a bounded multiplicity as an unlimited natural, which is the unlimitedNaturalValue of upperValue, if given, and 1, otherwise. Inherited from MultiplicityElement. |
isMultivalued()Property.isMultivaluedXThe query isMultivalued() checks whether this multiplicity has an upper bound greater than one. Return valueType: boolean | boolean | The query isMultivalued() checks whether this multiplicity has an upper bound greater than one. Inherited from MultiplicityElement. |
isOptional()Property.isOptionalXThe query isOptional checks whether this multiplicity has a lower bound of 0 (0..n). Return valueType: boolean | boolean | The query isOptional checks whether this multiplicity has a lower bound of 0 (0..n). Inherited from MultiplicityElement. |
isOptionalAndSinglevalued()Property.isOptionalAndSinglevaluedXThe query isOptionalAndSingleValued checks whether this multiplicity has a lower bound of 0 and an upper bound of 1 (0..1). Return valueType: boolean | boolean | The query isOptionalAndSingleValued checks whether this multiplicity has a lower bound of 0 and an upper bound of 1 (0..1). Inherited from MultiplicityElement. |
isRequiredAndSinglevalued()Property.isRequiredAndSinglevaluedXThe query isRequiredAndSinglevalued checks whether this multiplicity has a lower bound of 1 and an upper bound of 1 (1..1). Return valueType: boolean | boolean | The query isRequiredAndSinglevalued checks whether this multiplicity has a lower bound of 1 and an upper bound of 1 (1..1). Inherited from MultiplicityElement. |