Class NotebookDocument


  • public class NotebookDocument
    extends java.lang.Object
    A notebook document.

    Since 3.17.0

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.util.List<NotebookCell> getCells()
      The cells of a notebook.
      java.lang.Object getMetadata()
      Additional metadata stored with the notebook document.
      java.lang.String getNotebookType()
      The type of the notebook.
      java.lang.String getUri()
      The notebook document's URI.
      int getVersion()
      The version number of this document (it will increase after each change, including undo/redo).
      int hashCode()  
      void setCells​(java.util.List<NotebookCell> cells)
      The cells of a notebook.
      void setMetadata​(java.lang.Object metadata)
      Additional metadata stored with the notebook document.
      void setNotebookType​(java.lang.String notebookType)
      The type of the notebook.
      void setUri​(java.lang.String uri)
      The notebook document's URI.
      void setVersion​(int version)
      The version number of this document (it will increase after each change, including undo/redo).
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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:
        toString in class java.lang.Object
      • equals

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

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