Class AbstractSaveContext

java.lang.Object
org.eclipse.lemminx.services.extensions.save.AbstractSaveContext
All Implemented Interfaces:
ISaveContext, IXMLDocumentProvider
Direct Known Subclasses:
XMLTextDocumentService.SaveContext

public abstract class AbstractSaveContext extends Object implements ISaveContext
Abstract class for save context.
  • Constructor Details

    • AbstractSaveContext

      public AbstractSaveContext(Object settings)
    • AbstractSaveContext

      public AbstractSaveContext(String uri)
  • Method Details

    • getType

      public ISaveContext.SaveContextType getType()
      Description copied from interface: ISaveContext
      Returns the save context type.
      Specified by:
      getType in interface ISaveContext
      Returns:
      the save context type.
    • getUri

      public String getUri()
      Description copied from interface: ISaveContext
      Returns the document URI which was saved and null if it's a settings which was saved.
      Specified by:
      getUri in interface ISaveContext
      Returns:
      the document URI which was saved and null if it's a settings which was saved.
    • getSettings

      public Object getSettings()
      Description copied from interface: ISaveContext
      Returns the settings which has changed and null otherwise.
      Specified by:
      getSettings in interface ISaveContext
      Returns:
      the settings which has changed and null otherwise.