Package com.nomagic.magicdraw.sysml.util
Class SysMLProfile.TriggerOnNestedPortStereotype
- java.lang.Object
-
- com.nomagic.profiles.ProfileImplementation.ProfileElementWrapper<Stereotype>
-
- com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
-
- com.nomagic.magicdraw.sysml.util.SysMLProfile.TriggerOnNestedPortStereotype
-
- Enclosing class:
- SysMLProfile
public static class SysMLProfile.TriggerOnNestedPortStereotype extends ProfileImplementation.StereotypeWrapper
-
-
Field Summary
Fields Modifier and Type Field Description private SysMLProfile
_p
private Property
onNestedPort
static java.lang.String
ONNESTEDPORT
static java.lang.String
PROPERTYPATH
The propertyPath list of the NestedConnectorEnd stereotype must identify a path of containing properties that identify the connected property in the context of the block that owns the connector.static java.lang.String
STEREOTYPE_NAME
-
Constructor Summary
Constructors Modifier Constructor Description protected
TriggerOnNestedPortStereotype(SysMLProfile profile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOnNestedPort(Element element, Element value)
void
addPropertyPath(Element element, Element value)
protected void
clear()
void
clearOnNestedPort(Element element)
void
clearPropertyPath(Element element)
java.util.List<Element>
getOnNestedPort(Element element)
Property
getOnNestedPortProperty()
java.util.List<Element>
getPropertyPath(Element element)
Property
getPropertyPathProperty()
Stereotype
getStereotype()
Returns stereotype for this wrapper.boolean
is(Element element)
static boolean
isInstance(Element element)
void
removeOnNestedPort(Element element, Element value)
void
removePropertyPath(Element element, Element value)
void
setOnNestedPort(Element element, java.util.Collection<? extends Element> value)
void
setPropertyPath(Element element, java.util.Collection<? extends Element> 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
-
ONNESTEDPORT
public static final java.lang.String ONNESTEDPORT
- See Also:
- Constant Field Values
-
PROPERTYPATH
public static final java.lang.String PROPERTYPATH
The propertyPath list of the NestedConnectorEnd stereotype must identify a path of containing properties that identify the connected property in the context of the block that owns the connector. The ordering of properties is from a property of the block that owns the connector, through a property of each intermediate block that types the preceding property, until a property is reached that contains a connector end property within its type. The connector end property is not included in the propertyPath list, but instead is held by the role property of the UML ConnectorEnd metaclass.- See Also:
- Constant Field Values
-
_p
private final SysMLProfile _p
-
onNestedPort
@CheckForNull private Property onNestedPort
-
-
Constructor Detail
-
TriggerOnNestedPortStereotype
protected TriggerOnNestedPortStereotype(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
-
getOnNestedPortProperty
@CheckForNull public Property getOnNestedPortProperty()
-
getPropertyPathProperty
@CheckForNull public Property getPropertyPathProperty()
-
setOnNestedPort
public void setOnNestedPort(Element element, @CheckForNull java.util.Collection<? extends Element> value)
-
clearOnNestedPort
public void clearOnNestedPort(Element element)
-
setPropertyPath
public void setPropertyPath(Element element, @CheckForNull java.util.Collection<? extends Element> value)
-
clearPropertyPath
public void clearPropertyPath(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)
-
-