|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.catalog.IMetadataExportProxy
public class IMetadataExportProxy
Provides access to members that define a metadata exporter.
The IMetadataExport interface is available to custom CoClasses that implement the MetadataExport abstract class. For example, a custom CoClass might be written to support exporting metadata from an ArcGIS item to a custom document format. Example code illustrating how to use this object is available in the ArcGIS 9.3.1 Developer Help system.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IMetadataExportProxy()
|
|
IMetadataExportProxy(Object obj)
|
protected |
IMetadataExportProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
export(IMetadata source,
String destination)
Exports metadata to the specified location. |
String |
getDefaultFilename()
Default filename (including the file extension) to create on export. |
String |
getName()
Name of the metadata exporter. |
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 |
---|
public boolean noncastable
Constructor Detail |
---|
public IMetadataExportProxy()
public IMetadataExportProxy(Object obj) throws IOException
IOException
protected IMetadataExportProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public String getName() throws IOException, AutomationException
Returns the name of the MetadataExport subclass as a string.
getName
in interface IMetadataExport
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDefaultFilename() throws IOException, AutomationException
The DefaultFilename is determined by the MetadataExport subclass. Typically the name “metadata” with an appropriate file extension for the export format is built into the MetadataExport subclass. For example, if a subclass exports content to an HTML file the default filename might be “metadata.html”.
getDefaultFilename
in interface IMetadataExport
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void export(IMetadata source, String destination) throws IOException, AutomationException
The Export method creates metadata for the specified source ArcGIS item and exports it to a determined location. Although MetadataExporters create metadata documents in a specific format, it is still necessary to explicitly state the file format when supplying the destination parameter, for example, “c:\metadata\parcels.html”.
export
in interface IMetadataExport
source
- A reference to a com.esri.arcgis.geodatabase.IMetadata (in)destination
- The destination (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |