|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.repository.SetInfo
public class SetInfo
Data structure used in the RepositoryManager
to hold information about a set of metadata files.
Note that as of jOAI v3.x (Feb 2006), this class is no longer used to define OAI sets but is now only used
to define the files that are configured in the RepositoryManager
. OAI sets are now defined
separately.
DirInfo
,
Serialized FormNested Class Summary | |
---|---|
static class |
SetInfo.FormatComparator
Implements Comparator to enable sorting by format. |
static class |
SetInfo.NameComparator
Implements Comparator to enable sorting by name. |
static class |
SetInfo.NumDeletedComparator
Implements Comparator to enable sorting by numDeleted. |
static class |
SetInfo.NumFilesComparator
Implements Comparator to enable sorting by numFiles. |
static class |
SetInfo.NumIndexedComparator
Implements Comparator to enable sorting by numIndexed. |
static class |
SetInfo.NumIndexingErrorsComparator
Implements Comparator to enable sorting by numIndexingErrors. |
static class |
SetInfo.SetSpecComparator
Implements Comparator to enable sorting by setSpec. |
static class |
SetInfo.StatusComparator
Implements Comparator to enable sorting by status. |
Constructor Summary | |
---|---|
SetInfo()
Constructor for the SetInfo object |
|
SetInfo(String name,
String setSpec,
String description,
String enabled,
String dir,
String format,
String id)
Constructor for the SetInfo object |
Method Summary | |
---|---|
void |
addDirInfo(String format,
String dir)
Adds a feature to the DirInfo attribute of the SetInfo object |
int |
compareTo(Object o)
Compares two SetInfos by the Set Name. |
boolean |
containsDirectory(File directory)
Determines whether a directory is configured in this SetInfo. |
boolean |
containsDirInfo(DirInfo dirInfo)
Determines whether a DirInfo that matches the attributes of the given DirInfo already
exists in this SetInfo. |
boolean |
equals(Object o)
Checks equality of two SetInfo objects. |
String |
getAccessionStatus()
Gets the accession status of this Set. |
Object |
getAttribute(String key)
Gets an attribute Object from this SetInfo. |
static Comparator |
getComparator(String type)
Gets the comparator attribute of the SetInfo class |
String |
getDescription()
Gets the XML description. |
String |
getDescriptionHtml()
Gets the descriptionHtml attribute of the SetInfo object |
String |
getDirectory()
Gets the primary directory path configured for this set, or an empty String if none is configured. |
DirInfo |
getDirInfo(int i)
Gets the dirInfo attribute of the SetInfo object |
ArrayList |
getDirInfos()
Gets the dirInfos attribute of the SetInfo object |
String |
getEnabled()
Gets the enabled status String [true | false]. |
String |
getFormat()
Gets the metadata format of the files in the primary directory configured for this set, or an empty String if none is configured. |
String |
getId()
Gets the record ID for this SetInfo. |
String |
getName()
Gets the name attribute of the SetInfo object |
String |
getNameEncoded()
Gets the name attribute of the SetInfo object, encoded for use in a URL. |
String |
getNumDeleted()
Gets the number of items deleted for this collection. |
int |
getNumDeletedInt()
Gets the number of items deleted for this collection. |
String |
getNumFiles()
Gets the number of files for this collection. |
int |
getNumFilesInt()
Gets the numFiles attribute of the SetInfo object |
String |
getNumIndexed()
Gets the number of items indexed for this collection. |
int |
getNumIndexedInt()
Gets the number of items indexed for this collection. |
String |
getNumIndexingErrors()
Gets the number of indexing errors that were found for this collection. |
int |
getNumIndexingErrorsInt()
Gets the number of indexing errors that were found for this collection. |
String |
getSetSpec()
Gets the setSpec attribute of the SetInfo object |
String |
getUniqueID()
Gets the unique ID for this SetInfo. |
long |
getUniqueIDLong()
Gets the unique ID for this SetInfo. |
boolean |
isEnabled()
Gets the enabled status boolean [true | false]. |
void |
removeDirInfo(int i)
DESCRIPTION |
void |
setAccessionStatus(String val)
Sets the accession status for this Set. |
void |
setAttribute(String key,
Object attribute)
Sets an attribute Object that will be available for access using the given key. |
void |
setDescription(String val)
Sets the description, which must be in XML form. |
void |
setDirInfo(int i,
DirInfo dirInfo)
Sets the dirInfo attribute of the SetInfo object |
void |
setDirInfo(int i,
String dir,
String format)
Sets the dirInfo attribute of the SetInfo object |
void |
setEnabled(String val)
Sets the enabled status [true | false]. |
void |
setId(String id)
Sets the record ID for this SetInfo. |
void |
setName(String val)
Sets the name attribute of the SetInfo object |
void |
setSetInfoData(RepositoryManager rm)
Sets data in the SetInfo for display in the UI. |
void |
setSetSpec(String val)
Sets the setSpec attribute of the SetInfo object |
String |
toString()
Provides a String representataion for this SetInfo. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SetInfo()
public SetInfo(String name, String setSpec, String description, String enabled, String dir, String format, String id)
name
- The human-readable name of the setsetSpec
- The oai setSpec that will be used to reference this setdir
- A directory where files for this set are locatedformat
- The native metadata format for the files in the above directorydescription
- A description for this set, in XML form.enabled
- [true | false]id
- DESCRIPTIONMethod Detail |
---|
public String getName()
public String getId()
public void setId(String id)
id
- The record ID.public String getUniqueID()
public long getUniqueIDLong()
public String getNameEncoded()
public void setName(String val)
val
- The new name valuepublic String getSetSpec()
public void setSetSpec(String val)
val
- The new setSpec valuepublic String getDescription()
public String getFormat()
public String getDirectory()
public String getDescriptionHtml()
public void setDescription(String val)
val
- The new description valuepublic String getEnabled()
public boolean isEnabled()
public void setEnabled(String val)
val
- The String 'true' or 'false'.public ArrayList getDirInfos()
public DirInfo getDirInfo(int i)
i
- DESCRIPTION
public void setDirInfo(int i, DirInfo dirInfo)
i
- The new dirInfo valuedirInfo
- The new dirInfo valuepublic void setDirInfo(int i, String dir, String format)
i
- The new dirInfo valuedir
- The new dirInfo valueformat
- The new dirInfo valuepublic boolean containsDirInfo(DirInfo dirInfo)
DirInfo
that matches the attributes of the given DirInfo
already
exists in this SetInfo.
dirInfo
- A DirInfo
to check for existance.
DirInfo
exists in this SetInfo.public String getNumFiles()
public int getNumFilesInt()
public void setSetInfoData(RepositoryManager rm)
rm
- The RepositoryManager whoes index contains the collections configured by this SetSpec.public String getAccessionStatus()
public void setAccessionStatus(String val)
val
- The accession status.public String getNumIndexed()
public int getNumIndexedInt()
public String getNumDeleted()
public int getNumDeletedInt()
public String getNumIndexingErrors()
public int getNumIndexingErrorsInt()
public boolean containsDirectory(File directory)
directory
- A file directory.
public void removeDirInfo(int i)
i
- DESCRIPTIONpublic void addDirInfo(String format, String dir)
format
- The feature to be added to the DirInfo attributedir
- The feature to be added to the DirInfo attributepublic void setAttribute(String key, Object attribute)
key
- The key used to reference the attribute.attribute
- Any Java Object that is Serializable.public Object getAttribute(String key)
key
- The key used to reference the attribute.
public String toString()
equals(Object)
method.
toString
in class Object
public boolean equals(Object o)
equals
in class Object
o
- The SetInfo to compare to this
public int compareTo(Object o) throws ClassCastException
compareTo
in interface Comparable
o
- The SetInfo to compare
ClassCastException
- If the object passed in is not a SetInfo.public static Comparator getComparator(String type)
type
- The comparator type, for example 'key'
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |