public abstract class AbstractFilemgrMetExtractor extends Object implements FilemgrMetExtractor
An abstract base class providing functionality to any sub-classing
FilemgrMetExtractor
s.
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
FilemgrMetExtractor
extractMetadata
in interface FilemgrMetExtractor
product
- The given Product
.met
- The original Metadata
provided during ingestion.Metadata
derived from the existing
Metadata
and Product
provided.MetExtractionException
public void configure(Properties props)
FilemgrMetExtractor
configure
in interface FilemgrMetExtractor
props
- The Properties
object to configure this Metadata
extractor with.public abstract Metadata doExtract(Product product, Metadata met) throws MetExtractionException
MetExtractionException
public abstract void doConfigure()
protected void validateProduct(Product product, Metadata met) throws MetExtractionException
MetExtractionException
protected void addMetadataIfUndefined(Metadata origMet, Metadata destMet, String key, String val)
protected File getProductFile(Product product) throws MetExtractionException
MetExtractionException
protected String getRootRefPath(List<Reference> refs, String productTypeRepoPath) throws URISyntaxException
URISyntaxException
Copyright © 1999–2017 Apache OODT. All rights reserved.