org.dspace.checker
Class DSpaceBitstreamInfo

java.lang.Object
  extended by org.dspace.checker.DSpaceBitstreamInfo

public final class DSpaceBitstreamInfo
extends Object

Value Object that holds bitstream information that will be used for dspace bitstream.

Author:
Jim Downing, Grace Carpenter, Nathan Sarr

Constructor Summary
DSpaceBitstreamInfo(boolean del, int storeNo, long sz, String bitstrmFmt, int bitstrmId, String usrFmtDesc, String intrnlId, String src, String chksumAlgorthm, String chksum, String nm, String desc)
          Complete constructor.
DSpaceBitstreamInfo(int bid)
          Minimal constructor.
 
Method Summary
 boolean equals(Object o)
          Identity entirely dependent upon bitstreamId.
 String getBitstreamFormatId()
          Get the Bitstream Format id.
 int getBitstreamId()
          Get the Bitstream id.
 String getChecksumAlgorithm()
          Get the checksum algorithm.
 boolean getDeleted()
          Get the deleted flag.
 String getInternalId()
          Get the Internal Id.
 String getName()
          Get the name of the bitstream.
 void getName(String nm)
          Set the name of the bitstream.
 long getSize()
          Get the size.
 String getSource()
          Get the source.
 String getStoredChecksum()
          Get the checksum.
 int getStoreNumber()
          Get the store number.
 String getUserFormatDescription()
          Get the user format description.
 int hashCode()
          HashCode method uses bitstreamId as hashing function.
 void setBitstreamFormatId(String bitstrmFmt)
          Set the Bitstream Format id.
 void setChecksumAlgorithm(String checksumAlgorithm)
          Set the checksum algorithm.
 void setDeleted(boolean deleted)
          Set the deleted flag.
 void setInternalId(String internalId)
          Set the Internal Id.
 void setName(String name)
          The name of the bitstream.
 void setSize(long size)
          Set the size.
 void setSource(String source)
          Set the source.
 void setStoredChecksum(String checksum)
          Set the checksum.
 void setStoreNumber(int storeNumber)
          Set the store number.
 void setUserFormatDescription(String userFormatDescription)
          Set the user format description.
 String toString()
          Describes this BitstreamInfo.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DSpaceBitstreamInfo

public DSpaceBitstreamInfo(int bid)
Minimal constructor.

Parameters:
bid - Bitstream identifier

DSpaceBitstreamInfo

public DSpaceBitstreamInfo(boolean del,
                           int storeNo,
                           long sz,
                           String bitstrmFmt,
                           int bitstrmId,
                           String usrFmtDesc,
                           String intrnlId,
                           String src,
                           String chksumAlgorthm,
                           String chksum,
                           String nm,
                           String desc)
Complete constructor.

Parameters:
del - Deleted
storeNo - Bitstream storeNumber
sz - Bitstream size
bitstrmFmt - Bitstream format
bitstrmId - Bitstream id
usrFmtDesc - Bitstream format description
intrnlId - Bitstream DSpace internal id
src - Bitstream source
chksumAlgorthm - Algorithm used to check bitstream
chksum - Hash digest obtained
nm - Name of bitstream
desc - Bitstream description
Method Detail

getDeleted

public boolean getDeleted()
Get the deleted flag.

Returns:
boolean

setDeleted

public void setDeleted(boolean deleted)
Set the deleted flag.

Parameters:
deleted - deleted flag

getStoreNumber

public int getStoreNumber()
Get the store number.

Returns:
int

setStoreNumber

public void setStoreNumber(int storeNumber)
Set the store number.

Parameters:
storeNumber - the store number

getSize

public long getSize()
Get the size.

Returns:
int

setSize

public void setSize(long size)
Set the size.

Parameters:
size - the bitstream size

getBitstreamFormatId

public String getBitstreamFormatId()
Get the Bitstream Format id.

Returns:
int

setBitstreamFormatId

public void setBitstreamFormatId(String bitstrmFmt)
Set the Bitstream Format id.

Parameters:
bitstrmFmt - id of the bitstream format

getBitstreamId

public int getBitstreamId()
Get the Bitstream id.

Returns:
int

getUserFormatDescription

public String getUserFormatDescription()
Get the user format description.

Returns:
String

setUserFormatDescription

public void setUserFormatDescription(String userFormatDescription)
Set the user format description.

Parameters:
userFormatDescription - the userFormatDescription

getInternalId

public String getInternalId()
Get the Internal Id.

Returns:
String

setInternalId

public void setInternalId(String internalId)
Set the Internal Id.

Parameters:
internalId - the DSpace internal sequence id for the bitstream.

getSource

public String getSource()
Get the source.

Returns:
String

setSource

public void setSource(String source)
Set the source.

Parameters:
source - The bitstream source.

getChecksumAlgorithm

public String getChecksumAlgorithm()
Get the checksum algorithm.

Returns:
String

setChecksumAlgorithm

public void setChecksumAlgorithm(String checksumAlgorithm)
Set the checksum algorithm.

Parameters:
checksumAlgorithm - the algorithm used for checking this bitstream

getStoredChecksum

public String getStoredChecksum()
Get the checksum.

Returns:
String

setStoredChecksum

public void setStoredChecksum(String checksum)
Set the checksum.

Parameters:
checksum - The last stored checksum for this bitstream.

getName

public String getName()
Get the name of the bitstream.

Returns:
String

getName

public void getName(String nm)
Set the name of the bitstream.

Parameters:
nm - The name of this bitstream.

setName

public void setName(String name)
The name of the bitstream.

Parameters:
name - The name to set.

equals

public boolean equals(Object o)
Identity entirely dependent upon bitstreamId.

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
HashCode method uses bitstreamId as hashing function.

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()
Describes this BitstreamInfo.

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2010 DuraSpace. All Rights Reserved.