|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGPDataType
Provides access to members of a GP Data Type.
The IGPDataType interface is used to define the data type for each parameter to a geoprocessing tool. Some examples of data types include FeatureClass, Table, and Raster.
The data type is an object used to specify and manage the values passed in as input to a geoprocessing function. For example, in ModelBuilder datatypes are used to determine if a given model variable is valid input to a geoprocessing tool.
Data types are used to provide a way to generate and validate the parameter values. For every data type there is a IGPValue object. IGPValue objects are the actual inputs to a geoprocessing tool.
A complete example of defining the parameter data types is available in the article, IGPValue.
IGPParameter.getName()
,
IGPParameter
,
IGPDataType
Method Summary | |
---|---|
IGPValue |
createValue(String text)
Creates a geoprocessing value object from the given string. |
IUID |
getControlCLSID()
The COM class id of the data type. |
String |
getDisplayName()
The descriptive, user-friendly name. |
IName |
getFullName()
The associated Name object. |
int |
getHelpContext()
The context identifier of the topic within the help file. |
String |
getHelpFile()
The name of the (CHM) file containing help information. |
String |
getMetadataFile()
The name of the (XML) file containing the default metadata for this data type. |
String |
getName()
The name of the data type. |
IGPMessage |
validateDataType(IGPDataType type)
Validates if a given geoprocessing data type object is valid. |
IGPMessage |
validateValue(IGPValue value,
IGPDomain domain)
Validates if a given geoprocessing value object is the correct data type. |
Method Detail |
---|
String getName() throws IOException, AutomationException
The Name property returns the unique name assigned to the DataType object.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getDisplayName() throws IOException, AutomationException
The DisplayName property returns the descriptive, user-friendly name of the DataType object.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IUID getControlCLSID() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IName getFullName() throws IOException, AutomationException
The FullName property returns the full name of the DataType object, which is an IName object.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPDataType.getFullName()
String getHelpFile() throws IOException, AutomationException
The HelpFile property returns the string of the help file, which contains the help for the DataType.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getHelpContext() throws IOException, AutomationException
The HelpContext property returns the context identifier to the topic inside the HelpFile for this DataType.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getMetadataFile() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPValue createValue(String text) throws IOException, AutomationException
The CreateValue method creates the default Value object, which can subsequently be used in the parameter array that is passed to the Validate and the Execute methods of IGPFunction.
text
- The text (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPMessage validateDataType(IGPDataType type) throws IOException, AutomationException
The ValidateDataType method determines if a given DataType object is compatible. The method is used by ModelBuilder to evaluate if a variable can be associated with this DataType.
type
- A reference to a com.esri.arcgis.geodatabase.IGPDataType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPMessage validateValue(IGPValue value, IGPDomain domain) throws IOException, AutomationException
The ValidateValue method is used to determine if a Value object is compatible with a DataType.
value
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)domain
- A reference to a com.esri.arcgis.geodatabase.IGPDomain (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 |