Package com.nomagic.uml2.ext.jmi.helpers
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.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Deprecated.protected static class
Deprecated.protected static class
Deprecated. -
Constructor Summary
ModifierConstructorDescriptionprotected
StereotypeByProfileCache
(Project prj, String profileName) Deprecated.protected
StereotypeByProfileCache
(Project prj, String profileName, String profileURI) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Deprecated.Deprecated.Generated method for getting all stereotype wrappers contained within this profile.protected Collection<Stereotype>
Deprecated.Generated method for getting all stereotypes contained within this profile.Deprecated.Gets all stereotypes contained within this profile.getDataType
(String name) Deprecated.protected static <S extends com.dassault_systemes.modeler.foundation.project.service.ModelElementProjectService,
T extends Project>
SgetInternalInstance
(Class<S> key, T project) Deprecated.This is only used for backwards compatibility with previously usedAbstractProjectService
return getOrCreateInstance(MyProfile.class, MyProfile::new, project);
or
getOrCreateInstanceWithNullSupport(MyProfile.class, MyProfile::new, project);
should be used in place of thisDeprecated.getStereotype
(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
Deprecated.Checks if given Element is type of given Stereotype (has assigned stereotype or some derived stereotype).Methods inherited from class com.dassault_systemes.modeler.foundation.project.service.ModelElementProjectService
disposeService, getIfPresent, getOrCreateInstance, getOrCreateInstanceWithNullSupport, getReferencedProject
-
Constructor Details
-
StereotypeByProfileCache
Deprecated. -
StereotypeByProfileCache
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 usedAbstractProjectService
return getOrCreateInstance(MyProfile.class, MyProfile::new, project);
or
getOrCreateInstanceWithNullSupport(MyProfile.class, MyProfile::new, project);
should be used in place of this -
getStereotype
Deprecated. -
getDataType
Deprecated. -
getProfile
Deprecated. -
getAllStereotypes
Deprecated.Gets all stereotypes contained within this profile.- Returns:
- unmodifiable collection containing all stereotypes within this profile.
-
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
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
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
-
ProfileImplementation
. Re-generate the profile class using "Generate Profile Class Implementation" action from the Development Tools plugin