Class WorkspaceMetadataConfig
- java.lang.Object
-
- com.smeup.jardis.jariko.lsp.model.WorkspaceMetadataConfig
-
public class WorkspaceMetadataConfig extends Object
-
-
Constructor Summary
Constructors Constructor Description WorkspaceMetadataConfig(Path metadataDir)Create an instance of WorkspaceMetadataConfig with default workspaceFoldersPaths set to null.WorkspaceMetadataConfig(Path metadataDir, List<Path> workspaceFoldersPaths)Create an instance of WorkspaceMetadataConfig.WorkspaceMetadataConfig(List<Path> workspaceFoldersPaths)Create an instance of WorkspaceMetadataConfig with default metadataDir set to user.home/.jardis/workspace/metadata
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<Path>getMetadataFoldersPaths()PathgetMetadataRootDir()List<Path>getWorkspaceFoldersPaths()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
WorkspaceMetadataConfig
public WorkspaceMetadataConfig(Path metadataDir, List<Path> workspaceFoldersPaths)
Create an instance of WorkspaceMetadataConfig.- Parameters:
metadataDir- The dir where the metadata will be saved.workspaceFoldersPaths- The workspace folders. If specified, this list constraints all operations when involving more than one files. For example if you want to delete all metadata will be removed only metadata related to the workspaceFoldersPaths.
-
WorkspaceMetadataConfig
public WorkspaceMetadataConfig(List<Path> workspaceFoldersPaths)
Create an instance of WorkspaceMetadataConfig with default metadataDir set to user.home/.jardis/workspace/metadata
-
WorkspaceMetadataConfig
public WorkspaceMetadataConfig(Path metadataDir)
Create an instance of WorkspaceMetadataConfig with default workspaceFoldersPaths set to null.
-
-
Method Detail
-
getMetadataRootDir
public Path getMetadataRootDir()
- Returns:
- The root path where metadata will be saved
-
getMetadataFoldersPaths
public List<Path> getMetadataFoldersPaths()
- Returns:
- The metadata folders paths computed appending to metadataDir the workspaceFoldersHash/workspaceFoldersPaths. For example given: metadataDir = /home/.jardis/workspace/metadata workspaceFoldersPaths = /dsl-custom, /dsl-standard we will have: metadataDocumentsPaths = /home/.jardis/workspace/metadata/workspaceFoldersHash/dsl-custom, /home/.jardis/workspace/metadata/workspaceFoldersHash/dsl-custom This is a helper method helpful to compute if uri associated to metadata belongs to workspace folder
-
-