DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.dcs
Class DcsSetInfo

java.lang.Object
  extended by org.dlese.dpc.repository.SetInfo
      extended by org.dlese.dpc.schemedit.dcs.DcsSetInfo
All Implemented Interfaces:
Serializable, Comparable

public class DcsSetInfo
extends SetInfo

Extends SetInfo to provide DCS-specific information about sets (aka collections), such as the number of valid records.

Author:
Jonathan Ostwald
See Also:
Serialized Form

Nested Class Summary
static class DcsSetInfo.NumDoneComparator
          Implements Comparator to enable sorting by numDone.
static class DcsSetInfo.NumNotValidComparator
           
static class DcsSetInfo.NumSyncErrorsComparator
          Implements Comparator to enable sorting by numDone.
static class DcsSetInfo.NumValidComparator
           
static class DcsSetInfo.NumWorkingComparator
          Implements Comparator to enable sorting by numWorking.
 
Nested classes/interfaces inherited from class org.dlese.dpc.repository.SetInfo
SetInfo.FormatComparator, SetInfo.NameComparator, SetInfo.NumDeletedComparator, SetInfo.NumFilesComparator, SetInfo.NumIndexedComparator, SetInfo.NumIndexingErrorsComparator, SetInfo.SetSpecComparator, SetInfo.StatusComparator
 
Constructor Summary
DcsSetInfo(SetInfo setInfo)
          Constructor for the DcsSetInfo object
 
Method Summary
 String getAuthority()
           
static Comparator getComparator(String type)
          Gets the comparator attribute of the DcsSetInfo class
 String getExampleId()
           
 StatusFlag getFinalStatusFlag()
           
 String getIdPrefix()
           
 String getNumDone()
          Gets the numDone attribute of the DcsSetInfo object
 int getNumDoneInt()
          Gets the numFiles attribute of the SetInfo object
 int getNumFinalAndNotValid()
           
 int getNumNotValid()
           
 int getNumSyncErrors()
           
 int getNumValid()
           
 String getNumWorking()
          Gets the numWorking attribute of the DcsSetInfo object
 int getNumWorkingInt()
          Gets the numFiles attribute of the SetInfo object
 String getUniqueID()
          Overide method from SetInfo
 void setAuthority(String auth)
           
 void setExampleId(String id)
           
 void setFinalStatusFlag(StatusFlag flag)
           
 void setIdPrefix(String id)
           
 void setSetInfoData(RepositoryManager rm)
          Adds DcsSetInfo properties to those of repository.SetInfo for this DcsSetInfo instance.
 void setUniqueID(String id)
           
 
Methods inherited from class org.dlese.dpc.repository.SetInfo
addDirInfo, compareTo, containsDirectory, containsDirInfo, equals, getAccessionStatus, getAttribute, getDescription, getDescriptionHtml, getDirectory, getDirInfo, getDirInfos, getEnabled, getFormat, getId, getName, getNameEncoded, getNumDeleted, getNumDeletedInt, getNumFiles, getNumFilesInt, getNumIndexed, getNumIndexedInt, getNumIndexingErrors, getNumIndexingErrorsInt, getSetSpec, getUniqueIDLong, isEnabled, removeDirInfo, setAccessionStatus, setAttribute, setDescription, setDirInfo, setDirInfo, setEnabled, setId, setName, setSetSpec, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DcsSetInfo

public DcsSetInfo(SetInfo setInfo)
Constructor for the DcsSetInfo object

Parameters:
setInfo - Description of the Parameter
Method Detail

setUniqueID

public void setUniqueID(String id)

getUniqueID

public String getUniqueID()
Overide method from SetInfo

Overrides:
getUniqueID in class SetInfo
Returns:
The unique ID.

getNumValid

public int getNumValid()

getNumNotValid

public int getNumNotValid()

getNumSyncErrors

public int getNumSyncErrors()

getNumDoneInt

public int getNumDoneInt()
Gets the numFiles attribute of the SetInfo object

Returns:
The numFiles value

getNumDone

public String getNumDone()
Gets the numDone attribute of the DcsSetInfo object

Returns:
The numDone value

getNumWorkingInt

public int getNumWorkingInt()
Gets the numFiles attribute of the SetInfo object

Returns:
The numFiles value

getNumFinalAndNotValid

public int getNumFinalAndNotValid()

getNumWorking

public String getNumWorking()
Gets the numWorking attribute of the DcsSetInfo object

Returns:
The numWorking value

getIdPrefix

public String getIdPrefix()

setIdPrefix

public void setIdPrefix(String id)

getAuthority

public String getAuthority()

setAuthority

public void setAuthority(String auth)

getFinalStatusFlag

public StatusFlag getFinalStatusFlag()

setFinalStatusFlag

public void setFinalStatusFlag(StatusFlag flag)

getExampleId

public String getExampleId()

setExampleId

public void setExampleId(String id)

setSetInfoData

public void setSetInfoData(RepositoryManager rm)
Adds DcsSetInfo properties to those of repository.SetInfo for this DcsSetInfo instance.

Overrides:
setSetInfoData in class SetInfo
Parameters:
rm - The new setInfoData value

getComparator

public static Comparator getComparator(String type)
Gets the comparator attribute of the DcsSetInfo class

Parameters:
type - Description of the Parameter
Returns:
The comparator value

DLESE Tools
v1.6.0