Package nl.knaw.dans.lib.dataverse.model
Class ExportedDatasetVersionName
java.lang.Object
nl.knaw.dans.lib.dataverse.model.ExportedDatasetVersionName
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 Summary
ConstructorDescriptionCreates a new object to parse the name of one of the exported files. -
Method Summary
Modifier and TypeMethodDescriptionint
int
The part of the filename derived from the global ID (doi, handle)
-
Constructor Details
-
ExportedDatasetVersionName
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
The part of the filename derived from the global ID (doi, handle)- Returns:
- the spacename
-
getSchema
-
getMajorVersion
public int getMajorVersion() -
getMinorVersion
public int getMinorVersion() -
getExtension
-