|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.citool.ingestor.CatalogObject
public class CatalogObject
Class to parse a PDS catalog file and to call a CatalogDB class to ingest the data into DB.
Constructor Summary | |
---|---|
CatalogObject()
|
Method Summary | |
---|---|
protected void |
getCatalogObj(java.util.List<gov.nasa.pds.tools.label.ObjectStatement> objList,
java.util.Map<java.lang.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 java.util.List<gov.nasa.pds.tools.label.ObjectStatement> |
object2List(gov.nasa.pds.tools.label.Label label)
Converts a label object to List type |
gov.nasa.pds.tools.label.Label |
parse(java.lang.String catFilename)
Method to parse the PDS catalog file. |
void |
setCatalogDB(CatalogDB catDb)
Sets CatalogDB object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CatalogObject()
Method Detail |
---|
public gov.nasa.pds.tools.label.Label parse(java.lang.String catFilename)
catFilename
- Name of the catalog file
public void setCatalogDB(CatalogDB catDb)
catDb
- A CatalogDB objectprotected void getCatalogObj(java.util.List<gov.nasa.pds.tools.label.ObjectStatement> objList, java.util.Map<java.lang.String,gov.nasa.pds.tools.label.AttributeStatement> pdsLabelMap)
objList
- List of the catalog object statement(s)pdsLabelMap
- Hashmap of the PDS label keyword and value for all ATTRIBUTEprotected java.util.List<gov.nasa.pds.tools.label.ObjectStatement> object2List(gov.nasa.pds.tools.label.Label label)
label
- Label objectpublic void ingest(gov.nasa.pds.tools.label.Label label)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |