Class WorkspaceMetadataConfig


  • public class WorkspaceMetadataConfig
    extends Object
    • 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
      • getWorkspaceFoldersPaths

        public List<Path> getWorkspaceFoldersPaths()
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object