Package com.nomagic.magicdraw.hyperlinks
Interface Hyperlink
-
@OpenApiAll public interface Hyperlink
Hyperlink describes a reference to any data (e.g. element, file, or any other resource).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROTOCOL_SEPARATOR
Protocol separator.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.Map<java.lang.Object,java.lang.Object>
getAttributes()
Hyperlink additional attributesjava.lang.String
getProtocol()
Hyperlink protocol.java.lang.String
getText()
Hyperlink text.default java.util.Map<com.nomagic.magicdraw.hyperlinks.HyperlinkTextAttributes,java.lang.Object>
getTextAttributes()
java.lang.String
getTypeText()
Hyperlink type text.java.lang.String
getUrl()
URL of the hyperlink.boolean
isValid()
Check if hyperlink is valid.
-
-
-
Field Detail
-
PROTOCOL_SEPARATOR
static final java.lang.String PROTOCOL_SEPARATOR
Protocol separator.- See Also:
- Constant Field Values
-
-
Method Detail
-
getUrl
java.lang.String getUrl()
URL of the hyperlink.- Returns:
- hyperlink URL.
-
getText
java.lang.String getText()
Hyperlink text.- Returns:
- hyperlink text.
-
isValid
boolean isValid()
Check if hyperlink is valid.- Returns:
- true if hyperlink is valid, otherwise - false.
-
getProtocol
java.lang.String getProtocol()
Hyperlink protocol.- Returns:
- hyperlink protocol.
-
getTypeText
java.lang.String getTypeText()
Hyperlink type text.- Returns:
- type text.
-
getAttributes
default java.util.Map<java.lang.Object,java.lang.Object> getAttributes()
Hyperlink additional attributes- Returns:
- additional attributes
-
getTextAttributes
default java.util.Map<com.nomagic.magicdraw.hyperlinks.HyperlinkTextAttributes,java.lang.Object> getTextAttributes()
-
-