com.esri.arcgis.catalog
Class IMetadataImportProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.catalog.IMetadataImportProxy
All Implemented Interfaces:
IMetadataImport, Externalizable, Serializable

public class IMetadataImportProxy
extends com.esri.arcgis.interop.Dispatch
implements IMetadataImport, 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.

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  IMetadataImportProxy()
           
  IMetadataImportProxy(Object obj)
           
protected IMetadataImportProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 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.
 void removeListener(String iidStr, Object theListener)
           
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

IMetadataImportProxy

public IMetadataImportProxy()

IMetadataImportProxy

public IMetadataImportProxy(Object obj)
                     throws IOException
Throws:
IOException

IMetadataImportProxy

protected IMetadataImportProxy(Object obj,
                               String iid)
                        throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

getName

public 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

Specified by:
getName in interface IMetadataImport
Returns:
The name
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDefaultFilename

public 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

Specified by:
getDefaultFilename in interface IMetadataImport
Returns:
The fileName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

esri_import

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

Product Availability

Available with ArcGIS Desktop.

Specified by:
esri_import in interface IMetadataImport
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.