org.apache.oodt.cas.metadata.extractors
Class ParentKeyDataSourceMetExtractor

java.lang.Object
  extended by org.apache.oodt.cas.metadata.AbstractMetExtractor
      extended by org.apache.oodt.cas.metadata.extractors.DataSourceMetExtractor
          extended by org.apache.oodt.cas.metadata.extractors.ParentKeyDataSourceMetExtractor
All Implemented Interfaces:
MetExtractor

public class ParentKeyDataSourceMetExtractor
extends DataSourceMetExtractor

Supports data source key look via parent key if files key is no good. Expected file name: -.

Author:
bfoster@apache.com (Brian Foster)

Field Summary
 
Fields inherited from class org.apache.oodt.cas.metadata.AbstractMetExtractor
config, LOG, reader
 
Constructor Summary
ParentKeyDataSourceMetExtractor()
           
 
Method Summary
protected  Metadata extrMetadata(File file)
          Extracts Metadata from the given File
protected  String getKey(File file)
           
 
Methods inherited from class org.apache.oodt.cas.metadata.extractors.DataSourceMetExtractor
getMetadata
 
Methods inherited from class org.apache.oodt.cas.metadata.AbstractMetExtractor
extractMetadata, extractMetadata, extractMetadata, extractMetadata, extractMetadata, extractMetadata, extractMetadata, setConfigFile, setConfigFile, setConfigFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParentKeyDataSourceMetExtractor

public ParentKeyDataSourceMetExtractor()
Method Detail

extrMetadata

protected Metadata extrMetadata(File file)
                         throws MetExtractionException
Description copied from class: AbstractMetExtractor
Extracts Metadata from the given File

Overrides:
extrMetadata in class DataSourceMetExtractor
Parameters:
file - The File from which Metadata will be extracted
Returns:
The Metadata extracted
Throws:
MetExtractionException - If any error occurs

getKey

protected String getKey(File file)
Overrides:
getKey in class DataSourceMetExtractor


Copyright © 1999-2014 Apache OODT. All Rights Reserved.