Class MarkedString


  • @Deprecated
    public class MarkedString
    extends java.lang.Object
    Deprecated.
    Use MarkupContent instead.
    MarkedString can be used to render human readable text. It is either a markdown string or a code-block that provides a language and a code snippet. The language identifier is semantically equal to the optional language identifier in fenced code blocks in GitHub issues. See https://help.github.com/articles/creating-and-highlighting-code-blocks/#syntax-highlighting

    The pair of a language and a value is an equivalent to markdown:

     ```${language}
     ${value}
     ```
     

    Note that markdown strings will be sanitized - that means html will be escaped.

    • Constructor Summary

      Constructors 
      Constructor Description
      MarkedString()
      Deprecated.
       
      MarkedString​(java.lang.String language, java.lang.String value)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Deprecated.
       
      java.lang.String getLanguage()
      Deprecated.
       
      java.lang.String getValue()
      Deprecated.
       
      int hashCode()
      Deprecated.
       
      void setLanguage​(java.lang.String language)
      Deprecated.
       
      void setValue​(java.lang.String value)
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MarkedString

        public MarkedString()
        Deprecated.
      • MarkedString

        public MarkedString​(java.lang.String language,
                            java.lang.String value)
        Deprecated.
    • Method Detail

      • getLanguage

        public java.lang.String getLanguage()
        Deprecated.
      • setLanguage

        public void setLanguage​(java.lang.String language)
        Deprecated.
      • getValue

        public java.lang.String getValue()
        Deprecated.
      • setValue

        public void setValue​(java.lang.String value)
        Deprecated.
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object