gov.nasa.pds.citool.ingestor
Class CatalogObject

java.lang.Object
  extended by gov.nasa.pds.citool.ingestor.CatalogObject

public class CatalogObject
extends Object

Class to parse a PDS catalog file and to call a CatalogDB class to ingest the data into DB.

Author:
hlee

Constructor Summary
CatalogObject()
           
 
Method Summary
protected  void getCatalogObj(List<gov.nasa.pds.tools.label.ObjectStatement> objList, Map<String,gov.nasa.pds.tools.label.AttributeStatement> pdsLabelMap)
          Gets the catalog object from the LIST, sets to hash map, and calls CatalogDB object to ingest the data into the database.
 void ingest(gov.nasa.pds.tools.label.Label label)
          Method to convert top level attribute into the hashmap object and calls a method to convert the rest of the attributes (nested object statement)
protected  List<gov.nasa.pds.tools.label.ObjectStatement> object2List(gov.nasa.pds.tools.label.Label label)
          Converts a label object to List type
 void setCatalogDB(CatalogDB catDb, IngestReport report)
          Sets CatalogDB object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogObject

public CatalogObject()
Method Detail

setCatalogDB

public void setCatalogDB(CatalogDB catDb,
                         IngestReport report)
Sets CatalogDB object

Parameters:
catDb - A CatalogDB object

getCatalogObj

protected void getCatalogObj(List<gov.nasa.pds.tools.label.ObjectStatement> objList,
                             Map<String,gov.nasa.pds.tools.label.AttributeStatement> pdsLabelMap)
Gets the catalog object from the LIST, sets to hash map, and calls CatalogDB object to ingest the data into the database.

Parameters:
objList - List of the catalog object statement(s)
pdsLabelMap - Hashmap of the PDS label keyword and value for all ATTRIBUTE

object2List

protected List<gov.nasa.pds.tools.label.ObjectStatement> object2List(gov.nasa.pds.tools.label.Label label)
Converts a label object to List type

Parameters:
label - Label object

ingest

public void ingest(gov.nasa.pds.tools.label.Label label)
Method to convert top level attribute into the hashmap object and calls a method to convert the rest of the attributes (nested object statement)



Copyright © 2005-2011 Planetary Data System. All Rights Reserved.