Package nl.knaw.dans.bagit.conformance
Class MetadataChecker
java.lang.Object
nl.knaw.dans.bagit.conformance.MetadataChecker
Part of the BagIt conformance suite.
This checker checks the bag metadata (bag-info.txt) for various problems.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final ResourceBundle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckBagMetadata(Path bagitDir, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore) private static voidcheckForPayloadOxumMetadata(Path bagitDir, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore)
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
messages
-
-
Constructor Details
-
MetadataChecker
private MetadataChecker()
-
-
Method Details
-
checkBagMetadata
public static void checkBagMetadata(Path bagitDir, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore) throws IOException, InvalidBagMetadataException -
checkForPayloadOxumMetadata
private static void checkForPayloadOxumMetadata(Path bagitDir, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore) throws IOException, InvalidBagMetadataException
-