Package org.dspace.pack.bagit
Class BagBitstream
- java.lang.Object
-
- org.dspace.pack.bagit.BagBitstream
-
public class BagBitstream extends Object
Hold information about aBitstreamand its metadata.- Since:
- 2020-03-12
- Author:
- mikejritter
-
-
Constructor Summary
Constructors Constructor Description BagBitstream(String fetchUrl, org.dspace.content.Bitstream bitstream, String bundle, Policies policies, Metadata metadata)ABitstreamwhich is to be fetched rather than added to a BagIt bagBagBitstream(org.dspace.content.Bitstream bitstream, String bundle, Policies policies, Metadata metadata)Information for aBitstreamwhich is to be packaged directly in a BagIt bag
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.dspace.content.BitstreamgetBitstream()Get theBitstream, or null if it does not existStringgetBundle()Get the name of theBundleassociated with theBitstreamStringgetFetchUrl()Get the url to fetch theBitstreamwith, or null if it does not existMetadatagetMetadata()Get the metadata associated with theBitstreamPoliciesgetPolicies()Get the policy for aBitstream
-
-
-
Constructor Detail
-
BagBitstream
public BagBitstream(String fetchUrl, org.dspace.content.Bitstream bitstream, String bundle, Policies policies, Metadata metadata)
ABitstreamwhich is to be fetched rather than added to a BagIt bag- Parameters:
fetchUrl- the url to fetch theBitstreamfrombitstream- theBitstreambeing packagedbundle- the name of theBundletheBitstreambelongs topolicies- thePoliciesmetadata associated with theBitstreammetadata- the metadata associated with theBitstream
-
BagBitstream
public BagBitstream(org.dspace.content.Bitstream bitstream, String bundle, Policies policies, Metadata metadata)Information for aBitstreamwhich is to be packaged directly in a BagIt bag- Parameters:
bitstream- theBitstreambeing packagedbundle- the name of theBundletheBitstreambelongs topolicies- thePolicymetadata associated with theBitstreammetadata- the metadata associated with theBitstream
-
-
Method Detail
-
getFetchUrl
public String getFetchUrl()
Get the url to fetch theBitstreamwith, or null if it does not exist- Returns:
- the fetchUrl
-
getBitstream
public org.dspace.content.Bitstream getBitstream()
Get theBitstream, or null if it does not exist- Returns:
- the bitstream
-
getMetadata
public Metadata getMetadata()
Get the metadata associated with theBitstream- Returns:
- the
Metadata
-
getBundle
public String getBundle()
Get the name of theBundleassociated with theBitstream- Returns:
- the name of the bundle
-
-