gov.nasa.pds.citool.catalog
Class CatalogList

java.lang.Object
  extended by gov.nasa.pds.citool.catalog.CatalogList

public class CatalogList
extends Object

Class that is intended to find matching 'IDs' between two objects found in a catalog file. 'IDs' in this context means an attribute value that distinguishes multiple catalog objects from each other. For example, REFERENCE objects contain an attribute called REFERENCE_KEY_ID that makes the object unique.

This class aids in programatically determining if two catalog objects were meant to be the same when doing a comparison function in the Catalog Ingest Tool.

Author:
mcayanan

Constructor Summary
CatalogList(List<gov.nasa.pds.tools.label.ObjectStatement> catalogs)
          Constructor
 
Method Summary
 gov.nasa.pds.tools.label.ObjectStatement get(gov.nasa.pds.tools.label.Value id)
          Returns a catalog object that contains the supplied id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogList

public CatalogList(List<gov.nasa.pds.tools.label.ObjectStatement> catalogs)
Constructor

Parameters:
catalogs - A list of catalog objects.
Method Detail

get

public gov.nasa.pds.tools.label.ObjectStatement get(gov.nasa.pds.tools.label.Value id)
Returns a catalog object that contains the supplied id

Parameters:
id - The value that makes the catalog object unique.
Returns:
The catalog object that matches the supplied id.


Copyright © 2010-2012 Planetary Data System. All Rights Reserved.