Package com.nomagic.magicdraw.sysml.util
Class SysMLProfile.ValueTypeStereotype
- java.lang.Object
-
- com.nomagic.magicdraw.sysml.util.SysMLProfile.ValueTypeStereotype
-
- Enclosing class:
- SysMLProfile
public static class SysMLProfile.ValueTypeStereotype extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private SysMLProfile
_p
private com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property
quantityKind
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
private com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property
unit
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(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
void
clearUnit(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element
getQuantityKind(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property
getQuantityKindProperty()
com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype
getStereotype()
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element
getUnit(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property
getUnitProperty()
boolean
is(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
static boolean
isInstance(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
void
setQuantityKind(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element value)
void
setUnit(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element value)
-
-
-
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 com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property quantityKind
-
unit
@CheckForNull private com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property unit
-
-
Constructor Detail
-
ValueTypeStereotype
protected ValueTypeStereotype(SysMLProfile profile)
-
-
Method Detail
-
getStereotype
public com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype getStereotype()
-
getQuantityKindProperty
@CheckForNull public com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property getQuantityKindProperty()
-
getUnitProperty
@CheckForNull public com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property getUnitProperty()
-
setQuantityKind
public void setQuantityKind(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element, @CheckForNull com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element value)
-
clearQuantityKind
public void clearQuantityKind(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
-
getQuantityKind
@CheckForNull public com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element getQuantityKind(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
-
setUnit
public void setUnit(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element, @CheckForNull com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element value)
-
clearUnit
public void clearUnit(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
-
getUnit
@CheckForNull public com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element getUnit(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
-
clear
protected void clear()
-
is
public boolean is(@CheckForNull com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
-
isInstance
public static boolean isInstance(@CheckForNull com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
-
-