|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INAClassFieldMap
Provides access to the the mapping of input fields to output fields.
The INAClassFieldMap interface provides access to a collection of field map items. When used with NAClassLoader::Load, each field map item associates a field in the input row with a field in a NAClass.
The DefaultValue property is used when the input row has a null field value or no field mapping is specified.
Method Summary | |
---|---|
void |
createMapping(INAClassDefinition classDef,
IFields fields)
Creates a new field name mapping. |
int |
getCount()
The count of field mappings defined. |
Object |
getDefaultValue(String fieldName)
The default field value for a given input field name. |
String |
getFieldName(int index)
The mapping for the given index. |
String |
getMappedField(String fieldName)
The output field name mapped to a given input field name. |
void |
remove(String fieldName)
Removes the entry for an existing field name mapping. |
void |
setDefaultValue(String fieldName,
Object value)
The default field value for a given input field name. |
void |
setMappedField(String fieldName,
String mappedField)
The output field name mapped to a given input field name. |
Method Detail |
---|
void setMappedField(String fieldName, String mappedField) throws IOException, AutomationException
fieldName
- The fieldName (in)mappedField
- The mappedField (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getMappedField(String fieldName) throws IOException, AutomationException
fieldName
- The fieldName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultValue(String fieldName, Object value) throws IOException, AutomationException
fieldName
- The fieldName (in)value
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getDefaultValue(String fieldName) throws IOException, AutomationException
fieldName
- The fieldName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void remove(String fieldName) throws IOException, AutomationException
Resets and clears any exising field mapping definitions.
fieldName
- The fieldName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void createMapping(INAClassDefinition classDef, IFields fields) throws IOException, AutomationException
CreateMapping generates the default mapping for fields based on the inbound INAClassDefinition parameter. The default mapping is based on matching the INAClassDefinition::CandidateFieldNames of the input INAClassDefinition to the field names in the input IFields parameter. Each matched field will be stored in the NAClassFieldMap object and is accessible via the MappedField method.
classDef
- A reference to a com.esri.arcgis.networkanalyst.INAClassDefinition (in)fields
- A reference to a com.esri.arcgis.geodatabase.IFields (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getCount() throws IOException, AutomationException
Count returns the number of fields that have default values or mapped fields.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getFieldName(int index) throws IOException, AutomationException
index
- The index (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 |