Package com.nomagic.magicdraw.sysml.util
Class SysMLProfile.FlowPortStereotype
- java.lang.Object
-
- com.nomagic.profiles.ProfileImplementation.ProfileElementWrapper<Stereotype>
-
- com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
-
- com.nomagic.magicdraw.sysml.util.SysMLProfile.FlowPortStereotype
-
- Enclosing class:
- SysMLProfile
public static class SysMLProfile.FlowPortStereotype extends ProfileImplementation.StereotypeWrapper
-
-
Field Summary
Fields Modifier and Type Field Description private SysMLProfile
_p
private Property
direction
static java.lang.String
DIRECTION
Indicates the direction in which an atomic flow port relays its items.private Property
isAtomic
static java.lang.String
ISATOMIC
This is a derived attribute (derived from the flow port s type).static java.lang.String
STEREOTYPE_NAME
-
Constructor Summary
Constructors Modifier Constructor Description protected
FlowPortStereotype(SysMLProfile profile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clear()
void
clearDirection(Element element)
void
clearIsAtomic(Element element)
SysMLProfile.FlowDirectionKindEnum
getDirection(Element element)
Property
getDirectionProperty()
Property
getIsAtomicProperty()
Stereotype
getStereotype()
Returns stereotype for this wrapper.boolean
is(Element element)
static boolean
isInstance(Element element)
java.lang.Boolean
isIsAtomic(Element element)
void
setDirection(Element element, SysMLProfile.FlowDirectionKindEnum value)
void
setIsAtomic(Element element, java.lang.Boolean value)
-
Methods inherited from class com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
apply, isDerivedStereotype, isSameOrDerivedStereotype, unApply
-
Methods inherited from class com.nomagic.profiles.ProfileImplementation.ProfileElementWrapper
getElementByName
-
-
-
-
Field Detail
-
STEREOTYPE_NAME
public static final java.lang.String STEREOTYPE_NAME
- See Also:
- Constant Field Values
-
DIRECTION
public static final java.lang.String DIRECTION
Indicates the direction in which an atomic flow port relays its items. If the direction is set to in, then the items are relayed from an external connector via the flow port into the flow port s owner (or one of its parts). If the direction is set to out, then the items are relayed from the flow port s owner, via the flow port, through an external connector attached to the flow port. If the direction is set to inout, then items can flow both ways. By default, the value is inout.- See Also:
- Constant Field Values
-
ISATOMIC
public static final java.lang.String ISATOMIC
This is a derived attribute (derived from the flow port s type). For a flow port typed by a flow specification the value of this attribute is False, otherwise the value is True.- See Also:
- Constant Field Values
-
_p
private final SysMLProfile _p
-
direction
@CheckForNull private Property direction
-
isAtomic
@CheckForNull private Property isAtomic
-
-
Constructor Detail
-
FlowPortStereotype
protected FlowPortStereotype(SysMLProfile 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
-
getDirectionProperty
@CheckForNull public Property getDirectionProperty()
-
getIsAtomicProperty
@CheckForNull public Property getIsAtomicProperty()
-
setDirection
public void setDirection(Element element, @CheckForNull SysMLProfile.FlowDirectionKindEnum value)
-
clearDirection
public void clearDirection(Element element)
-
getDirection
@CheckForNull public SysMLProfile.FlowDirectionKindEnum getDirection(Element element)
-
setIsAtomic
public void setIsAtomic(Element element, @CheckForNull java.lang.Boolean value)
-
clearIsAtomic
public void clearIsAtomic(Element element)
-
isIsAtomic
@CheckForNull public java.lang.Boolean isIsAtomic(Element element)
-
clear
protected void clear()
- Overrides:
clear
in classProfileImplementation.ProfileElementWrapper<Stereotype>
-
is
public boolean is(@CheckForNull Element element)
-
isInstance
public static boolean isInstance(@CheckForNull Element element)
-
-