|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geoprocessing.MdParameter
public class MdParameter
Model parameter object that references a model variable or contains a value object.
Constructor Summary | |
---|---|
MdParameter()
Constructs a MdParameter using ArcGIS Engine. |
|
MdParameter(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. MdParameter theMdParameter = (MdParameter) obj; |
Method Summary | |
---|---|
void |
addDependency(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(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
String |
getCategory()
Category of the geoprocessing parameter. |
IGPChoiceList |
getChoiceList()
The choice list object of the geoprocessing parameter. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
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. |
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. |
IGPSchema |
getSchema()
Indicates how the output value is to be generated and populated during validate. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
IGPValue |
getValue()
The current value object of the geoprocessing parameter. |
int |
hashCode()
the hashcode for this object |
void |
init(IGPParameter definition)
Initializes the model parameter using the given parameter as a template. |
boolean |
isAltered()
Indicates whether the parameter value has been explicitly set (by the user). |
boolean |
isCurrent()
Indicates if the model parameter is current (i.e., has been created). |
boolean |
isDerived()
Indicates if the model parameter is a derived value. |
void |
isDirty()
isDirty |
boolean |
isEnabled()
Indicates whether the ActiveX control for the geoprocessing parameter should be enabled/disabled. |
boolean |
isEqual(IClone other)
Indicates if 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)
Indicates if the receiver and other are the same object. |
boolean |
isManaged()
Indicates whether the parameter is managed. |
boolean |
isMarked()
Indicates if the model parameter has been marked for validation/execution. |
boolean |
isValid()
Indicates if the model parameter is valid. |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
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(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 |
setCurrent(boolean current)
Indicates if the model parameter is current (i.e., has been created). |
void |
setDataTypeByRef(IGPDataType rhs1)
Data type of the geoprocessing parameter. |
void |
setDefaultEnvironmentName(String rhs1)
The name of the environment value to use as the default value for the geoprocessing parameter. |
void |
setDerived(boolean derived)
Indicates if the model parameter is a derived value. |
void |
setDirection(int rhs1)
Direction of the geoprocessing parameter. |
void |
setDisplayName(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 |
setMarked(boolean marked)
Indicates if the model parameter has been marked for validation/execution. |
void |
setName(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 |
setSchemaByRef(IGPSchema rhs1)
Indicates how the output value is to be generated and populated during validate. |
void |
setValid(boolean valid)
Indicates if the model parameter is valid. |
void |
setValueByRef(IGPValue rhs1)
The current value object of the geoprocessing parameter. |
IGPMessage |
validate()
Validates the current value of the model parameter. |
void |
writeExternal(ObjectOutput out)
|
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 MdParameter() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic MdParameter(Object obj) throws IOException
MdParameter theMdParameter = (MdParameter) obj;
obj
to MdParameter
.
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 IClone esri_clone() throws IOException, AutomationException
esri_clone
in interface IClone
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void assign(IClone src) throws IOException, AutomationException
assign
in interface IClone
src
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEqual(IClone other) throws IOException, AutomationException
IsEqual returns True if the receiver and the source have the same properties. Note, this does not imply that the receiver and the source reference the same object.
isEqual
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isIdentical(IClone other) throws IOException, AutomationException
IsIdentical returns true if the receiver and the source reference the same object.
isIdentical
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getName() throws IOException, AutomationException
The Name property value must not contain any spaces; correct value examples are: "inputFeature" or "input_featureclass".
getName
in interface IGPParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getDisplayName
in interface IGPParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getDirection
in interface IGPParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getDataType
in interface IGPParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getParameterType
in interface IGPParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getParameterDependencies
in interface IGPParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getDomain
in interface IGPParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEnabled() throws IOException, AutomationException
The Enabled property controls whether or not a parameter is visible at the UI.
isEnabled
in interface IGPParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getValue
in interface IGPParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getControlCLSID
in interface IGPParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDefaultEnvironmentName() throws IOException, AutomationException
The DefaultEnvironmentName property is optional; it initializes the default environment value for a geoprocessing tool parameter.
getDefaultEnvironmentName
in interface IGPParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getDisplayOrder
in interface IGPParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isAltered() throws IOException, AutomationException
isAltered
in interface IGPParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasBeenValidated() throws IOException, AutomationException
isHasBeenValidated
in interface IGPParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getCategory
in interface IGPParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPChoiceList getChoiceList() throws IOException, AutomationException
The ChoiceList property is optional; it supplies a choice list for parameter values for the command line.
getChoiceList
in interface IGPParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(String rhs1) throws IOException, AutomationException
setName
in interface IGPParameterEdit
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDisplayName(String rhs1) throws IOException, AutomationException
setDisplayName
in interface IGPParameterEdit
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDirection(int rhs1) throws IOException, AutomationException
setDirection
in interface IGPParameterEdit
rhs1
- A com.esri.arcgis.geoprocessing.esriGPParameterDirection constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDataTypeByRef(IGPDataType rhs1) throws IOException, AutomationException
setDataTypeByRef
in interface IGPParameterEdit
rhs1
- A reference to a com.esri.arcgis.geodatabase.IGPDataType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setParameterType(int rhs1) throws IOException, AutomationException
setParameterType
in interface IGPParameterEdit
rhs1
- A com.esri.arcgis.geoprocessing.esriGPParameterType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setParameterDependencies(IEnumBSTR rhs1) throws IOException, AutomationException
setParameterDependencies
in interface IGPParameterEdit
rhs1
- A reference to a com.esri.arcgis.system.IEnumBSTR (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDomainByRef(IGPDomain rhs1) throws IOException, AutomationException
setDomainByRef
in interface IGPParameterEdit
rhs1
- A reference to a com.esri.arcgis.geodatabase.IGPDomain (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setEnabled(boolean rhs1) throws IOException, AutomationException
setEnabled
in interface IGPParameterEdit
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setValueByRef(IGPValue rhs1) throws IOException, AutomationException
setValueByRef
in interface IGPParameterEdit
setValueByRef
in interface IMdParameter
rhs1
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setControlCLSID(IUID rhs1) throws IOException, AutomationException
setControlCLSID
in interface IGPParameterEdit
rhs1
- A reference to a com.esri.arcgis.system.IUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultEnvironmentName(String rhs1) throws IOException, AutomationException
setDefaultEnvironmentName
in interface IGPParameterEdit
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDisplayOrder(int rhs1) throws IOException, AutomationException
setDisplayOrder
in interface IGPParameterEdit
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAltered(boolean rhs1) throws IOException, AutomationException
setAltered
in interface IGPParameterEdit
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHasBeenValidated(boolean rhs1) throws IOException, AutomationException
setHasBeenValidated
in interface IGPParameterEdit
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addDependency(String name) throws IOException, AutomationException
addDependency
in interface IGPParameterEdit
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCategory(String rhs1) throws IOException, AutomationException
setCategory
in interface IGPParameterEdit
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setChoiceListByRef(IGPChoiceList rhs1) throws IOException, AutomationException
setChoiceListByRef
in interface IGPParameterEdit
rhs1
- A reference to a com.esri.arcgis.geodatabase.IGPChoiceList (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isMarked() throws IOException, AutomationException
isMarked
in interface IMdParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMarked(boolean marked) throws IOException, AutomationException
setMarked
in interface IMdParameter
marked
- The marked (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isValid() throws IOException, AutomationException
isValid
in interface IMdParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setValid(boolean valid) throws IOException, AutomationException
setValid
in interface IMdParameter
valid
- The valid (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCurrent() throws IOException, AutomationException
isCurrent
in interface IMdParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCurrent(boolean current) throws IOException, AutomationException
setCurrent
in interface IMdParameter
current
- The current (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isDerived() throws IOException, AutomationException
isDerived
in interface IMdParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDerived(boolean derived) throws IOException, AutomationException
setDerived
in interface IMdParameter
derived
- The derived (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void init(IGPParameter definition) throws IOException, AutomationException
init
in interface IMdParameter
definition
- A reference to a com.esri.arcgis.geoprocessing.IGPParameter (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPMessage validate() throws IOException, AutomationException
validate
in interface IMdParameter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty
in interface IPersistStream
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws IOException, AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void serialize(IXMLSerializeData data) throws IOException, AutomationException
serialize
in interface IXMLSerialize
data
- A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deserialize(IXMLSerializeData data) throws IOException, AutomationException
deserialize
in interface IXMLSerialize
data
- A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isManaged() throws IOException, AutomationException
isManaged
in interface IGPParameter2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setManaged(boolean rhs1) throws IOException, AutomationException
setManaged
in interface IGPParameterEdit2
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPSchema getSchema() throws IOException, AutomationException
getSchema
in interface IGPParameter3
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSchemaByRef(IGPSchema rhs1) throws IOException, AutomationException
setSchemaByRef
in interface IGPParameterEdit3
rhs1
- A reference to a com.esri.arcgis.geoprocessing.IGPSchema (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |