Package org.cdlib.mrt.core
Interface ManifestRowInf
- All Known Implementing Classes:
ManifestRowAdd,ManifestRowBatch,ManifestRowCheckmAbs,ManifestRowIngest,ManifestRowObject
public interface ManifestRowInf
- Author:
- David Loy
-
Method Summary
Modifier and TypeMethodDescriptionString[]Return the checkm headersgetLine()Build a Manifest line for output to a manifest filegetManifestRow(String line) Get ManifestRow object based on passed lineString[]Return the checkm headersIf profile associated with this manifest then return valuevoidAny specialized EOF handling required.voidhandleHeaders(String[] headers) Process all manifest headers beginning with the form #% The headers exist before any processed manifest linevoidProcess Manifest line.
-
Method Details
-
setRow
Process Manifest line. This line is passed from Manifest. This method parses the content of this Manifest line and saves it locally- Parameters:
line- a line delimited String extracted from a Manifest- Throws:
TException- process exception
-
getLine
Build a Manifest line for output to a manifest file- Returns:
- Manifest line
- Throws:
TException- process exception
-
getManifestRow
Get ManifestRow object based on passed line- Parameters:
line- Manifest line- Returns:
- ManifestRow object built from this line
- Throws:
TException- process exception
-
handleEOF
Any specialized EOF handling required. e.g. The last line of a Post manifest is #@EOF- Parameters:
prevLine- last line of manifest- Throws:
TException- process exception
-
handleHeaders
Process all manifest headers beginning with the form #% The headers exist before any processed manifest line- Parameters:
headers- array of Strings containing each identified header- Throws:
TException
-
getHeaders
String[] getHeaders()Return the checkm headers- Returns:
- checkm headers
-
getOutputHeaders
String[] getOutputHeaders()Return the checkm headers- Returns:
- checkm headers
-
getProfile
String getProfile()If profile associated with this manifest then return value- Returns:
- manifest profile
-