Package com.nomagic.profiles
Class ProfileImplementation.StereotypeWrapper
- java.lang.Object
-
- com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
-
- Direct Known Subclasses:
MagicDrawProfile.AbstractGanttChartDiagramStereotype
,MagicDrawProfile.AdditionalElementImportStereotype
,MagicDrawProfile.AdditionalPackageImportStereotype
,MagicDrawProfile.AdornmentRuleStereotype
,MagicDrawProfile.AspectStereotype
,MagicDrawProfile.AssemblyStereotype
,MagicDrawProfile.AttachedFileStereotype
,MagicDrawProfile.AutoGeneratedNameStereotype
,MagicDrawProfile.AutoNumberStereotype
,MagicDrawProfile.AuxiliaryResourceStereotype
,MagicDrawProfile.BoundaryStereotype
,MagicDrawProfile.CompleteStereotype
,MagicDrawProfile.ConceptualViewStereotype
,MagicDrawProfile.ConstructorStereotype
,MagicDrawProfile.ControlStereotype
,MagicDrawProfile.CustomImageHolderStereotype
,MagicDrawProfile.CustomizationStereotype
,MagicDrawProfile.CustomSortStereotype
,MagicDrawProfile.DelegateStereotype
,MagicDrawProfile.DeploymentViewStereotype
,MagicDrawProfile.DeprecatedStereotype
,MagicDrawProfile.DerivedPropertiesSuiteStereotype
,MagicDrawProfile.DerivedPropertySpecificationStereotype
,MagicDrawProfile.DesignModelStereotype
,MagicDrawProfile.DestructorStereotype
,MagicDrawProfile.DiagramContentFilterStereotype
,MagicDrawProfile.DiagramInfoStereotype
,MagicDrawProfile.DiagramTableMapToDataSourceStereotype
,MagicDrawProfile.DiagramTableStereotype
,MagicDrawProfile.DragAndDropSpecificationStereotype
,MagicDrawProfile.EdStereotype
,MagicDrawProfile.ElementReferenceInTextStereotype
,MagicDrawProfile.ElementsLibraryBranchStereotype
,MagicDrawProfile.ElementsLibraryStereotype
,MagicDrawProfile.FileViewStereotype
,MagicDrawProfile.GetterStereotype
,MagicDrawProfile.GroupedStereotype
,MagicDrawProfile.HasGroupNameStereotype
,MagicDrawProfile.HyperlinkOwnerStereotype
,MagicDrawProfile.IconHolderStereotype
,MagicDrawProfile.IgnoreAuxFilterStereotype
,MagicDrawProfile.ImplementationModelStereotype
,MagicDrawProfile.ImportMapGroupStereotype
,MagicDrawProfile.ImportMapStereotype
,MagicDrawProfile.InfoStereotype
,MagicDrawProfile.InstanceTableStereotype
,MagicDrawProfile.InvisibleStereotypeStereotype
,MagicDrawProfile.LayoutTemplateStereotype
,MagicDrawProfile.LegendItemStereotype
,MagicDrawProfile.LegendStereotype
,MagicDrawProfile.LegendUsageStereotype
,MagicDrawProfile.MapToDataSourceStereotype
,MagicDrawProfile.MergedDiagramStereotype
,MagicDrawProfile.MetaPropertyStereotype
,MagicDrawProfile.MetricDefinitionStereotype
,MagicDrawProfile.MetricInstanceStereotype
,MagicDrawProfile.MetricSuiteStereotype
,MagicDrawProfile.MigrationLogStereotype
,MagicDrawProfile.MountStereotype
,MagicDrawProfile.NumberingSchemeStereotype
,MagicDrawProfile.NumberOwnerStereotype
,MagicDrawProfile.NumberPartStereotype
,MagicDrawProfile.ParameterDefinitionStereotype
,MagicDrawProfile.PlaceOnPalettePropertyStereotype
,MagicDrawProfile.ProcessViewStereotype
,MagicDrawProfile.ProfileUpgradeMappingRuleStereotype
,MagicDrawProfile.ProfileUpgradeTableStereotype
,MagicDrawProfile.PropertyGroupStereotype
,MagicDrawProfile.RelationMapStereotype
,MagicDrawProfile.ReplaceStereotypeStereotype
,MagicDrawProfile.ReplaceTaggedValueStereotype
,MagicDrawProfile.ReplaceTypeStereotype
,MagicDrawProfile.ReportTemplateStereotype
,MagicDrawProfile.RequiresFeatureStereotype
,MagicDrawProfile.RuleStereotype
,MagicDrawProfile.SddSubsystemStereotype
,MagicDrawProfile.SearchRuleStereotype
,MagicDrawProfile.SetterStereotype
,MagicDrawProfile.SmartPackageStereotype
,MagicDrawProfile.SuggestedStringValuesStereotype
,MagicDrawProfile.SuggestedValuesStereotype
,MagicDrawProfile.TagGroupStereotype
,MagicDrawProfile.TermStereotype
,MagicDrawProfile.Todo_OwnerStereotype
,MagicDrawProfile.TypeModifierStereotype
,MagicDrawProfile.UseCaseModelStereotype
,MagicDrawProfile.UseCaseViewStereotype
,MagicDrawProfile.ValidationBasedMetricDefinitionStereotype
,MagicDrawProfile.VirtualStereotype
,StandardProfile.AuxiliaryStereotype
,StandardProfile.BuildComponentStereotype
,StandardProfile.CallStereotype
,StandardProfile.CreateStereotype
,StandardProfile.DeriveStereotype
,StandardProfile.DestroyStereotype
,StandardProfile.DocumentStereotype
,StandardProfile.EntityStereotype
,StandardProfile.ExecutableStereotype
,StandardProfile.FileStereotype
,StandardProfile.FocusStereotype
,StandardProfile.FrameworkStereotype
,StandardProfile.ImplementationClassStereotype
,StandardProfile.ImplementStereotype
,StandardProfile.InstantiateStereotype
,StandardProfile.LibraryStereotype
,StandardProfile.MetaclassStereotype
,StandardProfile.MetamodelStereotype
,StandardProfile.ModelLibraryStereotype
,StandardProfile.ProcessStereotype
,StandardProfile.RealizationStereotype
,StandardProfile.RefineStereotype
,StandardProfile.ResponsibilityStereotype
,StandardProfile.ScriptStereotype
,StandardProfile.SendStereotype
,StandardProfile.ServiceStereotype
,StandardProfile.SourceStereotype
,StandardProfile.SpecificationStereotype
,StandardProfile.SubsystemStereotype
,StandardProfile.SystemModelStereotype
,StandardProfile.TraceStereotype
,StandardProfile.TypeStereotype
,StandardProfile.UtilityStereotype
,ValidationProfile.ActiveValidationSuiteStereotype
,ValidationProfile.DebugIconStereotype
,ValidationProfile.DefinitionStereotype
,ValidationProfile.ErrorIconStereotype
,ValidationProfile.FatalIconStereotype
,ValidationProfile.ImagedStereotype
,ValidationProfile.InfoIconStereotype
,ValidationProfile.InvariantStereotype
,ValidationProfile.SystemValidationSuiteStereotype
,ValidationProfile.ValidationRuleStereotype
,ValidationProfile.ValidationSuiteStereotype
,ValidationProfile.WarningIconStereotype
- Enclosing class:
- ProfileImplementation
@OpenApi protected abstract static class ProfileImplementation.StereotypeWrapper extends java.lang.Object
Base class for generated stereotype wrapper for Stereotype from a modeled Profile (UML). Generated stereotype wrapper provides convenience methods for applying / un-applying stereotype to given element, manipulating tagged value values.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StereotypeWrapper(ProfileImplementation profile)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
apply(Element element)
Applies stereotype of this wrapper to given element.protected Stereotype
getElement(com.nomagic.profiles.ProfileCache cache, java.lang.String name)
abstract Stereotype
getStereotype()
Returns stereotype for this wrapper.protected static Property
getTagByName(Stereotype stereotype, java.lang.String tagName)
abstract boolean
is(Element element)
Checks if stereotype of this wrapper is applied to given element.boolean
isDerivedStereotype(Stereotype stereotype)
boolean
isSameOrDerivedStereotype(Stereotype stereotype)
protected static java.lang.Boolean
toBoolean(java.lang.Object o)
protected static java.lang.Double
toDouble(java.lang.Object o)
protected static java.lang.Integer
toInteger(java.lang.Object o)
protected static java.lang.String
toString(java.lang.Object o)
void
unApply(Element element)
Removes applied stereotype of this wrapper from given element.
-
-
-
Constructor Detail
-
StereotypeWrapper
protected StereotypeWrapper(ProfileImplementation profile)
-
-
Method Detail
-
apply
@OpenApi public void apply(Element element)
Applies stereotype of this wrapper to given element.- Parameters:
element
- element
-
unApply
@OpenApi public void unApply(Element element)
Removes applied stereotype of this wrapper from given element.- Parameters:
element
- element
-
is
public abstract boolean is(@CheckForNull Element element)
Checks if stereotype of this wrapper is applied to given element.- Parameters:
element
- element- Returns:
- true if stereotype of this wrapper is applied to given element
-
getStereotype
@OpenApi public abstract Stereotype getStereotype()
Returns stereotype for this wrapper.- Returns:
- stereotype
-
isSameOrDerivedStereotype
@OpenApi public boolean isSameOrDerivedStereotype(Stereotype stereotype)
- Returns:
- true if given stereotype is same or derived from this stereotype
- See Also:
getStereotype()
-
isDerivedStereotype
@OpenApi public boolean isDerivedStereotype(Stereotype stereotype)
- Returns:
- true if given stereotype is derived from this stereotype
- See Also:
getStereotype()
,isSameOrDerivedStereotype(Stereotype)
-
getElement
@CheckForNull protected Stereotype getElement(com.nomagic.profiles.ProfileCache cache, java.lang.String name)
-
getTagByName
@CheckForNull protected static Property getTagByName(@CheckForNull Stereotype stereotype, java.lang.String tagName)
-
toInteger
@CheckForNull protected static java.lang.Integer toInteger(@CheckForNull java.lang.Object o)
-
toBoolean
@CheckForNull protected static java.lang.Boolean toBoolean(@CheckForNull java.lang.Object o)
-
toString
@CheckForNull protected static java.lang.String toString(@CheckForNull java.lang.Object o)
-
toDouble
@CheckForNull protected static java.lang.Double toDouble(@CheckForNull java.lang.Object o)
-
-