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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.lemminx.services.extensions.save.ISaveContext
ISaveContext.SaveContextType
-
-
Constructor Summary
Constructors Constructor Description AbstractSaveContext(Object settings)AbstractSaveContext(String uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetSettings()Returns the settings which has changed and null otherwise.ISaveContext.SaveContextTypegetType()Returns the save context type.StringgetUri()Returns the document URI which was saved and null if it's a settings which was saved.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.lemminx.services.extensions.save.ISaveContext
collectDocumentToValidate
-
Methods inherited from interface org.eclipse.lemminx.services.IXMLDocumentProvider
getAllDocuments, getDocument
-
-
-
-
Method Detail
-
getType
public ISaveContext.SaveContextType getType()
Description copied from interface:ISaveContextReturns the save context type.- Specified by:
getTypein interfaceISaveContext- Returns:
- the save context type.
-
getUri
public String getUri()
Description copied from interface:ISaveContextReturns the document URI which was saved and null if it's a settings which was saved.- Specified by:
getUriin interfaceISaveContext- 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:ISaveContextReturns the settings which has changed and null otherwise.- Specified by:
getSettingsin interfaceISaveContext- Returns:
- the settings which has changed and null otherwise.
-
-