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.
    • 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()