Package org.eclipse.lsp4j
Class MarkupContent
- java.lang.Object
-
- org.eclipse.lsp4j.MarkupContent
-
public class MarkupContent extends java.lang.ObjectA MarkupContent literal represents a string value which content is interpreted based on its kind flag. Currently the protocol supportsplaintextandmarkdownas markup kinds.If the kind is
markdownthen the value can contain fenced code blocks like in GitHub issues. See https://help.github.com/articles/creating-and-highlighting-code-blocks/#syntax-highlightingPlease Note that clients might sanitize the return markdown. A client could decide to remove HTML from the markdown to avoid script execution.
Since 3.3.0
-
-
Constructor Summary
Constructors Constructor Description MarkupContent()MarkupContent(java.lang.String kind, java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetKind()The type of the Markup.java.lang.StringgetValue()The content itself.inthashCode()voidsetKind(java.lang.String kind)The type of the Markup.voidsetValue(java.lang.String value)The content itself.java.lang.StringtoString()
-
-
-
Method Detail
-
getKind
public java.lang.String getKind()
The type of the Markup.See
MarkupKindfor allowed values.
-
setKind
public void setKind(java.lang.String kind)
The type of the Markup.See
MarkupKindfor allowed values.
-
getValue
public java.lang.String getValue()
The content itself.
-
setValue
public void setValue(java.lang.String value)
The content itself.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-