Package com.nomagic.magicdraw.sysml.util
Class SysMLProfile.ValueTypeStereotype
- java.lang.Object
-
- com.nomagic.profiles.ProfileImplementation.ProfileElementWrapper<Stereotype>
-
- 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 private SysMLProfile_pprivate PropertyquantityKindstatic java.lang.StringQUANTITYKINDA kind of quantity that may be stated by means of defined units, as identified by an instance of the Dimension stereotype.static java.lang.StringSTEREOTYPE_NAMEprivate Propertyunitstatic java.lang.StringUNITA 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 protectedValueTypeStereotype(SysMLProfile profile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclear()voidclearQuantityKind(Element element)voidclearUnit(Element element)ElementgetQuantityKind(Element element)PropertygetQuantityKindProperty()StereotypegetStereotype()Returns stereotype for this wrapper.ElementgetUnit(Element element)PropertygetUnitProperty()booleanis(Element element)static booleanisInstance(Element element)voidsetQuantityKind(Element element, Element value)voidsetUnit(Element element, 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
-
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
-
_p
private final SysMLProfile _p
-
quantityKind
@CheckForNull private Property quantityKind
-
unit
@CheckForNull private Property unit
-
-
Constructor Detail
-
ValueTypeStereotype
protected ValueTypeStereotype(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
-
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()
- Overrides:
clearin classProfileImplementation.ProfileElementWrapper<Stereotype>
-
is
public boolean is(@CheckForNull Element element)
-
isInstance
public static boolean isInstance(@CheckForNull Element element)
-
-