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(org.apache.oodt.cas.metadata.Metadata origMet,
org.apache.oodt.cas.metadata.Metadata destMet,
String key,
String val) |
void |
configure(Properties props)
Sets the configuration for this Metadata extractor.
|
abstract void |
doConfigure() |
abstract org.apache.oodt.cas.metadata.Metadata |
doExtract(Product product,
org.apache.oodt.cas.metadata.Metadata met) |
org.apache.oodt.cas.metadata.Metadata |
extractMetadata(Product product,
org.apache.oodt.cas.metadata.Metadata met)
Extracts
Metadata from the given Product . |
protected File |
getProductFile(Product product) |
protected String |
getRootRefPath(List<Reference> refs,
String productTypeRepoPath) |
protected void |
merge(org.apache.oodt.cas.metadata.Metadata src,
org.apache.oodt.cas.metadata.Metadata dest) |
protected void |
validateProduct(Product product,
org.apache.oodt.cas.metadata.Metadata met) |
protected Properties configuration
public org.apache.oodt.cas.metadata.Metadata extractMetadata(Product product, org.apache.oodt.cas.metadata.Metadata met) throws org.apache.oodt.cas.metadata.exceptions.MetExtractionException
FilemgrMetExtractor
Metadata
from the given Product
.extractMetadata
in interface FilemgrMetExtractor
product
- The given Product
.met
- The original Metadata
provided during ingestion.Metadata
derived from the existing
Metadata
and Product
provided.org.apache.oodt.cas.metadata.exceptions.MetExtractionException
public void configure(Properties props)
FilemgrMetExtractor
configure
in interface FilemgrMetExtractor
props
- The Properties
object to configure this Metadata
extractor with.public abstract org.apache.oodt.cas.metadata.Metadata doExtract(Product product, org.apache.oodt.cas.metadata.Metadata met) throws org.apache.oodt.cas.metadata.exceptions.MetExtractionException
org.apache.oodt.cas.metadata.exceptions.MetExtractionException
public abstract void doConfigure()
protected void validateProduct(Product product, org.apache.oodt.cas.metadata.Metadata met) throws org.apache.oodt.cas.metadata.exceptions.MetExtractionException
org.apache.oodt.cas.metadata.exceptions.MetExtractionException
protected void addMetadataIfUndefined(org.apache.oodt.cas.metadata.Metadata origMet, org.apache.oodt.cas.metadata.Metadata destMet, String key, String val)
protected void merge(org.apache.oodt.cas.metadata.Metadata src, org.apache.oodt.cas.metadata.Metadata dest)
protected File getProductFile(Product product) throws org.apache.oodt.cas.metadata.exceptions.MetExtractionException
org.apache.oodt.cas.metadata.exceptions.MetExtractionException
protected String getRootRefPath(List<Reference> refs, String productTypeRepoPath) throws URISyntaxException
URISyntaxException
Copyright © 1999-2016 Apache OODT. All Rights Reserved.