Uses of Class
nl.knaw.dans.bagit.domain.Version
Package
Description
-
Uses of Version in nl.knaw.dans.bagit.conformance
Modifier and TypeFieldDescriptionstatic final Version
VersionChecker.LATEST_BAGIT_VERSION
private static final Version
BagLinter.VERSION_1_0
private static final Version
ManifestChecker.VERSION_1_0
Modifier and TypeMethodDescriptionstatic void
ManifestChecker.checkManifests
(Version version, Path bagitDir, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore) Check for all the manifest specific potential problems(package private) static void
ManifestChecker.checkManifestSets
(Version version, List<Path> tagManifests, List<Path> payloadManifests, Set<BagitWarning> warnings, Charset encoding) static void
VersionChecker.checkVersion
(Version version, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore) -
Uses of Version in nl.knaw.dans.bagit.creator
Modifier and TypeFieldDescriptionprivate static final Version
BagCreator.DOT_BAGIT_VERSION
private static final Version
BagCreator.LATEST_NON_DOT_BAGIT_VERSION
Modifier and TypeMethodDescriptionprivate static Bag
BagCreator.bagInPlace
(Version version, Path root, Collection<SupportedAlgorithm> algorithms, boolean includeHidden, Metadata metadata) -
Uses of Version in nl.knaw.dans.bagit.domain
Modifier and TypeMethodDescriptionint
boolean
boolean
boolean
Version.isSameOrNewer
(Version version) boolean
Version.isSameOrOlder
(Version version) void
Bag.setVersion
(Version version) -
Uses of Version in nl.knaw.dans.bagit.exceptions.conformance
ModifierConstructorDescriptionBagitVersionIsNotAcceptableException
(String message, Version version, List<String> acceptableVersions) -
Uses of Version in nl.knaw.dans.bagit.reader
Modifier and TypeMethodDescriptionstatic Version
BagitTextFileReader.parseVersion
(String version) Modifier and TypeMethodDescriptionBagitTextFileReader.readBagitTextFile
(Path bagitFile) Read the bagit.txt file and return the version and encoding. -
Uses of Version in nl.knaw.dans.bagit.util
Modifier and TypeMethodDescriptionstatic Path
PathUtils.getBagitDir
(Version version, Path bagRoot) With bagit version 2.0 (.bagit) bagit specific files are no longer at the bag root directory.static Path
PathUtils.getDataDir
(Version version, Path output) With bagit version 2.0 (.bagit) payload files are no longer in the "data" directory. -
Uses of Version in nl.knaw.dans.bagit.verify
Modifier and TypeMethodDescriptionstatic void
MandatoryVerifier.checkBagitFileExists
(Path rootDir, Version version) make sure the bagit.txt file existsstatic void
MandatoryVerifier.checkIfAtLeastOnePayloadManifestsExist
(Path rootDir, Version version) Check to make sure the bag has at least one payload manifest (manifest-[ALGORITHM].txt) -
Uses of Version in nl.knaw.dans.bagit.writer
Modifier and TypeFieldDescriptionprivate static final Version
MetadataWriter.VERSION_0_95
private static final Version
PayloadWriter.VERSION_2_0
Modifier and TypeMethodDescriptionstatic void
BagitFileWriter.writeBagitFile
(Version version, Charset encoding, Path outputDir) Write the bagit.txt file in required UTF-8 encoding.static void
MetadataWriter.writeBagMetadata
(Metadata metadata, Version version, Path outputDir, Charset charsetName) Write the bag-info.txt (or package-info.txt) file to the specified outputDir with specified encoding (charsetName)