Class SysMLTextualNotationService
java.lang.Object
com.dassault_systemes.modeler.magic.sysml.textual.SysMLTextualNotationService
Provides API for importing and exporting SysML textual notation
for a given project or namespace.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringexportTextual(Namespace namespace) Exports the textual SysML representation of the specifiedNamespace.static voidimportTextual(ModelElementProject project, String sysmlText) Imports SysML textual notation into the specified project.
-
Constructor Details
-
SysMLTextualNotationService
public SysMLTextualNotationService()
-
-
Method Details
-
exportTextual
Exports the textual SysML representation of the specifiedNamespace.The
TextualNotationBuilderservice is looked up from the project that owns the given namespace. If the service is not available, anIllegalStateExceptionis thrown.- Parameters:
namespace- the namespace to export to textual SysML notation; must belong to aModelElementProject- Returns:
- the textual SysML notation corresponding to the given namespace
- Throws:
IllegalStateException- if noTextualNotationBuilderis registered for the namespace's project
-
importTextual
Imports SysML textual notation into the specified project.- Parameters:
project- the target project that will receive the imported modelsysmlText- the SysML textual notation to import; must not benull
-