|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.geoprocessing.GPParameter
Geoprocessing Parameter object.
The GPParameter class is required to define and create parameters for a new geoprocessing tool. Parameters define the characteristics of the inputs and outputs to a geoprocessing tool. An instance of this object is first created. Properties are then set to define the data type, name, direction, etc.
For more information about using the GPParameter class, see Building Geoprocessing Function Tools.
| Constructor Summary | |
GPParameter()
Constructs a GPParameter using ArcGIS Engine. |
|
GPParameter(java.lang.Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. |
|
| Method Summary | |
void |
addDependency(java.lang.String name)
Adds the name of a parameter that this geoprocessing parameter object is dependent on. |
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
boolean |
equals(java.lang.Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
IClone |
getAsIClone()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IGPParameter |
getAsIGPParameter()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IGPParameter2 |
getAsIGPParameter2()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IGPParameterEdit |
getAsIGPParameterEdit()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IGPParameterEdit2 |
getAsIGPParameterEdit2()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IPersistStream |
getAsIPersistStream()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IXMLSerialize |
getAsIXMLSerialize()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
java.lang.String |
getCategory()
Category of the geoprocessing parameter. |
IGPChoiceList |
getChoiceList()
The choice list object of the geoprocessing parameter. |
void |
getClassID(GUID[] pClassID)
Supported Platforms |
static java.lang.String |
getClsid()
|
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. |
java.lang.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. |
java.lang.String |
getDisplayName()
Display name of the geoprocessing parameter. |
int |
getDisplayOrder()
The display order of the geoprocessing parameter. |
IGPDomain |
getDomain()
Domain of the geoprocessing parameter. |
java.lang.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. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
Supported Platforms |
IGPValue |
getValue()
The current value object of the geoprocessing parameter. |
int |
hashCode()
the hashcode for this object |
boolean |
isAltered()
Indicates whether the parameter value has been explicitly set (by the user). |
void |
isDirty()
Supported Platforms |
boolean |
isEnabled()
Indicates whether the ActiveX control for the geoprocessing parameter should be enabled/disabled. |
boolean |
isEqual(IClone other)
Returns TRUE when the receiver and other have the same properties. |
boolean |
isHasBeenValidated()
Indicates whether the parameter value has been modified since the last time the parameter was validated (i.e., since Validate() was called). |
boolean |
isIdentical(IClone other)
Returns TRUE when the receiver and other are the same object. |
boolean |
isManaged()
Indicates whether the parameter is managed. |
void |
load(IStream pstm)
Supported Platforms |
void |
save(IStream pstm,
int fClearDirty)
Supported Platforms |
void |
serialize(IXMLSerializeData data)
Serializes an object to XML. |
void |
setAltered(boolean rhs1)
Indicates whether the parameter value has been explicitly set (by the user). |
void |
setCategory(java.lang.String rhs1)
Category of the geoprocessing parameter. |
void |
setChoiceListByRef(IGPChoiceList rhs1)
The choice list object of the geoprocessing parameter. |
void |
setControlCLSID(IUID rhs1)
The class identifier (CLSID) of the ActiveX control to use to edit the geoprocessing parameter. |
void |
setDataTypeByRef(IGPDataType rhs1)
Data type of the geoprocessing parameter. |
void |
setDefaultEnvironmentName(java.lang.String rhs1)
The name of the environment value to use as the default value for the geoprocessing parameter. |
void |
setDirection(int rhs1)
Direction of the geoprocessing parameter. |
void |
setDisplayName(java.lang.String rhs1)
Display name of the geoprocessing parameter. |
void |
setDisplayOrder(int rhs1)
The display order of the geoprocessing parameter. |
void |
setDomainByRef(IGPDomain rhs1)
Domain of the geoprocessing parameter. |
void |
setEnabled(boolean rhs1)
Indicates whether the ActiveX control for the geoprocessing parameter should be enabled/disabled. |
void |
setHasBeenValidated(boolean rhs1)
Indicates whether the parameter value has been modified since the last time the parameter was validated (i.e., since Validate() was called). |
void |
setManaged(boolean rhs1)
Indicates whether the parameter is managed. |
void |
setName(java.lang.String rhs1)
Name of the geoprocessing parameter. |
void |
setParameterDependencies(IEnumBSTR rhs1)
Enumeration of parameter names the geoprocessing parameter is dependent on. |
void |
setParameterType(int rhs1)
Type of the geoprocessing parameter. |
void |
setValueByRef(IGPValue rhs1)
The current value object of the geoprocessing parameter. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GPParameter()
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems
public GPParameter(java.lang.Object obj)
throws java.io.IOException
obj to GPParameter. GPParameter theGPParameter = (GPParameter) obj;
obj - an object returned from ArcGIS Engine or Server
java.io.IOException - if there are interop problems| Method Detail |
public static java.lang.String getClsid()
public IGPParameter getAsIGPParameter()
public IGPParameterEdit getAsIGPParameterEdit()
public IClone getAsIClone()
public IPersistStream getAsIPersistStream()
public IXMLSerialize getAsIXMLSerialize()
public IGPParameter2 getAsIGPParameter2()
public IGPParameterEdit2 getAsIGPParameterEdit2()
public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String getName()
throws java.io.IOException,
AutomationException
IGPParameterThe Name property value must not contain any spaces; correct value examples are: "inputFeature" or "input_featureclass".
getName in interface IGPParameterjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IGPFunction
public java.lang.String getDisplayName()
throws java.io.IOException,
AutomationException
IGPParameterThe DisplayName property stores the parameter's name that is exposed at the UI, for example "Input Features". This value can be internationalized.
getDisplayName in interface IGPParameterjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getDirection()
throws java.io.IOException,
AutomationException
IGPParameterThe Direction property is an enumeration of values for setting the direction of a parameter. Valid values are: esriGPParameterDirectionInput, esriGPParameterDirectionOutput.
getDirection in interface IGPParameterAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IGPDataType getDataType()
throws java.io.IOException,
AutomationException
IGPParameterThe 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.
getDataType in interface IGPParameterAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getParameterType()
throws java.io.IOException,
AutomationException
IGPParameterThe 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.
getParameterType in interface IGPParameterjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumBSTR getParameterDependencies()
throws java.io.IOException,
AutomationException
IGPParameterThe 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.
getParameterDependencies in interface IGPParameterAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IGPDomain getDomain()
throws java.io.IOException,
AutomationException
IGPParameterThe 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.
getDomain in interface IGPParameterjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isEnabled()
throws java.io.IOException,
AutomationException
IGPParameterThe Enabled property controls whether or not a parameter is visible at the UI.
isEnabled in interface IGPParameterjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGPValue getValue()
throws java.io.IOException,
AutomationException
IGPParameterThe 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.
getValue in interface IGPParameterAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IUID getControlCLSID()
throws java.io.IOException,
AutomationException
IGPParameterThe 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.
getControlCLSID in interface IGPParameterAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.String getDefaultEnvironmentName()
throws java.io.IOException,
AutomationException
IGPParameterThe DefaultEnvironmentName property is optional; it initializes the default environment value for a geoprocessing tool parameter.
getDefaultEnvironmentName in interface IGPParameterjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getDisplayOrder()
throws java.io.IOException,
AutomationException
IGPParameterThe 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.
getDisplayOrder in interface IGPParameterAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isAltered()
throws java.io.IOException,
AutomationException
IGPParameter
isAltered in interface IGPParameterAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isHasBeenValidated()
throws java.io.IOException,
AutomationException
IGPParameter
isHasBeenValidated in interface IGPParameterAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.String getCategory()
throws java.io.IOException,
AutomationException
IGPParameterThe 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.
getCategory in interface IGPParameterjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGPChoiceList getChoiceList()
throws java.io.IOException,
AutomationException
IGPParameterThe ChoiceList property is optional; it supplies a choice list for parameter values for the command line.
getChoiceList in interface IGPParameterAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setName(java.lang.String rhs1)
throws java.io.IOException,
AutomationException
IGPParameterEdit
setName in interface IGPParameterEditrhs1 - The rhs1 (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setDisplayName(java.lang.String rhs1)
throws java.io.IOException,
AutomationException
IGPParameterEdit
setDisplayName in interface IGPParameterEditrhs1 - The rhs1 (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDirection(int rhs1)
throws java.io.IOException,
AutomationException
IGPParameterEdit
setDirection in interface IGPParameterEditrhs1 - A com.esri.arcgis.geoprocessing.esriGPParameterDirection constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDataTypeByRef(IGPDataType rhs1)
throws java.io.IOException,
AutomationException
IGPParameterEdit
setDataTypeByRef in interface IGPParameterEditrhs1 - A reference to a com.esri.arcgis.geodatabase.IGPDataType (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setParameterType(int rhs1)
throws java.io.IOException,
AutomationException
IGPParameterEdit
setParameterType in interface IGPParameterEditrhs1 - A com.esri.arcgis.geoprocessing.esriGPParameterType constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setParameterDependencies(IEnumBSTR rhs1)
throws java.io.IOException,
AutomationException
IGPParameterEdit
setParameterDependencies in interface IGPParameterEditrhs1 - A reference to a com.esri.arcgis.system.IEnumBSTR (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDomainByRef(IGPDomain rhs1)
throws java.io.IOException,
AutomationException
IGPParameterEdit
setDomainByRef in interface IGPParameterEditrhs1 - A reference to a com.esri.arcgis.geodatabase.IGPDomain (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setEnabled(boolean rhs1)
throws java.io.IOException,
AutomationException
IGPParameterEdit
setEnabled in interface IGPParameterEditrhs1 - The rhs1 (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setValueByRef(IGPValue rhs1)
throws java.io.IOException,
AutomationException
IGPParameterEdit
setValueByRef in interface IGPParameterEditrhs1 - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setControlCLSID(IUID rhs1)
throws java.io.IOException,
AutomationException
IGPParameterEdit
setControlCLSID in interface IGPParameterEditrhs1 - A reference to a com.esri.arcgis.system.IUID (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setDefaultEnvironmentName(java.lang.String rhs1)
throws java.io.IOException,
AutomationException
IGPParameterEdit
setDefaultEnvironmentName in interface IGPParameterEditrhs1 - The rhs1 (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setDisplayOrder(int rhs1)
throws java.io.IOException,
AutomationException
IGPParameterEdit
setDisplayOrder in interface IGPParameterEditrhs1 - The rhs1 (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setAltered(boolean rhs1)
throws java.io.IOException,
AutomationException
IGPParameterEdit
setAltered in interface IGPParameterEditrhs1 - The rhs1 (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setHasBeenValidated(boolean rhs1)
throws java.io.IOException,
AutomationException
IGPParameterEdit
setHasBeenValidated in interface IGPParameterEditrhs1 - The rhs1 (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void addDependency(java.lang.String name)
throws java.io.IOException,
AutomationException
IGPParameterEdit
addDependency in interface IGPParameterEditname - The name (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setCategory(java.lang.String rhs1)
throws java.io.IOException,
AutomationException
IGPParameterEdit
setCategory in interface IGPParameterEditrhs1 - The rhs1 (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setChoiceListByRef(IGPChoiceList rhs1)
throws java.io.IOException,
AutomationException
IGPParameterEdit
setChoiceListByRef in interface IGPParameterEditrhs1 - A reference to a com.esri.arcgis.geodatabase.IGPChoiceList (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IClone esri_clone()
throws java.io.IOException,
AutomationException
IClone
esri_clone in interface IClonejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void assign(IClone src)
throws java.io.IOException,
AutomationException
IClone
assign in interface IClonesrc - A reference to a com.esri.arcgis.system.IClone (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isEqual(IClone other)
throws java.io.IOException,
AutomationException
IClone
isEqual in interface ICloneother - A reference to a com.esri.arcgis.system.IClone (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isIdentical(IClone other)
throws java.io.IOException,
AutomationException
IClone
isIdentical in interface ICloneother - A reference to a com.esri.arcgis.system.IClone (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void isDirty()
throws java.io.IOException,
AutomationException
IPersistStreamIPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty in interface IPersistStreamjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void load(IStream pstm)
throws java.io.IOException,
AutomationException
IPersistStreamIPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void save(IStream pstm,
int fClearDirty)
throws java.io.IOException,
AutomationException
IPersistStreamIPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)fClearDirty - The fClearDirty (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
throws java.io.IOException,
AutomationException
IPersistStreamIPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax in interface IPersistStreampcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void getClassID(GUID[] pClassID)
throws java.io.IOException,
AutomationException
IPersistIPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID in interface IPersistpClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void serialize(IXMLSerializeData data)
throws java.io.IOException,
AutomationException
IXMLSerialize
serialize in interface IXMLSerializedata - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deserialize(IXMLSerializeData data)
throws java.io.IOException,
AutomationException
IXMLSerialize
deserialize in interface IXMLSerializedata - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isManaged()
throws java.io.IOException,
AutomationException
IGPParameter2
isManaged in interface IGPParameter2AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setManaged(boolean rhs1)
throws java.io.IOException,
AutomationException
IGPParameterEdit2
setManaged in interface IGPParameterEdit2rhs1 - The rhs1 (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||