public static class MagicDrawProfile.TermStereotype extends ProfileImplementation.StereotypeWrapper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STEREOTYPE_NAME |
static java.lang.String |
SYNONYMS
A list of words and phrases defining synonyms of a term.
|
Modifier | Constructor and Description |
---|---|
protected |
TermStereotype(MagicDrawProfile profile) |
Modifier and Type | Method and 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) |
apply, unApply
getElement, getElementByName
public static final java.lang.String STEREOTYPE_NAME
public static final java.lang.String SYNONYMS
protected TermStereotype(MagicDrawProfile profile)
public Stereotype getStereotype()
ProfileImplementation.StereotypeWrapper
getStereotype
in class ProfileImplementation.StereotypeWrapper
@CheckForNull public Property getSynonymsProperty()
public void setSynonyms(Element element, @CheckForNull java.util.Collection<java.lang.String> value)
public void clearSynonyms(Element element)
public void addSynonyms(Element element, java.lang.String value)
public void removeSynonyms(Element element, java.lang.String value)
public java.util.List<java.lang.String> getSynonyms(Element element)
protected void clear()
clear
in class ProfileImplementation.ProfileElementWrapper<Stereotype>
public boolean is(@CheckForNull Element element)
ProfileImplementation.StereotypeWrapper
is
in class ProfileImplementation.StereotypeWrapper
element
- elementpublic static boolean isInstance(@CheckForNull Element element)