|
|||||||||
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.catalogUI.IMetadataEditorProxy
public class IMetadataEditorProxy
Provides access to members that define a metadata editor.
The IMetadataEditor interface is available to custom CoClasses that implement the MetadataExport abstract class. For example, a custom CoClass might be written to support editing an ArcGIS item’s metadata to by adding custom XML elements to it. Example custom metadata editors are available in the ArcGIS 9.3.1 Developer Help system.
Custom metadata editors must be called programmatically. This code must determine the selected ArcGIS item and extract its metadata, then pass the resulting XmlPropertySet object to the metadata editor. If the metadata editor’s Edit function reports that the metadata content was modified, the code must save the changes to the item’s Metadata property. The ArcGIS 9.3.1 Developer Help system includes an example button that performed these operations within ArcMap for a layer.
The IMetadataEditor interface has only a Name property and an Edit function for which you need to provide code when creating a Custom Metadata Editor.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IMetadataEditorProxy()
|
|
IMetadataEditorProxy(Object obj)
|
protected |
IMetadataEditorProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
boolean |
edit(IPropertySet props,
int hWnd)
Shows the metadata editor and indicates if the metadata property set was modified. |
String |
getName()
Name of the metadata editor. |
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 IMetadataEditorProxy()
public IMetadataEditorProxy(Object obj) throws IOException
IOException
protected IMetadataEditorProxy(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 Metadata Editor as String
You use the get_Name property when you create a class that implements the IMetadataEditor interface. The Name property is the name of the editor. Additional details are available in the ArcGIS 9.3.1 Developer Help documentation “How to create a custom metadata editor” available at ArcGIS online.
getName
in interface IMetadataEditor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean edit(IPropertySet props, int hWnd) throws IOException, AutomationException
The Edit method is used to invoke the Metadata Editor, which is used to create and edit metadata.
The props parameter must be of data type IPropertySet, in the form of an XmlPropertySet object. The PropertySet variable is the selected item’s metadata. The calling program must get this object from the selected ArcGIS item using its IMetadata::Metadata property, if the object supports this interface and if the IMetadataEdit::CanEditMetadata property returns the Boolean value TRUE. The PropertySet variable contains multiple value pairs that contain the tags—XPaths identifying existing XML elements—and their corresponding values. For example, if the item contains an FGDC metadata, its title element in the property set would be (“idinfo/citation/citeinfo/title”, “The Title”).
The hWnd parameter must be of type Long. It is a handle on the Metadata Editor window.
The returns value is a Boolean value, indicating if the metadata was changed.
Additional details are available in the ArcGIS 9.3.1 Developer Help documentation “How to create a custom metadata editor” available at ArcGIS online.
edit
in interface IMetadataEditor
props
- A reference to a com.esri.arcgis.system.IPropertySet (in)hWnd
- The hWnd (A COM typedef) (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 |