|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Provides access to members that control the Field Checker.
IFieldChecker is used to validate the Fields object. This is ideally used when you are creating a new FeatureClass based on another FeatureClass, when it is stored in a different database format, i.e., Workspace. IFieldChecker is responsible for verifying that the field names, datatypes, and other parameters meet a generic minimum set of criteria--this is so they will work for Geodatabase, Shapefile or Coverage data formats. If you use IFeatureDataConverter, use the IFieldChecker to create the IFields object for the output FeatureClass or Table.
The InputWorkspace and ValidateWorkspace methods should be used when validating IFields and TableNames where the input and output datasets are in a different format, i.e: shapefile vs. Geodatabase. Since different data formats (or DBMSs when using a Geodatabase) have different requirements and limitations, using both of these methods is required to provide proper validation and reserved word dictionary selection.
The logic used to determine if the OID field should be renamed to "ObjectID" can be classified with 4 cases.
Case1: Both the InputWorkspace and ValidateWorkspace are provided.
Case2: Only the InputWorkspace is provided (the ValidateWorkspace has not been provided).
Case3: Only the ValidateWorkspace is provided (the InputWorkspace has not been provided).
Case4: Neither of the workspaces is provided
| Method Summary | |
IWorkspace |
getInputWorkspace()
Input workspace of the fieldchecker. |
ISqlKeywordDictionary |
getValidateDictionary()
Fieldchecker dictionary. |
IWorkspace |
getValidateWorkspace()
Workspace of the fieldchecker. |
void |
setInputWorkspace(IWorkspace inputWorkspace)
Input workspace of the fieldchecker. |
void |
setValidateDictionaryByRef(ISqlKeywordDictionary validateDictionary)
Fieldchecker dictionary. |
void |
setValidateWorkspaceByRef(IWorkspace validateWorkspace)
Workspace of the fieldchecker. |
void |
validate(IFields inputField,
IEnumFieldError[] error,
IFields[] fixedFields)
Checks the validity of a list of field names. |
void |
validateField(int fieldIndex,
IFields inputFields,
IEnumFieldError[] error,
IFields[] fixedFields)
Checks the validity of a field. |
int |
validateTableName(java.lang.String tableName,
java.lang.String[] fixedName)
Checks the validity of a table name. |
| Method Detail |
public void validate(IFields inputField,
IEnumFieldError[] error,
IFields[] fixedFields)
throws java.io.IOException,
AutomationException
inputField - A reference to a com.esri.arcgis.geodatabase.IFields (in)error - A reference to a com.esri.arcgis.geodatabase.IEnumFieldError (out: use single element array)fixedFields - A reference to a com.esri.arcgis.geodatabase.IFields (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int validateTableName(java.lang.String tableName,
java.lang.String[] fixedName)
throws java.io.IOException,
AutomationException
ValidateTableName verifies that a table name is valid for the target data format, and if needed, returns a compliant table name. This method returns a esriTableNameErrorType indicating the type of error. Table existence is not checked.
tableName - The tableName (in)fixedName - The fixedName (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void validateField(int fieldIndex,
IFields inputFields,
IEnumFieldError[] error,
IFields[] fixedFields)
throws java.io.IOException,
AutomationException
fieldIndex - The fieldIndex (in)inputFields - A reference to a com.esri.arcgis.geodatabase.IFields (in)error - A reference to a com.esri.arcgis.geodatabase.IEnumFieldError (out: use single element array)fixedFields - A reference to a com.esri.arcgis.geodatabase.IFields (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IWorkspace getValidateWorkspace()
throws java.io.IOException,
AutomationException
The InputWorkspace and ValidateWorkspace methods should be used when validating IFields and TableNames where the input and output datasets are in a different format, i.e: shapefile vs. Geodatabase. Since different data formats (or DBMSs when using a Geodatabase) have different requirements and limitations, using both of these methods are required to provide proper validation and reserved word dictionary selection.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setValidateWorkspaceByRef(IWorkspace validateWorkspace)
throws java.io.IOException,
AutomationException
validateWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IWorkspace getInputWorkspace()
throws java.io.IOException,
AutomationException
The InputWorkspace and ValidateWorkspace methods should be used when validating IFields and TableNames where the input and output datasets are in a different format, i.e: shapefile vs. Geodatabase. Since different data formats (or DBMSs when using a Geodatabase) have different requirements and limitations, using both of these methods are required to provide proper validation and reserved word dictionary selection.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setInputWorkspace(IWorkspace inputWorkspace)
throws java.io.IOException,
AutomationException
The InputWorkspace and ValidateWorkspace methods should be used when validating IFields and TableNames where the input and output datasets are in a different format, i.e: shapefile vs. Geodatabase. Since different data formats (or DBMSs when using a Geodatabase) have different requirements and limitations, using both of these methods are required to provide proper validation and reserved word dictionary selection.
inputWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISqlKeywordDictionary getValidateDictionary()
throws java.io.IOException,
AutomationException
The ValidateDictionary method provides access to the dictionary used to verify that field and table names are reserved words in the target data source. A ISqlKeywordDictionary object can be used to search the dictionary used to validate a name when IFieldChecker::ValidateWorkspace has been set. If a ValidateWorkspace has not been set a custom keyword dictionary can be built using ISqlKeywordDictionary. If the ValidateWorkspace has been set the dictionary can not be changed.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setValidateDictionaryByRef(ISqlKeywordDictionary validateDictionary)
throws java.io.IOException,
AutomationException
validateDictionary - A reference to a com.esri.arcgis.geodatabase.ISqlKeywordDictionary (in)
java.io.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 | |||||||||