Package com.nomagic.uml2
Class MagicDrawProfile.TermStereotype
- java.lang.Object
-
- com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
-
- com.nomagic.uml2.MagicDrawProfile.TermStereotype
-
- Enclosing class:
- MagicDrawProfile
public static class MagicDrawProfile.TermStereotype extends ProfileImplementation.StereotypeWrapper
-
-
Field Summary
Fields Modifier and Type Field Description private MagicDrawProfile
_p
static java.lang.String
STEREOTYPE_NAME
private Property
synonyms
static java.lang.String
SYNONYMS
A list of words and phrases defining synonyms of a term.
-
Constructor Summary
Constructors Modifier Constructor Description protected
TermStereotype(MagicDrawProfile profile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSynonyms(Element element, java.lang.String value)
protected void
clear()
void
clearSynonyms(Element element)
Stereotype
getStereotype()
Returns stereotype for this wrapper.java.util.List<java.lang.String>
getSynonyms(Element element)
Property
getSynonymsProperty()
boolean
is(Element element)
Checks if stereotype of this wrapper is applied to given element.static boolean
isInstance(Element element)
void
removeSynonyms(Element element, java.lang.String value)
void
setSynonyms(Element element, java.util.Collection<java.lang.String> value)
-
Methods inherited from class com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
apply, getElement, getTagByName, isDerivedStereotype, isSameOrDerivedStereotype, toBoolean, toDouble, toInteger, toString, unApply
-
-
-
-
Field Detail
-
STEREOTYPE_NAME
public static final java.lang.String STEREOTYPE_NAME
- See Also:
- Constant Field Values
-
SYNONYMS
public static final java.lang.String SYNONYMS
A list of words and phrases defining synonyms of a term.- See Also:
- Constant Field Values
-
_p
private final MagicDrawProfile _p
-
synonyms
@CheckForNull private Property synonyms
-
-
Constructor Detail
-
TermStereotype
protected TermStereotype(MagicDrawProfile 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
-
getSynonymsProperty
@CheckForNull public Property getSynonymsProperty()
-
setSynonyms
public void setSynonyms(Element element, @CheckForNull java.util.Collection<java.lang.String> value)
-
clearSynonyms
public void clearSynonyms(Element element)
-
addSynonyms
public void addSynonyms(Element element, java.lang.String value)
-
removeSynonyms
public void removeSynonyms(Element element, java.lang.String value)
-
getSynonyms
public java.util.List<java.lang.String> getSynonyms(Element element)
-
clear
protected void clear()
-
is
public boolean is(@CheckForNull Element element)
Description copied from class:ProfileImplementation.StereotypeWrapper
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
-
isInstance
public static boolean isInstance(@CheckForNull Element element)
-
-