Class StereotypeByProfileCache

java.lang.Object
com.dassault_systemes.modeler.foundation.project.service.ModelElementProjectService<Project>
com.nomagic.magicdraw.core.project.service.ProjectService
com.nomagic.uml2.ext.jmi.helpers.StereotypeByProfileCache
All Implemented Interfaces:
com.dassault_systemes.modeler.foundation.project.service.DisposableService

@Deprecated @OpenApiAll public abstract class StereotypeByProfileCache extends com.nomagic.magicdraw.core.project.service.ProjectService
Deprecated.
Profile should extend ProfileImplementation. Re-generate the profile class using "Generate Profile Class Implementation" action from the Development Tools plugin
  • Constructor Details

    • StereotypeByProfileCache

      protected StereotypeByProfileCache(Project prj, String profileName)
      Deprecated.
    • StereotypeByProfileCache

      protected StereotypeByProfileCache(Project prj, String profileName, String profileURI)
      Deprecated.
  • Method Details

    • getInternalInstance

      @CheckForNull @Deprecated protected static <S extends com.dassault_systemes.modeler.foundation.project.service.ModelElementProjectService, T extends Project> S getInternalInstance(Class<S> key, @CheckForNull T project)
      Deprecated.
      This is only used for backwards compatibility with previously used AbstractProjectService
      return getOrCreateInstance(MyProfile.class, MyProfile::new, project);
      or
      getOrCreateInstanceWithNullSupport(MyProfile.class, MyProfile::new, project);
      should be used in place of this
    • getStereotype

      @CheckForNull public Stereotype getStereotype(String name)
      Deprecated.
    • getDataType

      @CheckForNull public DataType getDataType(String name)
      Deprecated.
    • getProfile

      @CheckForNull public Profile getProfile()
      Deprecated.
    • getAllStereotypes

      public Collection<Stereotype> getAllStereotypes()
      Deprecated.
      Gets all stereotypes contained within this profile.
      Returns:
      unmodifiable collection containing all stereotypes within this profile.
    • generatedGetAllStereotypes

      protected Collection<Stereotype> generatedGetAllStereotypes()
      Deprecated.
      Generated method for getting all stereotypes contained within this profile.
      Returns:
      gets all stereotypes contained within this profile.
    • generatedGetAllElementWrappers

      protected Collection<StereotypeByProfileCache.AbstractElementWrapper> generatedGetAllElementWrappers()
      Deprecated.
      Generated method for getting all stereotype wrappers contained within this profile.
      Returns:
      gets all stereotype wrappers contained within this profile.
    • isTypeOf

      public boolean isTypeOf(Element element, String stereotypeName)
      Deprecated.
      Checks if given Element is type of given Stereotype (has assigned stereotype or some derived stereotype). Caches value of this check
      Parameters:
      element - element
      stereotypeName - stereotype
      Returns:
      true if element has assigned given stereotype
    • clearCache

      protected void clearCache()
      Deprecated.
    • isTypeOf

      public boolean isTypeOf(Element element, @CheckForNull Stereotype stereotype)
      Deprecated.
      Checks if given Element is type of given Stereotype (has assigned stereotype or some derived stereotype). Caches value of this check
      Parameters:
      element - element
      stereotype - stereotype
      Returns:
      true if element has assigned given stereotype