Implementation of Comment defined in the KerML specification.
Specification:
A Comment is an AnnotatingElement whose body in some way
describes its annotated_elements.
For language description, see section 7.2.4.2 of the KerML specification.
For more details on the model, see section 8.3.2.3.4 of the KerML specification.
Identification of the language of the body text and, optionally, the
region and/or encoding. The format shall be a POSIX locale conformant to
ISO/IEC 15897, with the format
[language[_territory][.codeset][@modifier]].
The Elements that are annotated by this AnnotatingElement. If
annotation is not empty, these are the annotated_elements of the
annotations. If annotation is empty, then it is the
owning_namespace of the AnnotatingElement.
The Annotations that relate this AnnotatingElement to its
annotated_elements. This includes the
owning_annotating_relationship (if any) followed by all the
owned_annotating_relationships.
An optional alternative name for the Element that is intended to be
shorter or in some way more succinct than its primary name. It may
act as a modeler-specified identifier for the Element, though it is
then the responsibility of the modeler to maintain the uniqueness of
this identifier within a model or relative to some other context.
Whether all necessary implied Relationships have been included in the
owned_relationships of this Element. This property may be true, even
if there are not actually any owned_relationships with
is_implied=true, meaning that no such Relationships are actually
implied for this Element. However, if it is false, then
owned_relationships may not contain any implied Relationships.
That is, either all required implied Relationships must be included,
or none of them.
The name to be used for this Element during name resolution within
its owning_namespace. This is derived using the effective_name()
operation. By default, it is the same as the declared_name, but this
is overridden for certain kinds of Elements to compute a name
even when the declared_name is null.
The full ownership-qualified name of this Element, represented in a
form that is valid according to the KerML textual concrete syntax for
qualified names (including use of unrestricted name notation and escaped
characters, as necessary). The qualified_name is null if this
Element has no owning_namespace or if there is not a complete
ownership chain of named Namespaces from a root Namespace to
this Element.
The state of semantic resolution for this Element. Based on this, sema may skip elements to avoid duplicate work, e.g. when resolving elements in a group of related documents.
The short name to be used for this Element during name resolution
within its owning_namespace. This is derived using the
effective_short_name() operation. By default, it is the same as the
declared_short_name, but this is overridden for certain kinds of
Elements to compute a short_name even when the declared_name
is null.
Identification of the language of the body text and, optionally, the
region and/or encoding. The format shall be a POSIX locale conformant to
ISO/IEC 15897, with the format
[language[_territory][.codeset][@modifier]].
Comment SysML
Implementation of
Commentdefined in the KerML specification.Specification:
For language description, see section 7.2.4.2 of the KerML specification. For more details on the model, see section 8.3.2.3.4 of the KerML specification.
Children
DocumentationMembers defined in
Comment(3 members)
STDR
bodyRWThe annotation text for the
Comment.
localeRWIdentification of the language of the
bodytext and, optionally, the region and/or encoding. The format shall be a POSIX locale conformant to ISO/IEC 15897, with the format[language[_territory][.codeset][@modifier]].Members inherited from
AnnotatingElement(5 members)
aboutRContainer for owned annotations.
annotated_elementsRThe
Elementsthat are annotated by thisAnnotatingElement. Ifannotationis not empty, these are theannotated_elementsof theannotations. Ifannotationis empty, then it is theowning_namespaceof theAnnotatingElement.
annotationsRThe
Annotationsthat relate thisAnnotatingElementto itsannotated_elements. This includes theowning_annotating_relationship(if any) followed by all theowned_annotating_relationships.
owned_annotating_relationshipsRThe
owned_relationshipsof thisAnnotatingElementthat areAnnotations, for which thisAnnotatingElementis theannotating_element.
owning_annotating_relationshipRThe
owning_relationshipof thisAnnotatingRelationship, if it is anAnnotationMembers inherited from
Element(23 members)
commentsRThe owned
Commentsrelated byowned_relationships.
declared_nameRWThe declared name of this
Element.
declared_short_nameRWAn optional alternative name for the
Elementthat is intended to be shorter or in some way more succinct than its primaryname. It may act as a modeler-specified identifier for theElement, though it is then the responsibility of the modeler to maintain the uniqueness of this identifier within a model or relative to some other context.
documentationRThe Documentation owned by this Element.
element_idRWset by tooling, and it must not change during the lifetime of the Element.
is_implied_includedRWhether all necessary implied Relationships have been included in the
owned_relationshipsof this Element. This property may be true, even if there are not actually anyowned_relationshipswithis_implied = true, meaning that no such Relationships are actually implied for this Element. However, if it is false, thenowned_relationshipsmay not contain any implied Relationships. That is, either all required implied Relationships must be included, or none of them.
is_library_elementRWhether this Element is contained in the ownership tree of a library model.
metadataRThe owned metadata related by
owned_relationships.
nameRThe name to be used for this
Elementduring name resolution within itsowning_namespace. This is derived using theeffective_name()operation. By default, it is the same as thedeclared_name, but this is overridden for certain kinds ofElementsto compute anameeven when thedeclared_nameis null.
owned_annotationsRThe
owned_relationshipsof thisElementthat areAnnotations, for which thisElementis theannotated_element.
owned_elementsRThe Elements owned by this Element, derived as the owned_related_elements of the owned_relationships of this Element.
owned_relationshipsRThe Relationships for which this Element is the owning_related_element.
ownerRThe owner of this Element, derived as the
owning_related_elementof theowning_relationshipof this Element, if any.
owning_membershipRThe
owning_relationshipof thisElement, if thatRelationshipis aMembership.
owning_namespaceRThe
Namespacethat owns thisElement, which is themembership_owning_namespaceof theowning_membershipof thisElement, if any.
owning_relationshipRThe Relationship for which this Element is an owned_related_element, if any.
qualified_nameRThe full ownership-qualified name of this
Element, represented in a form that is valid according to the KerML textual concrete syntax for qualified names (including use of unrestricted name notation and escaped characters, as necessary). Thequalified_nameis null if thisElementhas noowning_namespaceor if there is not a complete ownership chain of namedNamespacesfrom a rootNamespaceto thisElement.
scoped_ownerRThe owner of this
Elementas the parent ofowning_membershiporowning_relationshipotherwise.
sema_stateRWThe state of semantic resolution for this
Element. Based on this, sema may skip elements to avoid duplicate work, e.g. when resolving elements in a group of related documents.
short_nameRThe short name to be used for this
Elementduring name resolution within itsowning_namespace. This is derived using theeffective_short_name()operation. By default, it is the same as thedeclared_short_name, but this is overridden for certain kinds ofElementsto compute ashort_nameeven when thedeclared_nameis null.
textual_representationsRThe
TextualRepresentationsthat annotate thisElement.
__str__
matches_qualified_nameMembers inherited from
AstNode(7 members)
cst_nodeR
documentR
parentR
__hash__
cast
isinstance
try_cast Attributes
The annotation text for the
Comment.Identification of the language of the
bodytext and, optionally, the region and/or encoding. The format shall be a POSIX locale conformant to ISO/IEC 15897, with the format[language[_territory][.codeset][@modifier]]. Used in
syside.CommentSTDsyside.Elementcomments