Package org.eclipse.lsp4j
Class TextDocumentItem
- java.lang.Object
-
- org.eclipse.lsp4j.TextDocumentItem
-
public class TextDocumentItem extends java.lang.ObjectAn item to transfer a text document from the client to the server.
-
-
Constructor Summary
Constructors Constructor Description TextDocumentItem()TextDocumentItem(java.lang.String uri, java.lang.String languageId, int version, java.lang.String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetLanguageId()The text document's language identifierjava.lang.StringgetText()The content of the opened text document.java.lang.StringgetUri()The text document's uri.intgetVersion()The version number of this document (it will strictly increase after each change, including undo/redo).inthashCode()voidsetLanguageId(java.lang.String languageId)The text document's language identifiervoidsetText(java.lang.String text)The content of the opened text document.voidsetUri(java.lang.String uri)The text document's uri.voidsetVersion(int version)The version number of this document (it will strictly increase after each change, including undo/redo).java.lang.StringtoString()
-
-
-
Method Detail
-
getUri
public java.lang.String getUri()
The text document's uri.
-
setUri
public void setUri(java.lang.String uri)
The text document's uri.
-
getLanguageId
public java.lang.String getLanguageId()
The text document's language identifier
-
setLanguageId
public void setLanguageId(java.lang.String languageId)
The text document's language identifier
-
getVersion
public int getVersion()
The version number of this document (it will strictly increase after each change, including undo/redo).
-
setVersion
public void setVersion(int version)
The version number of this document (it will strictly increase after each change, including undo/redo).
-
getText
public java.lang.String getText()
The content of the opened text document.
-
setText
public void setText(java.lang.String text)
The content of the opened text document.
-
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
-
-