com.esri.arcgis.editor
Class IFieldMapProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.editor.IFieldMapProxy
All Implemented Interfaces:
IFieldMap, Externalizable, Serializable

public class IFieldMapProxy
extends com.esri.arcgis.interop.Dispatch
implements IFieldMap, Serializable

Provides access to members that control the behavior of the field mapping tools.

Remarks

A FieldMap contains a number source and target fields for use in attribute transfer.

To create a new FieldMap, instantiate a new FieldMap object then set its source and target feature class via the SourceClass and TargetClass properties. Next set each source and target pair via the SetFieldMap method.

Source/Target field pairs can be can be queried via the FieldMap property, which returns an IEnumFieldMap object containing the field pairs.

A source/target field pair can be removed from a FieldMap by using the DeleteFieldMap method. Only the source field is specified.

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
  IFieldMapProxy()
           
  IFieldMapProxy(Object obj)
           
protected IFieldMapProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 void deleteFieldMap(boolean sourceLayer, IField pField)
          Delete an individual field map (source or destination).
 IEnumFieldMap getFieldMap()
          Enum of field maps.
 IObjectClass getSourceClass()
          Source class (required) for field mapping.
 IField getSourceField(IField pTargetField)
          The source field for the provided target field.
 IObjectClass getTargetClass()
          Target class (required) for field mapping.
 IField getTargetField(IField pSourceField)
          The target field for the provided source field.
 boolean isEmpty()
          Indicates if any field mappings have been set.
 void removeListener(String iidStr, Object theListener)
           
 void setFieldMap(IField pSourceField, IField pTargetField)
          Establishes a field mapping between the source and target fields.
 void setSourceClassByRef(IObjectClass ppSourceTable)
          Source class (required) for field mapping.
 void setTargetClassByRef(IObjectClass ppTargetTable)
          Target class (required) for field mapping.
 
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

IFieldMapProxy

public IFieldMapProxy()

IFieldMapProxy

public IFieldMapProxy(Object obj)
               throws IOException
Throws:
IOException

IFieldMapProxy

protected IFieldMapProxy(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

setSourceClassByRef

public void setSourceClassByRef(IObjectClass ppSourceTable)
                         throws IOException,
                                AutomationException
Source class (required) for field mapping.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
setSourceClassByRef in interface IFieldMap
Parameters:
ppSourceTable - A reference to a com.esri.arcgis.geodatabase.IObjectClass (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSourceClass

public IObjectClass getSourceClass()
                            throws IOException,
                                   AutomationException
Source class (required) for field mapping.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getSourceClass in interface IFieldMap
Returns:
A reference to a com.esri.arcgis.geodatabase.IObjectClass
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTargetClassByRef

public void setTargetClassByRef(IObjectClass ppTargetTable)
                         throws IOException,
                                AutomationException
Target class (required) for field mapping.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
setTargetClassByRef in interface IFieldMap
Parameters:
ppTargetTable - A reference to a com.esri.arcgis.geodatabase.IObjectClass (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTargetClass

public IObjectClass getTargetClass()
                            throws IOException,
                                   AutomationException
Target class (required) for field mapping.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getTargetClass in interface IFieldMap
Returns:
A reference to a com.esri.arcgis.geodatabase.IObjectClass
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setFieldMap

public void setFieldMap(IField pSourceField,
                        IField pTargetField)
                 throws IOException,
                        AutomationException
Establishes a field mapping between the source and target fields.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
setFieldMap in interface IFieldMap
Parameters:
pSourceField - A reference to a com.esri.arcgis.geodatabase.IField (in)
pTargetField - A reference to a com.esri.arcgis.geodatabase.IField (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteFieldMap

public void deleteFieldMap(boolean sourceLayer,
                           IField pField)
                    throws IOException,
                           AutomationException
Delete an individual field map (source or destination).

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
deleteFieldMap in interface IFieldMap
Parameters:
sourceLayer - The sourceLayer (in)
pField - A reference to a com.esri.arcgis.geodatabase.IField (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFieldMap

public IEnumFieldMap getFieldMap()
                          throws IOException,
                                 AutomationException
Enum of field maps.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getFieldMap in interface IFieldMap
Returns:
A reference to a com.esri.arcgis.editor.IEnumFieldMap
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSourceField

public IField getSourceField(IField pTargetField)
                      throws IOException,
                             AutomationException
The source field for the provided target field.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getSourceField in interface IFieldMap
Parameters:
pTargetField - A reference to a com.esri.arcgis.geodatabase.IField (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IField
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTargetField

public IField getTargetField(IField pSourceField)
                      throws IOException,
                             AutomationException
The target field for the provided source field.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getTargetField in interface IFieldMap
Parameters:
pSourceField - A reference to a com.esri.arcgis.geodatabase.IField (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IField
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isEmpty

public boolean isEmpty()
                throws IOException,
                       AutomationException
Indicates if any field mappings have been set.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
isEmpty in interface IFieldMap
Returns:
The pIsEmpty
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.