java.lang.Object
com.dassault_systemes.modeler.foundation.project.service.ModelElementProjectService<ModelElementProject>
com.dassault_systemes.modeler.kerml.libraries.AbstractLibrary
com.dassault_systemes.modeler.sysml.libraries.standard.StatesLibrary
All Implemented Interfaces:
com.dassault_systemes.modeler.foundation.project.service.DisposableService

@OpenApiAll public class StatesLibrary extends AbstractLibrary
Access helper for the states standard library.
  • Constructor Details

    • StatesLibrary

      public StatesLibrary(ModelElementProject project)
      Creates a new states library instance.
      Parameters:
      project - the project
  • Method Details

    • getInstanceByProject

      public static StatesLibrary getInstanceByProject(ModelElementProject project)
      Returns the library instance for the given project.
      Parameters:
      project - the project
      Returns:
      get instance by project
    • getInstance

      public static StatesLibrary getInstance(BaseElement element)
      Returns the library instance for the project that owns the given element.
      Parameters:
      element - the element
      Returns:
      get instance
    • isSemantic

      public boolean isSemantic()
      Returns whether this library is semantic.
      Specified by:
      isSemantic in class AbstractLibrary
      Returns:
      true if semantic; false otherwise
    • packagesNames

      protected Set<String> packagesNames()
      Returns the names of the packages that belong to this library.
      Specified by:
      packagesNames in class AbstractLibrary
      Returns:
      packages names
    • StateAction

      Returns state action.
      Returns:
      state action
    • StateTransitionAction

      Returns state transition action.
      Returns:
      state transition action
    • stateActions

      public StatesLibrary.StateActionsStateUsage stateActions()
      Returns state actions.
      Returns:
      state actions
    • getTypeWrappers

      protected final Set<com.dassault_systemes.modeler.kerml.libraries.TypeWrapper> getTypeWrappers()
      Returns get type wrappers.
      Specified by:
      getTypeWrappers in class AbstractLibrary
      Returns:
      get type wrappers