Package com.nomagic.uml2
Class MagicDrawProfile.VirtualStereotype
- java.lang.Object
-
- com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
-
- com.nomagic.uml2.MagicDrawProfile.VirtualStereotype
-
- Enclosing class:
- MagicDrawProfile
public static class MagicDrawProfile.VirtualStereotype extends ProfileImplementation.StereotypeWrapper
-
-
Field Summary
Fields Modifier and Type Field Description private MagicDrawProfile
_p
private Property
details
static java.lang.String
DETAILS
private Property
n
static java.lang.String
N
static java.lang.String
STEREOTYPE_NAME
-
Constructor Summary
Constructors Modifier Constructor Description protected
VirtualStereotype(MagicDrawProfile profile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDetails(Element element, java.lang.String value)
protected void
clear()
void
clearDetails(Element element)
void
clearN(Element element)
java.util.List<java.lang.String>
getDetails(Element element)
Property
getDetailsProperty()
java.lang.Integer
getN(Element element)
Property
getNProperty()
Stereotype
getStereotype()
Returns stereotype for this wrapper.boolean
is(Element element)
Checks if stereotype of this wrapper is applied to given element.static boolean
isInstance(Element element)
void
removeDetails(Element element, java.lang.String value)
void
setDetails(Element element, java.util.Collection<java.lang.String> value)
void
setN(Element element, java.lang.Integer 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
-
DETAILS
public static final java.lang.String DETAILS
- See Also:
- Constant Field Values
-
N
public static final java.lang.String N
- See Also:
- Constant Field Values
-
_p
private final MagicDrawProfile _p
-
details
@CheckForNull private Property details
-
n
@CheckForNull private Property n
-
-
Constructor Detail
-
VirtualStereotype
protected VirtualStereotype(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
-
getDetailsProperty
@CheckForNull public Property getDetailsProperty()
-
getNProperty
@CheckForNull public Property getNProperty()
-
setDetails
public void setDetails(Element element, @CheckForNull java.util.Collection<java.lang.String> value)
-
clearDetails
public void clearDetails(Element element)
-
addDetails
public void addDetails(Element element, java.lang.String value)
-
removeDetails
public void removeDetails(Element element, java.lang.String value)
-
getDetails
public java.util.List<java.lang.String> getDetails(Element element)
-
setN
public void setN(Element element, @CheckForNull java.lang.Integer value)
-
clearN
public void clearN(Element element)
-
getN
@CheckForNull public java.lang.Integer getN(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)
-
-