Package org.eclipse.lsp4j
Class NotebookDocument
- java.lang.Object
-
- org.eclipse.lsp4j.NotebookDocument
-
public class NotebookDocument extends java.lang.ObjectA notebook document.Since 3.17.0
-
-
Constructor Summary
Constructors Constructor Description NotebookDocument()NotebookDocument(java.lang.String uri, java.lang.String notebookType, int version, java.util.List<NotebookCell> cells)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<NotebookCell>getCells()The cells of a notebook.java.lang.ObjectgetMetadata()Additional metadata stored with the notebook document.java.lang.StringgetNotebookType()The type of the notebook.java.lang.StringgetUri()The notebook document's URI.intgetVersion()The version number of this document (it will increase after each change, including undo/redo).inthashCode()voidsetCells(java.util.List<NotebookCell> cells)The cells of a notebook.voidsetMetadata(java.lang.Object metadata)Additional metadata stored with the notebook document.voidsetNotebookType(java.lang.String notebookType)The type of the notebook.voidsetUri(java.lang.String uri)The notebook document's URI.voidsetVersion(int version)The version number of this document (it will increase after each change, including undo/redo).java.lang.StringtoString()
-
-
-
Constructor Detail
-
NotebookDocument
public NotebookDocument()
-
NotebookDocument
public NotebookDocument(java.lang.String uri, java.lang.String notebookType, int version, java.util.List<NotebookCell> cells)
-
-
Method Detail
-
getUri
public java.lang.String getUri()
The notebook document's URI.
-
setUri
public void setUri(java.lang.String uri)
The notebook document's URI.
-
getNotebookType
public java.lang.String getNotebookType()
The type of the notebook.
-
setNotebookType
public void setNotebookType(java.lang.String notebookType)
The type of the notebook.
-
getVersion
public int getVersion()
The version number of this document (it will increase after each change, including undo/redo).
-
setVersion
public void setVersion(int version)
The version number of this document (it will increase after each change, including undo/redo).
-
getMetadata
public java.lang.Object getMetadata()
Additional metadata stored with the notebook document.
-
setMetadata
public void setMetadata(java.lang.Object metadata)
Additional metadata stored with the notebook document.
-
getCells
public java.util.List<NotebookCell> getCells()
The cells of a notebook.
-
setCells
public void setCells(java.util.List<NotebookCell> cells)
The cells of a notebook.
-
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
-
-