|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGPParameter
Provides access to the properties/methods of a geoprocessing parameter object.
The IGPParameter provides access to the properties that identify the characteristics for a geoprocessing tool’s parameter. The ParameterInfo property of the IGPFunction returns an array of IGPParameter objects. Also refer to IGPParameterEdit, IGPFunction.
Method Summary | |
---|---|
String |
getCategory()
Category of the geoprocessing parameter. |
IGPChoiceList |
getChoiceList()
The choice list object of the geoprocessing parameter. |
IUID |
getControlCLSID()
The class identifier (CLSID) of the ActiveX control to use to edit the geoprocessing parameter. |
IGPDataType |
getDataType()
Data type of the geoprocessing parameter. |
String |
getDefaultEnvironmentName()
The name of the environment value to use as the default value for the geoprocessing parameter. |
int |
getDirection()
Direction of the geoprocessing parameter. |
String |
getDisplayName()
Display name of the geoprocessing parameter. |
int |
getDisplayOrder()
The display order of the geoprocessing parameter. |
IGPDomain |
getDomain()
Domain of the geoprocessing parameter. |
String |
getName()
Name of the geoprocessing parameter. |
IEnumBSTR |
getParameterDependencies()
Enumeration of parameter names the geoprocessing parameter is dependent on. |
int |
getParameterType()
Type of the geoprocessing parameter. |
IGPValue |
getValue()
The current value object of the geoprocessing parameter. |
boolean |
isAltered()
Indicates whether the parameter value has been explicitly set (by the user). |
boolean |
isEnabled()
Indicates whether the ActiveX control for the geoprocessing parameter should be enabled/disabled. |
boolean |
isHasBeenValidated()
Indicates whether the parameter value has been modified since the last time the parameter was validated (i.e., since Validate() was called). |
Method Detail |
---|
String getName() throws IOException, AutomationException
The Name property value must not contain any spaces; correct value examples are: "inputFeature" or "input_featureclass".
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getDisplayName() throws IOException, AutomationException
The DisplayName property stores the parameter's name that is exposed at the UI, for example "Input Features". This value can be internationalized.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getDirection() throws IOException, AutomationException
The Direction property is an enumeration of values for setting the direction of a parameter. Valid values are: esriGPParameterDirectionInput, esriGPParameterDirectionOutput.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPDataType getDataType() throws IOException, AutomationException
The DataType property defines and manages the type of data that can be used with a parameter. Examples include: FeatureClass, String, Boolean, Raster, and Table. So, if a parameter's data type is Table, then only table data can be entered. For a complete list of data type objects, check the IGPDataType in the ArcGIS Developer Help.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getParameterType() throws IOException, AutomationException
The ParameterType property is an enumeration of values for setting a geoprocessing function parameter's type. Three values are in this enumeration: esriGPParameterTypeRequired, esriGPParameterTypeOptional, and esriGPParameterTypeDerived.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumBSTR getParameterDependencies() throws IOException, AutomationException
The ParameterDependencies property is optional; it is used to set dependencies between parameters. For example, a field parameter is typically dependent on a table or feature class.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPDomain getDomain() throws IOException, AutomationException
The Domain property is used to set, limit, or filter valid values for a parameter. An example of the domain (RangeDomain) for a value object is limiting an integer to the range of 1 - 100. For a complete list of valid domain objects, refer to IGPDomain in the ArcGIS Developer Help.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isEnabled() throws IOException, AutomationException
The Enabled property controls whether or not a parameter is visible at the UI.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPValue getValue() throws IOException, AutomationException
The Value property defines the value of a parameter's data type. For example, if the data type is FeatureClass, then the parameter's default value is FeatureClass. Values are the actual data inputs to a geoprocessing tool, containing scalars or the path to the data on disk. For the complete list of Value objects, refer to IGPValue in the ArcGIS Develop Help.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IUID getControlCLSID() throws IOException, AutomationException
The ControlCLSID property is optional; it is used to override the default control of the DataType. If no CLSID is supplied, then the control of the DataType is used.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getDefaultEnvironmentName() throws IOException, AutomationException
The DefaultEnvironmentName property is optional; it initializes the default environment value for a geoprocessing tool parameter.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getDisplayOrder() throws IOException, AutomationException
The DisplayOrder is optional; it stores the order in which parameters are displayed on a dialog. The usage display order is always the order of the values in the array. For example, in the ParameterInfo property the parameters ought to be ordered by required, optional, and derived.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isAltered() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isHasBeenValidated() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getCategory() throws IOException, AutomationException
The Category property is optional; it is creates an expandable and collapsible section on a tool dialog. Use the Category property to "hide" many optional parameters of a function.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPChoiceList getChoiceList() throws IOException, AutomationException
The ChoiceList property is optional; it supplies a choice list for parameter values for the command line.
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 |