Package com.nomagic.magicdraw.sysml.util
Class SysMLProfile.ValueTypeStereotype
- java.lang.Object
-
- com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
-
- com.nomagic.magicdraw.sysml.util.SysMLProfile.ValueTypeStereotype
-
- Enclosing class:
- SysMLProfile
public static class SysMLProfile.ValueTypeStereotype extends ProfileImplementation.StereotypeWrapper
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
QUANTITYKIND
A kind of quantity that may be stated by means of defined units, as identified by an instance of the Dimension stereotype.static java.lang.String
STEREOTYPE_NAME
static java.lang.String
UNIT
A quantity in terms of which the magnitudes of other quantities that have the same dimension can be stated, as identified by an instance of the Unit stereotype.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ValueTypeStereotype(SysMLProfile profile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clear()
void
clearQuantityKind(Element element)
void
clearUnit(Element element)
Element
getQuantityKind(Element element)
Property
getQuantityKindProperty()
Stereotype
getStereotype()
Returns stereotype for this wrapper.Element
getUnit(Element element)
Property
getUnitProperty()
boolean
is(Element element)
static boolean
isInstance(Element element)
void
setQuantityKind(Element element, Element value)
void
setUnit(Element element, Element value)
-
Methods inherited from class com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
apply, isDerivedStereotype, isSameOrDerivedStereotype, unApply
-
-
-
-
Field Detail
-
STEREOTYPE_NAME
public static final java.lang.String STEREOTYPE_NAME
- See Also:
- Constant Field Values
-
QUANTITYKIND
public static final java.lang.String QUANTITYKIND
A kind of quantity that may be stated by means of defined units, as identified by an instance of the Dimension stereotype. A value type may optionally specify a dimension without any unit. Such a value has no concrete representation, but may be used to express a value in an abstract form independent of any specific units.- See Also:
- Constant Field Values
-
UNIT
public static final java.lang.String UNIT
A quantity in terms of which the magnitudes of other quantities that have the same dimension can be stated, as identified by an instance of the Unit stereotype.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ValueTypeStereotype
protected ValueTypeStereotype(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
-
getQuantityKindProperty
@CheckForNull public Property getQuantityKindProperty()
-
getUnitProperty
@CheckForNull public Property getUnitProperty()
-
clearQuantityKind
public void clearQuantityKind(Element element)
-
clearUnit
public void clearUnit(Element element)
-
clear
protected void clear()
-
is
public boolean is(@CheckForNull Element element)
-
isInstance
public static boolean isInstance(@CheckForNull Element element)
-
-