Package com.nomagic.magicdraw.sysml.util
Class MDCustomizationForSysMLProfile.AlternativesStereotype
- java.lang.Object
-
- com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
-
- com.nomagic.magicdraw.sysml.util.MDCustomizationForSysMLProfile.AlternativesStereotype
-
- Enclosing class:
- MDCustomizationForSysMLProfile
public static class MDCustomizationForSysMLProfile.AlternativesStereotype extends ProfileImplementation.StereotypeWrapper
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
KIND
Kind of the source of alternatives.static java.lang.String
SOURCE
Source of alternatives.static java.lang.String
STEREOTYPE_NAME
-
Constructor Summary
Constructors Modifier Constructor Description protected
AlternativesStereotype(MDCustomizationForSysMLProfile profile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clear()
void
clearKind(Element element)
void
clearSource(Element element)
MDCustomizationForSysMLProfile.SourceKindEnum
getKind(Element element)
Property
getKindProperty()
Element
getSource(Element element)
Property
getSourceProperty()
Stereotype
getStereotype()
Returns stereotype for this wrapper.boolean
is(Element element)
static boolean
isInstance(Element element)
void
setKind(Element element, MDCustomizationForSysMLProfile.SourceKindEnum value)
void
setSource(Element element, Element value)
-
Methods inherited from class com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
apply, isDerivedStereotype, isSameOrDerivedStereotype, unApply
-
-
-
-
Field Detail
-
STEREOTYPE_NAME
public static final java.lang.String STEREOTYPE_NAME
- See Also:
- Constant Field Values
-
KIND
public static final java.lang.String KIND
Kind of the source of alternatives.- See Also:
- Constant Field Values
-
SOURCE
public static final java.lang.String SOURCE
Source of alternatives. If the kind is specified as a Table, the source must be an Instance Table. If the kind is specified as Excel, the source must be an Instance Table linked to an Excel file or an ImportMap element. If the kind is specified as Subtypes, the source must be a parent Block of subtypes.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AlternativesStereotype
protected AlternativesStereotype(MDCustomizationForSysMLProfile profile)
-
-
Method Detail
-
getStereotype
public Stereotype getStereotype()
Description copied from class:ProfileImplementation.StereotypeWrapper
Returns stereotype for this wrapper.- Specified by:
getStereotype
in classProfileImplementation.StereotypeWrapper
- Returns:
- stereotype
-
getKindProperty
@CheckForNull public Property getKindProperty()
-
getSourceProperty
@CheckForNull public Property getSourceProperty()
-
setKind
public void setKind(Element element, @CheckForNull MDCustomizationForSysMLProfile.SourceKindEnum value)
-
clearKind
public void clearKind(Element element)
-
getKind
@CheckForNull public MDCustomizationForSysMLProfile.SourceKindEnum getKind(Element element)
-
clearSource
public void clearSource(Element element)
-
clear
protected void clear()
-
is
public boolean is(@CheckForNull Element element)
-
isInstance
public static boolean isInstance(@CheckForNull Element element)
-
-