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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidsetFileEncoding(Charset fileEncoding) voidsetItemsToFetch(List<FetchItem> itemsToFetch) voidsetMetadata(Metadata metadata) voidsetPayLoadManifests(Set<Manifest> payLoadManifests) voidsetRootDir(Path rootDir) voidsetTagManifests(Set<Manifest> tagManifests) voidsetVersion(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
-