Package com.nomagic.uml2.ext.jmi.helpers
Class DeprecatedTagsHelper
java.lang.Object
com.nomagic.uml2.ext.jmi.helpers.DeprecatedTagsHelper
- Direct Known Subclasses:
DeprecatedStereotypesHelper
Utility class to work with tagged values. It has only deprecated methods for API compatibility.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
clearStereotypeProperty
(Element element, String stereotype, String tagName) Deprecated.static void
clearStereotypeProperty
(Element element, String stereotype, String tagName, boolean removeEmptyTaggedValues) static Object
getStereotypePropertyFirst
(Element element, String stereotype, String tagName) static Object
getStereotypePropertyFirst
(Element element, String stereotype, String tagName, boolean calculateDerived) static List
getStereotypePropertyValue
(Element element, String stereotype, String tagName) static List
getStereotypePropertyValue
(Element element, String stereotype, String tagName, boolean calculateDerived) getStereotypePropertyValueAsString
(Element element, String stereotype, String tagName) getStereotypePropertyValueAsString
(Element element, String stereotype, String tagName, boolean calculateDerived)
-
Constructor Details
-
DeprecatedTagsHelper
public DeprecatedTagsHelper()
-
-
Method Details
-
getStereotypePropertyValueAsString
@Deprecated public static List<String> getStereotypePropertyValueAsString(Element element, String stereotype, String tagName) Gets tagged values as list of strings.- Parameters:
element
- element with assigned stereotypestereotype
- stereotype nametagName
- name of tag definition- Returns:
- values
-
getStereotypePropertyValueAsString
@Deprecated public static List<String> getStereotypePropertyValueAsString(Element element, String stereotype, String tagName, boolean calculateDerived) Gets tagged values as list of strings.- Parameters:
element
- element with assigned stereotypestereotype
- stereotypetagName
- name of tag definitioncalculateDerived
- if to calculate derived property value- Returns:
- values
-
getStereotypePropertyValue
@Deprecated public static List getStereotypePropertyValue(Element element, String stereotype, String tagName) Gets tagged values as list.- Parameters:
element
- element with applied stereotypestereotype
- stereotypetagName
- name of tag definition- Returns:
- values
-
getStereotypePropertyValue
@Deprecated public static List getStereotypePropertyValue(Element element, String stereotype, String tagName, boolean calculateDerived) Gets stereotype property value as list- Parameters:
element
- element with applied stereotypestereotype
- stereotype nametagName
- name of tag definitioncalculateDerived
- if to calculate derived property value- Returns:
- values
-
clearStereotypeProperty
@Deprecated public static void clearStereotypeProperty(Element element, String stereotype, String tagName) Deprecated.Clears tagged values.- Parameters:
element
- elementstereotype
- stereotype nametagName
- name of tag definition
-
clearStereotypeProperty
@Deprecated public static void clearStereotypeProperty(Element element, String stereotype, String tagName, boolean removeEmptyTaggedValues) Clears tagged values and removes TaggedValue if needed.- Parameters:
element
- elementstereotype
- stereotype nametagName
- name of tag definitionremoveEmptyTaggedValues
- remove all owned empty TaggedValues
-
getStereotypePropertyFirst
@CheckForNull @Deprecated public static Object getStereotypePropertyFirst(Element element, String stereotype, String tagName) Returns first value of TaggedValue.- Parameters:
element
- elementstereotype
- stereotype nametagName
- name of tag definition- Returns:
- first value of TaggedValue
-
getStereotypePropertyFirst
@CheckForNull @Deprecated public static Object getStereotypePropertyFirst(Element element, String stereotype, String tagName, boolean calculateDerived) Returns first value of TaggedValue.- Parameters:
element
- elementstereotype
- stereotype nametagName
- name of tag definitioncalculateDerived
- if to calculate derived value- Returns:
- first value of TaggedValue
-
TagsHelper.clearStereotypeProperty(Element, Stereotype, String)