public static class SysMLProfile.ValueTypeStereotype extends ProfileImplementation.StereotypeWrapper
Modifier and Type | Field and 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.
|
Modifier | Constructor and Description |
---|---|
protected |
ValueTypeStereotype(SysMLProfile profile) |
Modifier and Type | Method and 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)
Checks if stereotype of this wrapper is applied to given element.
|
static boolean |
isInstance(Element element) |
void |
setQuantityKind(Element element,
Element value) |
void |
setUnit(Element element,
Element value) |
apply, unApply
getElement, getElementByName
public static final java.lang.String STEREOTYPE_NAME
public static final java.lang.String QUANTITYKIND
public static final java.lang.String UNIT
protected ValueTypeStereotype(SysMLProfile profile)
public Stereotype getStereotype()
ProfileImplementation.StereotypeWrapper
getStereotype
in class ProfileImplementation.StereotypeWrapper
@CheckForNull public Property getQuantityKindProperty()
@CheckForNull public Property getUnitProperty()
public void clearQuantityKind(Element element)
public void clearUnit(Element element)
protected void clear()
clear
in class ProfileImplementation.ProfileElementWrapper<Stereotype>
public boolean is(@CheckForNull Element element)
ProfileImplementation.StereotypeWrapper
is
in class ProfileImplementation.StereotypeWrapper
element
- elementpublic static boolean isInstance(@CheckForNull Element element)