All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cpt.MDImporter


java.lang.Object

   |

   +----cpt.MDImporter


public class MDImporter
extends Object
A class for importing metadata into CPT. Its purpose is to abstract the various metadata sources and provide a clean interface for importing data into the system.


Constructor Index

 o MDImporter()
Constructs an MDImporter object.

Method Index

 o getFormats()
Returns the supported import formats.
 o getMD(DataSet, String, String)
Returns metadata in the CPT internal format.
 o main(String[])
Tests the class.

Constructors

 o MDImporter

 public MDImporter()

Constructs an MDImporter object.

Methods

 o getFormats

 public Vector getFormats()

Returns the supported import formats. Returns an array of currently supported import formats. The array items are references to objects containing descriptions of the formats and int identifiers. These values can be used by the UI.

Returns:
an array of supported import formats.
 o getMD

 public Vector getMD(DataSet InputDataSet,

                     String Location,

                     String FormatID)

Returns metadata in the CPT internal format. The returned metadata has been verified against the database, and the dimension aliases have been resolved.

Parameters:
InputDataSet - the DataSet that contains the metada elements included in the document. getMD() updates this DataSet by adding the metadata elements it finds in the metadata file.
Location - the source of the metadata.
FormatID - the type of the source.
Returns:
a vector of object references to metadata dimensions found from the source.
 o main

 public static void main(String args[])

Tests the class.



All Packages  Class Hierarchy  This Package  Previous  Next  Index