public abstract class AbstractFilemgrMetExtractor extends Object implements FilemgrMetExtractor
An abstract base class providing functionality to any sub-classing
FilemgrMetExtractors.
| Modifier and Type | Field and Description |
|---|---|
protected Properties |
configuration |
| Constructor and Description |
|---|
AbstractFilemgrMetExtractor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addMetadataIfUndefined(Metadata origMet,
Metadata destMet,
String key,
String val) |
void |
configure(Properties props)
Sets the configuration for this Metadata extractor.
|
abstract void |
doConfigure() |
abstract Metadata |
doExtract(Product product,
Metadata met) |
Metadata |
extractMetadata(Product product,
Metadata met)
|
protected File |
getProductFile(Product product) |
protected String |
getRootRefPath(List<Reference> refs,
String productTypeRepoPath) |
protected void |
merge(Metadata src,
Metadata dest) |
protected void |
validateProduct(Product product,
Metadata met) |
protected Properties configuration
public Metadata extractMetadata(Product product, Metadata met) throws MetExtractionException
FilemgrMetExtractorextractMetadata in interface FilemgrMetExtractorproduct - The given Product.met - The original Metadata provided during ingestion.Metadata derived from the existing
Metadata and Product provided.MetExtractionExceptionpublic void configure(Properties props)
FilemgrMetExtractorconfigure in interface FilemgrMetExtractorprops - The Properties object to configure this Metadata
extractor with.public abstract Metadata doExtract(Product product, Metadata met) throws MetExtractionException
MetExtractionExceptionpublic abstract void doConfigure()
protected void validateProduct(Product product, Metadata met) throws MetExtractionException
MetExtractionExceptionprotected void addMetadataIfUndefined(Metadata origMet, Metadata destMet, String key, String val)
protected File getProductFile(Product product) throws MetExtractionException
MetExtractionExceptionprotected String getRootRefPath(List<Reference> refs, String productTypeRepoPath) throws URISyntaxException
URISyntaxExceptionCopyright © 1999–2017 Apache OODT. All rights reserved.