Package nl.knaw.dans.bagit.domain
Class Bag
java.lang.Object
nl.knaw.dans.bagit.domain.Bag
The main representation of the bagit spec.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
void
setFileEncoding
(Charset fileEncoding) void
setItemsToFetch
(List<FetchItem> itemsToFetch) void
setMetadata
(Metadata metadata) void
setPayLoadManifests
(Set<Manifest> payLoadManifests) void
setRootDir
(Path rootDir) void
setTagManifests
(Set<Manifest> tagManifests) void
setVersion
(Version version) toString()
-
Field Details
-
version
-
fileEncoding
-
payLoadManifests
-
tagManifests
-
itemsToFetch
-
metadata
-
rootDir
-
-
Constructor Details
-
Bag
public Bag()empty bag with an invalid version -
Bag
empty bag with the specified bag version- Parameters:
version
- the version of the bag
-
Bag
Create a new bag with the same values as the supplied bag- Parameters:
bag
- the bag to clone
-
-
Method Details
-
getVersion
-
getPayLoadManifests
-
setPayLoadManifests
-
getTagManifests
-
setTagManifests
-
getItemsToFetch
-
setItemsToFetch
-
getMetadata
-
setMetadata
-
getFileEncoding
-
setFileEncoding
-
toString
-
hashCode
public int hashCode() -
equals
-
getRootDir
-
setRootDir
-
setVersion
-