StructuralFeature interface

A StructuralFeature is a typed feature of a Classifier that specifies the structure of instances of the Classifier.

Inheritance Hierarchy

StructuralFeature Feature RedefinableElement NamedElement Element
OrderedElement Element
StructuralFeature MultiplicityElement Element
StructuralFeature TypedElement NamedElement Element

Attributes

NameTypeDescription
appliedStereotypesStereotype [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.
idstring Gets the unique ID of the element. Inherited from Element.
isLeafboolean 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.
isOrderedboolean For a multivalued multiplicity, this attribute specifies whether the values in an instantiation of this MultiplicityElement are sequentially ordered. Inherited from MultiplicityElement.
isReadOnlyboolean If isReadOnly is true, the StructuralFeature may not be written to after initialization. 
isStaticboolean Specifies whether this Feature characterizes individual instances classified by the Classifier (false) or the Classifier itself (true). Inherited from Feature.
isUniqueboolean For a multivalued multiplicity, this attributes specifies whether the values in an instantiation of this MultiplicityElement are unique. Inherited from MultiplicityElement.
lowerinteger [0..1]Gets the lower bound of the multiplicity interval. Inherited from MultiplicityElement.
lowerValueValueSpecification [0..1]The specification of the lower bound for this multiplicity. Inherited from MultiplicityElement.
namestring The name of the NamedElement. Inherited from NamedElement.
orderinteger [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.
ownedCommentsComment [0..*]The Comments owned by this Element. Inherited from Element.
ownerElement [0..1]Gets the element that owns this element. Inherited from Element.
taggedValuesTaggedValueSpecification [0..*]Contains 0 or more tagged values for the element. Inherited from Element.
typeType [0..1]The type of the TypedElement. Inherited from TypedElement.
upperUnlimitedNatural [0..1]The upper bound of the multiplicity interval. Inherited from MultiplicityElement.
upperValueValueSpecification [0..1]The specification of the upper bound for this multiplicity. Inherited from MultiplicityElement.
visibilityVisibilityKind [0..1]Determines whether and how the NamedElement is visible outside its owning Namespace. Inherited from NamedElement.

Operations

NameReturnsDescription
getFirstCommentBody()

StructuralFeature.getFirstCommentBody

X

Gets the text contents of the first comment in the element's owned comments, or an empty string if the element has no comments.

Return value
Type: 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()

StructuralFeature.getLowerBound

X

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.

Return value
Type: 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()

StructuralFeature.getTypeName

X

Gets the name of the typed element's type.

Return value
Type: 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()

StructuralFeature.getUpperBound

X

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.

Return value
Type: 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()

StructuralFeature.isMultivalued

X

The query isMultivalued() checks whether this multiplicity has an upper bound greater than one.

Return value
Type: boolean 
boolean The query isMultivalued() checks whether this multiplicity has an upper bound greater than one. Inherited from MultiplicityElement.
isOptional()

StructuralFeature.isOptional

X

The query isOptional checks whether this multiplicity has a lower bound of 0 (0..n).

Return value
Type: boolean 
boolean The query isOptional checks whether this multiplicity has a lower bound of 0 (0..n). Inherited from MultiplicityElement.
isOptionalAndSinglevalued()

StructuralFeature.isOptionalAndSinglevalued

X

The query isOptionalAndSingleValued checks whether this multiplicity has a lower bound of 0 and an upper bound of 1 (0..1).

Return value
Type: 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()

StructuralFeature.isRequiredAndSinglevalued

X

The query isRequiredAndSinglevalued checks whether this multiplicity has a lower bound of 1 and an upper bound of 1 (1..1).

Return value
Type: 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.