Class ExportedDatasetVersionName

java.lang.Object
nl.knaw.dans.lib.dataverse.model.ExportedDatasetVersionName

public class ExportedDatasetVersionName extends Object
Utility class to parse the names of dataset versions exported to RDA bags and metadata files. This is useful if you use LocalSubmitToArchiveCommand to export the bags to a local disk.
  • Constructor Details

    • ExportedDatasetVersionName

      public ExportedDatasetVersionName(String name)
      Creates a new object to parse the name of one of the exported files. It works on both the exported ZIP and XML files. Only pass in the base name, not the complete path.
      Parameters:
      name - the name to parse
  • Method Details

    • getSpaceName

      public String getSpaceName()
      The part of the filename derived from the global ID (doi, handle)
      Returns:
      the spacename
    • getSchema

      public String getSchema()
    • getMajorVersion

      public int getMajorVersion()
    • getMinorVersion

      public int getMinorVersion()
    • getExtension

      public String getExtension()