Class StereotypeByProfileCache

  • All Implemented Interfaces:
    com.nomagic.magicdraw.core.project.service.DisposableService

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

      • delegate

        private final com.nomagic.magicdraw.profiles.ProjectBasedProfileCache delegate
        Deprecated.
    • Constructor Detail

      • StereotypeByProfileCache

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

        protected StereotypeByProfileCache​(Project prj,
                                           java.lang.String profileName,
                                           java.lang.String profileURI)
        Deprecated.
    • Method Detail

      • getStereotype

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

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

        @CheckForNull
        public Profile getProfile()
        Deprecated.
      • getAllStereotypes

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

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

        protected java.util.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,
                                java.lang.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