public class IapdLoader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.String> |
messages |
protected java.util.List<TreatmentStep> |
treatmentSteps |
Constructor and Description |
---|
IapdLoader(java.io.File file,
java.util.Map<java.lang.Object,java.lang.Object> importOptions)
Creates a new IapdLoader.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addMessage(java.lang.String message,
java.lang.Object... args) |
protected void |
addTreatmentStep(TreatmentStep step) |
java.util.List<java.lang.String> |
getExtraLines()
Returns any lines in the file which were not handled by the loader.
|
java.util.List<java.lang.String> |
getMessages()
Returns any messages produced during the loading process.
|
java.util.List<TreatmentStep> |
getTreatmentSteps()
Returns the treatment steps read from the file.
|
protected java.util.List<java.lang.String> messages
protected java.util.List<TreatmentStep> treatmentSteps
public IapdLoader(java.io.File file, java.util.Map<java.lang.Object,java.lang.Object> importOptions)
TreatmentType.class
; value must be an instance of
TreatmentType
MeasurementType.class
; value must be an instance of
MeasurementType
These keys respectively specify the treatment type and measurement type
for the treatmentSteps in the file. If they are omitted, defaults will be
used.file
- the file from which to read treatmentStepsimportOptions
- import options for reading the treatmentStepsprotected void addMessage(java.lang.String message, java.lang.Object... args)
protected void addTreatmentStep(TreatmentStep step)
public java.util.List<TreatmentStep> getTreatmentSteps()
FileLoader
getTreatmentSteps
in interface FileLoader
public java.util.List<java.lang.String> getExtraLines()
FileLoader
getExtraLines
in interface FileLoader
public java.util.List<java.lang.String> getMessages()
FileLoader
getMessages
in interface FileLoader