com.esri.arcgis.catalog
Interface IMetadataImport

All Superinterfaces:
Serializable
All Known Implementing Classes:
IMetadataImportProxy

public interface IMetadataImport
extends Serializable

Provides access to members that define a metadata importer.

Remarks

The IMetadataImport interface is available to custom CoClasses that implement the MetadataImport abstract class. For example, a custom CoClass might be written to support importing metadata to an ArcGIS item from a custom document format. Example code illustrating how to use this object is available in the ArcGIS 9.3.1 Developer Help system.

Product Availability

Available with ArcGIS Desktop.


Method Summary
 void esri_import(String source, IMetadata destination)
          Imports metadata from the specified location.
 String getDefaultFilename()
          Default filename (including the file extension) from which to import.
 String getName()
          Name of the metadata importer.
 

Method Detail

getName

String getName()
               throws IOException,
                      AutomationException
Name of the metadata importer.

Remarks

Returns the name of the MetadataImport subclass as a string.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Returns:
The name
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDefaultFilename

String getDefaultFilename()
                          throws IOException,
                                 AutomationException
Default filename (including the file extension) from which to import.

Remarks

The DefaultFilename is determined by the MetadataImport subclass. Typically the name “metadata” with an appropriate file extension for the import format is built into the MetadataImport subclass. For example, “metadata.txt” would be appropriate if a subclass imports content from a structured text file.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Returns:
The fileName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

esri_import

void esri_import(String source,
                 IMetadata destination)
                 throws IOException,
                        AutomationException
Imports metadata from the specified location.

Product Availability

Available with ArcGIS Desktop.

Parameters:
source - The source (in)
destination - A reference to a com.esri.arcgis.geodatabase.IMetadata (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.