gov.nasa.pds.search.core.registry
Class ProductClass

java.lang.Object
  extended by gov.nasa.pds.search.core.registry.ProductClass

public class ProductClass
extends Object

Author:
jpadams

Constructor Summary
ProductClass(File outputDir, List<String> primaryRegistries, List<String> secondaryRegistries)
           
 
Method Summary
protected  String checkForSubstring(OutputString outputString, gov.nasa.pds.registry.model.wrapper.ExtendedExtrinsicObject extObject)
          Extract the attribute/slot/association from the String specified and query the Registry for the value to replace it wit.
static List<gov.nasa.pds.registry.client.results.ResultsFilter> createResultsFilters(List<Query> queryList)
           
 int getQueryMax()
           
 List<String> query(File coreConfig)
          Driving method for querying data from the registry
 void setQueryMax(int queryMax)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductClass

public ProductClass(File outputDir,
                    List<String> primaryRegistries,
                    List<String> secondaryRegistries)
Parameters:
outputDir -
primaryRegistries -
secondaryRegistries -
Method Detail

query

public List<String> query(File coreConfig)
                   throws ProductClassException,
                          SearchCoreFatalException
Driving method for querying data from the registry

Parameters:
coreConfig -
Returns:
Throws:
ProductClassException
SearchCoreFatalException

createResultsFilters

public static List<gov.nasa.pds.registry.client.results.ResultsFilter> createResultsFilters(List<Query> queryList)

checkForSubstring

protected String checkForSubstring(OutputString outputString,
                                   gov.nasa.pds.registry.model.wrapper.ExtendedExtrinsicObject extObject)
                            throws Exception
Extract the attribute/slot/association from the String specified and query the Registry for the value to replace it wit.

Parameters:
str - input string from config
extObject -
Returns:
the string with the embedded attribute/slot/association to be queried, replaced with the value from the Registry
Throws:
Exception

getQueryMax

public int getQueryMax()
Returns:
the queryMax

setQueryMax

public void setQueryMax(int queryMax)
Parameters:
queryMax - the queryMax to set


Copyright © 2010–2014 Planetary Data System. All rights reserved.