Package com.nomagic.profiles
Class ProfileImplementation
java.lang.Object
com.nomagic.profiles.ProfileImplementation
- Direct Known Subclasses:
AnalysisPatternsProfile
,BPMN2Profile
,DependencyMatrixProfile
,MagicDrawProfile
,MDCustomizationForRequirements
,MDCustomizationForSysMLProfile
,ModelTransformationProfile
,ReportProfile
,SimulationProfile
,StandardProfile
,SysMLProfile
,SysPhSProfile
,UAF
,UIPrototypingProfile
,UPDMProfile
,ValidationProfile
Base class for a convenience class generated from a modeled Profile (UML), to allow quick access
to profile's elements (Stereotypes, tag Properties, Enumerations, DataTypes)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Base class for generated stereotype wrapper for Stereotype from a modeled Profile (UML). -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ProfileImplementation
(com.nomagic.profiles.ProfileCache cache) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected <T extends Element>
TfindByRelativeQualifiedName
(String relativeQName, Class<T> type) protected abstract Collection<com.nomagic.profiles.ProfileImplementation.ProfileElementWrapper>
Generated method for getting all stereotype wrappers contained within this profile.protected abstract Collection<Stereotype>
Generated method for getting all stereotypes contained within this profile.Gets all stereotypes contained within this profile.com.nomagic.profiles.ProfileCache
getCache()
final DataType
getDataType
(String name) It is recommended to avoid directly calling this method, and call method that matches the DataType name directly, as a separate method is generated for each DataType of the Profile.final Profile
final Stereotype
getStereotype
(String name) It is recommended to avoid directly calling this method, and call method that matches the Stereotype name directly, as a separate method is generated for each Stereotype of the Profile.boolean
isTypeOf
(Element element, Stereotype stereotype) boolean
protected static <E extends Enum<E> & com.nomagic.profiles.ProfileImplementation.TextProvider>
EvalueFromString
(Class<E> enumClass, Object value)
-
Constructor Details
-
ProfileImplementation
protected ProfileImplementation(com.nomagic.profiles.ProfileCache cache)
-
-
Method Details
-
getStereotype
It is recommended to avoid directly calling this method, and call method that matches the Stereotype name directly, as a separate method is generated for each Stereotype of the Profile.- Parameters:
name
- of the Stereotype- Returns:
- Stereotype from this profile by a given name
-
getDataType
It is recommended to avoid directly calling this method, and call method that matches the DataType name directly, as a separate method is generated for each DataType of the Profile.- Parameters:
name
- of the Stereotype- Returns:
- Stereotype from this profile by a given name
-
getProfile
- Returns:
- UML Profile element which is represented by this implementation. Will return null if the Profile is not used/loaded in the currently analyzed Model (Project or Resource)
-
findByRelativeQualifiedName
-
getCache
public com.nomagic.profiles.ProfileCache getCache()- Returns:
- returns profile cache.
-
isTypeOf
- Returns:
- true if given Element has applied the given stereotype or a stereotype derived from it
-
isTypeOf
- Returns:
- true if given Element has applied the given stereotype or a stereotype derived from it
-
getAllStereotypes
Gets all stereotypes contained within this profile.- Returns:
- unmodifiable collection containing all stereotypes within this profile.
-
generatedGetAllStereotypes
Generated method for getting all stereotypes contained within this profile.- Returns:
- gets all stereotypes contained within this profile.
-
generatedGetAllElementWrappers
protected abstract Collection<com.nomagic.profiles.ProfileImplementation.ProfileElementWrapper> generatedGetAllElementWrappers()Generated method for getting all stereotype wrappers contained within this profile.- Returns:
- gets all stereotype wrappers contained within this profile.
-
clearCache
protected void clearCache() -
valueFromString
-