Package org.dlese.dpc.repository
Class RecordData
java.lang.Object
org.dlese.dpc.repository.RecordData
Holds data related to a single item-level record such as it's annotations and records
that refer to the same resource. This class is used by class
ItemFileIndexingWriter and ItemDocReader.- Author:
- John Weatherley
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRecordData(DleseAnnoDocReader[] annoDocs, ItemDocReader[] associatedItemsDocs, String accessionStatus) Contruct the record data for an item-level record. -
Method Summary
Modifier and TypeMethodDescriptionGets the accessionStatus attribute of the RecordData objectGets DocReaders for all annotation records that reference this resource, or null if none exist.Gets DocReaders for all item-level records that refer to the same resource, or null if none exist.String[]Gets the associatedIDs for this record, records that catalog the same resource.protected static final StringReturn a string for the current time and date, sutiable for display in log files and output to standout:protected final voidOutput a line of text to standard out, with datestamp, if debug is set to true.protected final voidOutput a line of text to error out, with datestamp.static voidsetDebug(boolean db) Sets the debug attribute of the object
-
Constructor Details
-
RecordData
protected RecordData(DleseAnnoDocReader[] annoDocs, ItemDocReader[] associatedItemsDocs, String accessionStatus) Contruct the record data for an item-level record. Created byRecordDataService.- Parameters:
annoDocs- DleseAnnoDocReaders for records that annotate this item.associatedItemsDocs- ItemDocReaders for items that refer to the same resource.accessionStatus- The accession status.- See Also:
-
-
Method Details
-
getAccessionStatus
Gets the accessionStatus attribute of the RecordData object- Returns:
- The accessionStatus value
-
getAsociatedItemsDocs
Gets DocReaders for all item-level records that refer to the same resource, or null if none exist.- Returns:
- The asociatedItemsDocs value or null.
-
getAnnotationDocs
Gets DocReaders for all annotation records that reference this resource, or null if none exist.- Returns:
- The annotationDocs value or null.
-
getAssociatedIds
Gets the associatedIDs for this record, records that catalog the same resource. Returns only IDs for those records that are currently in the index.- Returns:
- The associatedIDs value.
-
getDateStamp
Return a string for the current time and date, sutiable for display in log files and output to standout:- Returns:
- The dateStamp value
-
prtlnErr
Output a line of text to error out, with datestamp.- Parameters:
s- The text that will be output to error out.
-
prtln
Output a line of text to standard out, with datestamp, if debug is set to true.- Parameters:
s- The String that will be output.
-
setDebug
public static void setDebug(boolean db) Sets the debug attribute of the object- Parameters:
db- The new debug value
-