TextualRepresentation SysML
- class TextualRepresentation
Implementation of
TextualRepresentationdefined in the KerML specification.Specification:
A
TextualRepresentationis anAnnotatingElementwhosebodyrepresents therepresented_elementin a givenlanguage. Therepresented_elementmust be theownerof theTextualRepresentation. The namedlanguagecan be a natural language, in which case thebodyis an informal representation, or an artificial language, in which case thebodyis expected to be a formal, machine-parsable representation.If the named
languageof aTextualRepresentationis machine-parsable, then thebodytext should be legal input text as defined for thatlanguage. The interpretation of the named language string shall be case insensitive. The followinglanguagenames are defined to correspond to the given standard languages:kermlKernel Modeling Language
oclObject Constraint Language
alfAction Language for f_u_m_l
Other specifications may define specific
languagestrings, other than those shown above, to be used to indicate the use of languages from those specifications in KerMLTextualRepresentation.If the
languageof aTextualRepresentationis “kerml”, then thebodytext shall be a legal representation of therepresented_elementin the KerML textual concrete syntax. A conforming tool can use such aTextualRepresentationAnnotationto record the original KerML concrete syntax text from which anElementwas parsed. In this case, it is a tool responsibility to ensure that thebodyof theTextualRepresentationremains correct (or the Annotation is removed) if the annotatedElementchanges other than by re-parsing thebodytext.An
Elementwith aTextualRepresentationin a language other than KerML is essentially a semantically “opaque”Elementspecified in the other language. However, a conforming KerML tool may interpret such an element consistently with the specification of the named language.For language description, see section 7.2.4.3 of the KerML specification. For more details on the model, see section 8.3.2.3.6 of the KerML specification.
Members defined in
TextualRepresentation(4 members)
R
RWSysMLImplementation of
bodydefined in the KerML specification.
RWSysMLImplementation of
languagedefined in the KerML specification.
RSysMLImplementation of
represented_elementdefined in the KerML specification.Members inherited from
AnnotatingElement(5 members)
RContainer for owned annotations.
RSysMLImplementation of
annotated_elementdefined in the KerML specification.
RSysMLImplementation of
annotationdefined in the KerML specification.
RSysMLImplementation of
owned_annotating_relationshipdefined in the KerML specification.
RSysMLImplementation of
owning_annotating_relationshipdefined in the KerML specification.Members inherited from
Element(25 members)
RSysMLImplementation of
alias_idsdefined in the KerML specification.
RThe owned
Commentsrelated byowned_relationships.
RWSysMLImplementation of
declared_namedefined in the KerML specification.
RWSysMLImplementation of
declared_short_namedefined in the KerML specification.
RSysMLImplementation of
documentationdefined in the KerML specification.
RWSysMLImplementation of
element_iddefined in the KerML specification.
RSysMLImplementation of
is_implied_includeddefined in the KerML specification.
RSysMLImplementation of
is_library_elementdefined in the KerML specification.
RThe owned metadata related by
owned_relationships.
RSysMLImplementation of
namedefined in the KerML specification.
RSysMLImplementation of
owned_annotationdefined in the KerML specification.
RSysMLImplementation of
owned_elementdefined in the KerML specification.
RSysMLImplementation of
owned_relationshipdefined in the KerML specification.
RSysMLImplementation of
ownerdefined in the KerML specification.
RSysMLImplementation of
owning_membershipdefined in the KerML specification.
RSysMLImplementation of
owning_namespacedefined in the KerML specification.
RSysMLImplementation of
owning_relationshipdefined in the KerML specification.
RReturn a unique description of the location of this
Elementin the containment structure rooted in a rootNamespace. In most cases the segments will be identical toQualifiedName.
RSysMLImplementation of
qualified_namedefined in the KerML specification.
RThe owner of this
Elementas the parent ofowning_membershiporowning_relationshipotherwise.
RWThe 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.
RSysMLImplementation of
short_namedefined in the KerML specification.
RSysMLImplementation of
textual_representationdefined in the KerML specification.
Check if the qualified name of this
Elementmatches the provided segments of a qualified name.Members inherited from
AstNode(7 members) Attributes
- STD: tuple[type[syside.TextualRepresentation], ...] = ()
- property body: str
Implementation of
bodydefined in the KerML specification.Specification:
The textual representation of the
represented_elementin the givenlanguage.See section 8.3.2.3.6 of the KerML specification for more details.
- property language: str
Implementation of
languagedefined in the KerML specification.Specification:
The natural or artificial language in which the
bodytext is written.See section 8.3.2.3.6 of the KerML specification for more details.
- property represented_element: syside.Element | None
Implementation of
represented_elementdefined in the KerML specification.Specification:
The
Elementthat is represented by thisTextualRepresentation.See section 8.3.2.3.6 of the KerML specification for more details.