Class TextDocumentItem


  • public class TextDocumentItem
    extends java.lang.Object
    An 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
      boolean equals​(java.lang.Object obj)  
      java.lang.String getLanguageId()
      The text document's language identifier
      java.lang.String getText()
      The content of the opened text document.
      java.lang.String getUri()
      The text document's uri.
      int getVersion()
      The version number of this document (it will strictly increase after each change, including undo/redo).
      int hashCode()  
      void setLanguageId​(java.lang.String languageId)
      The text document's language identifier
      void setText​(java.lang.String text)
      The content of the opened text document.
      void setUri​(java.lang.String uri)
      The text document's uri.
      void setVersion​(int version)
      The version number of this document (it will strictly 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

      • TextDocumentItem

        public TextDocumentItem()
      • TextDocumentItem

        public TextDocumentItem​(java.lang.String uri,
                                java.lang.String languageId,
                                int version,
                                java.lang.String text)
    • 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:
        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