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_pprivate Propertydirectionstatic java.lang.StringDIRECTIONIndicates the direction in which an atomic flow port relays its items.private PropertyisAtomicstatic java.lang.StringISATOMICThis is a derived attribute (derived from the flow port s type).static java.lang.StringSTEREOTYPE_NAME
-
Constructor Summary
Constructors Modifier Constructor Description protectedFlowPortStereotype(SysMLProfile profile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclear()voidclearDirection(Element element)voidclearIsAtomic(Element element)SysMLProfile.FlowDirectionKindEnumgetDirection(Element element)PropertygetDirectionProperty()PropertygetIsAtomicProperty()StereotypegetStereotype()Returns stereotype for this wrapper.booleanis(Element element)static booleanisInstance(Element element)java.lang.BooleanisIsAtomic(Element element)voidsetDirection(Element element, SysMLProfile.FlowDirectionKindEnum value)voidsetIsAtomic(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.StereotypeWrapperReturns stereotype for this wrapper.- Specified by:
getStereotypein 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:
clearin classProfileImplementation.ProfileElementWrapper<Stereotype>
-
is
public boolean is(@CheckForNull Element element)
-
isInstance
public static boolean isInstance(@CheckForNull Element element)
-
-