Class ElementReferencingInTexts
- java.lang.Object
-
- com.nomagic.magicdraw.elementreferenceintext.ElementReferencingInTexts
-
@OpenApiAll public class ElementReferencingInTexts extends java.lang.ObjectClass responsible for creating rich texts(with references to other elements). For more information on usage refer to the examples.
-
-
Constructor Summary
Constructors Constructor Description ElementReferencingInTexts()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringcreateReferencingText(BaseElement referencedElement, java.lang.String text)Creates text referencing an element using default settings(DisplayMode.CUSTOM_TEXT,UpdateMode.AUTOMATIC_UPDATE)static java.lang.StringcreateReferencingText(BaseElement referencedElement, java.lang.String text, DisplayMode displayMode)Creates text referencing an element using provided display mode andUpdateMode.AUTOMATIC_UPDATEmodestatic java.lang.StringcreateReferencingText(BaseElement referencedElement, java.lang.String text, DisplayMode display, UpdateMode update)Creates text referencing an element using provided display mode and update modestatic java.util.Collection<Element>getReferredElements(Element referringElement)
-
-
-
Method Detail
-
createReferencingText
public static java.lang.String createReferencingText(BaseElement referencedElement, java.lang.String text)
Creates text referencing an element using default settings(DisplayMode.CUSTOM_TEXT,UpdateMode.AUTOMATIC_UPDATE)- Parameters:
referencedElement- element referenced in texttext- text to display- Returns:
- text that refers provided element
-
createReferencingText
public static java.lang.String createReferencingText(BaseElement referencedElement, java.lang.String text, DisplayMode displayMode)
Creates text referencing an element using provided display mode andUpdateMode.AUTOMATIC_UPDATEmode- Parameters:
referencedElement- element referenced by texttext- text to display(only affective if display mode isDisplayMode.CUSTOM_TEXT)displayMode- the reference display mode. Must not be null.- Returns:
- text referring provided element
-
createReferencingText
public static java.lang.String createReferencingText(BaseElement referencedElement, java.lang.String text, DisplayMode display, UpdateMode update)
Creates text referencing an element using provided display mode and update mode- Parameters:
referencedElement- element referenced by texttext- text to displaydisplay- the reference display mode. Must not be null.update- the reference update mode. Must not be null.- Returns:
- text referring provided element
-
-