|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.cam.spectra.DataProcess
public class DataProcess
Data object that holds input data, processing instructions and output data for file processing. The reason for modelling the processing instructions this way (rather than e.g. as method calls) is that this allows implementations to perform combinations of procedures (a common use case) efficiently, by reusing intermediate data structures and avoiding repeated validations, for example. The class holds both input data, output data and processing instructions to allow further efficiencies, e.g. allowing clients to pass in a pre-converted CML. It also allows various efficiencies and flexibilities on the part of the file handling component.
| Constructor Summary | |
|---|---|
DataProcess()
|
|
| Method Summary | |
|---|---|
nu.xom.Document |
getConvertedCml()
|
com.hp.hpl.jena.rdf.model.Model |
getExtractedMetadata()
|
java.lang.String |
getMetadataPackageUri()
Accessor for the metadataPackageUri. |
boolean |
getPerformConversion()
Accessor for the conversion processing instruction flag. |
boolean |
getPerformExtraction()
Accessor for the metadata extraction processing instruction flag. |
boolean |
getPerformValidation()
Accessor for the metadata extraction processing instruction flag. |
java.io.File |
getSourceFile()
Accessor for the sourceFile field. |
Validation |
getValidation()
Returns the results of any validation performed. |
void |
setConvertedCml(nu.xom.Document convertedCml)
Accessor for the converted CML. |
void |
setExtractedMetadata(com.hp.hpl.jena.rdf.model.Model extractedMetadata)
Accessor for the extracted metadata. |
void |
setMetadataPackageUri(java.lang.String metadataPackageUri)
Accessor for the metadata package URI. |
void |
setPerformConversion(boolean performConversion)
Accessor for conversion processing instruction flag. |
void |
setPerformExtraction(boolean performExtraction)
Accessor for conversion processing instruction flag. |
void |
setPerformValidation(boolean performValidation)
|
void |
setSourceFile(java.io.File sourceFile)
|
void |
setValidation(Validation validation)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataProcess()
| Method Detail |
|---|
public nu.xom.Document getConvertedCml()
public com.hp.hpl.jena.rdf.model.Model getExtractedMetadata()
public java.lang.String getMetadataPackageUri()
public java.io.File getSourceFile()
public Validation getValidation()
public boolean getPerformConversion()
public boolean getPerformExtraction()
public boolean getPerformValidation()
public void setConvertedCml(nu.xom.Document convertedCml)
convertedCml - public void setExtractedMetadata(com.hp.hpl.jena.rdf.model.Model extractedMetadata)
extractedMetadata - public void setMetadataPackageUri(java.lang.String metadataPackageUri)
metadataPackageUri - public void setPerformConversion(boolean performConversion)
performConversion - public void setPerformExtraction(boolean performExtraction)
performExtraction - public void setPerformValidation(boolean performValidation)
public void setSourceFile(java.io.File sourceFile)
public void setValidation(Validation validation)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||