Package com.nomagic.uml2.ext.jmi.helpers
Class StereotypeByProfileCache
- java.lang.Object
-
- com.nomagic.magicdraw.core.project.service.AbstractProjectService
-
- com.nomagic.uml2.ext.jmi.helpers.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 extendProfileImplementation
. Re-generate the profile class using "Generate Profile Class Implementation" action from the Development Tools plugin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
StereotypeByProfileCache.AbstractElementWrapper<ELEMENT extends Element>
Deprecated.protected static class
StereotypeByProfileCache.AbstractEnumerationWrapper
Deprecated.protected static class
StereotypeByProfileCache.AbstractStereotypeWrapper
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<StereotypeByProfileCache.AbstractElementWrapper>
allElementWrappers
Deprecated.private com.nomagic.magicdraw.profiles.ProjectBasedProfileCache
delegate
Deprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protected
StereotypeByProfileCache(Project prj, java.lang.String profileName)
Deprecated.protected
StereotypeByProfileCache(Project prj, java.lang.String profileName, java.lang.String profileURI)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
clearCache()
Deprecated.protected java.util.Collection<StereotypeByProfileCache.AbstractElementWrapper>
generatedGetAllElementWrappers()
Deprecated.Generated method for getting all stereotype wrappers contained within this profile.protected java.util.Collection<Stereotype>
generatedGetAllStereotypes()
Deprecated.Generated method for getting all stereotypes contained within this profile.private java.util.Collection<StereotypeByProfileCache.AbstractElementWrapper>
getAllElementWrappers()
Deprecated.java.util.Collection<Stereotype>
getAllStereotypes()
Deprecated.Gets all stereotypes contained within this profile.DataType
getDataType(java.lang.String name)
Deprecated.Profile
getProfile()
Deprecated.Stereotype
getStereotype(java.lang.String name)
Deprecated.boolean
isTypeOf(Element element, Stereotype stereotype)
Deprecated.Checks if given Element is type of given Stereotype (has assigned stereotype or some derived stereotype).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).
-
-
-
Field Detail
-
delegate
private final com.nomagic.magicdraw.profiles.ProjectBasedProfileCache delegate
Deprecated.
-
allElementWrappers
@CheckForNull private java.util.Collection<StereotypeByProfileCache.AbstractElementWrapper> allElementWrappers
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.
-
getAllElementWrappers
private java.util.Collection<StereotypeByProfileCache.AbstractElementWrapper> getAllElementWrappers()
Deprecated.
-
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
- elementstereotypeName
- 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
- elementstereotype
- stereotype- Returns:
- true if element has assigned given stereotype
-
-