BehavioralFeature interface

A BehavioralFeature is a feature of a Classifier that specifies an aspect of the behavior of its instances. A BehavioralFeature is implemented (realized) by a Behavior. A BehavioralFeature specifies that a Classifier will respond to a designated request by invoking its implementing method.

Inheritance Hierarchy

BehavioralFeatureFeatureRedefinableElementNamedElementElement
OrderedElementElement

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.
isAbstractboolean If true, then the BehavioralFeature does not have an implementation, and one must be supplied by a more specific Classifier. If false, the BehavioralFeature must have an implementation in the Classifier or one must be inherited. 
isDeprecatedboolean If true, using this element should be avoided, typically because it has been superseded. Inherited from NamedElement.
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.
isStaticboolean Specifies whether this Feature characterizes individual instances classified by the Classifier (false) or the Classifier itself (true). Inherited from Feature.
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.
ownedParametersParameter [0..*]The parameters owned by this Operation. 
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.
visibilityVisibilityKind [0..1]Determines whether and how the NamedElement is visible outside its owning Namespace. Inherited from NamedElement.

Operations

NameReturnsDescription
getFirstCommentBody()

BehavioralFeature.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.