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.ObjectBase class for generated stereotype wrapper for Stereotype from a modeled Profile (UML). Generated stereotype wrapper provides convenience methods for applying / unapplying stereotype to given element, manipulating tagged value values.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStereotypeWrapper(ProfileImplementation profile)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidapply(Element element)Applies stereotype of this wrapper to given element.protected StereotypegetElement(com.nomagic.profiles.ProfileCache cache, java.lang.String name)abstract StereotypegetStereotype()Returns stereotype for this wrapper.protected static PropertygetTagByName(Stereotype stereotype, java.lang.String tagName)abstract booleanis(Element element)Checks if stereotype of this wrapper is applied to given element.protected static java.lang.BooleantoBoolean(java.lang.Object o)protected static java.lang.DoubletoDouble(java.lang.Object o)protected static java.lang.IntegertoInteger(java.lang.Object o)protected static java.lang.StringtoString(java.lang.Object o)voidunApply(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
-
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)
-
-