gov.nasa.pds.search.core.registry
Class ProductClass
java.lang.Object
gov.nasa.pds.search.core.registry.ProductClass
public class ProductClass
- extends Object
- Author:
- jpadams
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. |
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 |
ProductClass
public ProductClass(File outputDir,
List<String> primaryRegistries,
List<String> secondaryRegistries)
- Parameters:
outputDir
- primaryRegistries
- secondaryRegistries
-
query
public List<String> query(File coreConfig)
throws ProductClassException,
SearchCoreFatalException
- Driving method for querying data from the registry
- Parameters:
coreConfig
-
- Returns:
-
- Throws:
ProductClassException
SearchCoreFatalException
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 configextObject
-
- 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.