|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.FieldChecker
public class FieldChecker
Checks for errors in Field Name.
Constructor Summary | |
---|---|
FieldChecker()
Constructs a FieldChecker using ArcGIS Engine. |
|
FieldChecker(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. FieldChecker theFieldChecker = (FieldChecker) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
IWorkspace |
getInputWorkspace()
Input workspace of the fieldchecker. |
ISqlKeywordDictionary |
getValidateDictionary()
Fieldchecker dictionary. |
IWorkspace |
getValidateWorkspace()
Workspace of the fieldchecker. |
int |
hashCode()
the hashcode for this object |
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(String tableName,
String[] fixedName)
Checks the validity of a table name. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public FieldChecker() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic FieldChecker(Object obj) throws IOException
FieldChecker theFieldChecker = (FieldChecker) obj;
obj
to FieldChecker
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void validate(IFields inputField, IEnumFieldError[] error, IFields[] fixedFields) throws IOException, AutomationException
validate
in interface IFieldChecker
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int validateTableName(String tableName, String[] fixedName) throws 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.
validateTableName
in interface IFieldChecker
tableName
- The tableName (in)fixedName
- The fixedName (out: use single element array)
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 IOException, AutomationException
validateField
in interface IFieldChecker
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWorkspace getValidateWorkspace() throws IOException, AutomationException
Setting the ValidateWorkspace property is required prior to using any of this interface's Validate methods. This property should be set to the workspace where the dataset being validated is to be created.
getValidateWorkspace
in interface IFieldChecker
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setValidateWorkspaceByRef(IWorkspace validateWorkspace) throws IOException, AutomationException
Setting the ValidateWorkspace property is required prior to using any of this interface's Validate methods. This property should be set to the workspace where the dataset being validated is to be created.
setValidateWorkspaceByRef
in interface IFieldChecker
validateWorkspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWorkspace getInputWorkspace() throws IOException, AutomationException
The InputWorkspace property should be set when the IFieldChecker interface is used for creating a dataset that uses another dataset's fields. For example, when using the feature data converter to create a new dataset, or when cloning the fields of an existing dataset to use with a new dataset.
This property should be set to the source workspace - the workspace that contains the original dataset, not the newly created dataset.
getInputWorkspace
in interface IFieldChecker
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setInputWorkspace(IWorkspace inputWorkspace) throws IOException, AutomationException
The InputWorkspace property should be set when the IFieldChecker interface is used for creating a dataset that uses another dataset's fields. For example, when using the feature data converter to create a new dataset, or when cloning the fields of an existing dataset to use with a new dataset.
This property should be set to the source workspace - the workspace that contains the original dataset, not the newly created dataset.
setInputWorkspace
in interface IFieldChecker
inputWorkspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISqlKeywordDictionary getValidateDictionary() throws 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.
getValidateDictionary
in interface IFieldChecker
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setValidateDictionaryByRef(ISqlKeywordDictionary validateDictionary) throws 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.
setValidateDictionaryByRef
in interface IFieldChecker
validateDictionary
- A reference to a com.esri.arcgis.geodatabase.ISqlKeywordDictionary (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 |