|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGPEnvironment
Provides access to the editable properties/methods of a geoprocessing environment object.
The IGPEnvironment interface is used to define the properties and methods of a geoprocessing environment setting. Examples are the Extent, Current Workspace, and the Output Coordinate System. For more detail, please refer to the technical document: Building Geoprocessing Function Tools.
Method Summary | |
---|---|
void |
addDependency(String name)
Adds the name of an environment that the geoprocessing environment is dependent on. |
String |
getCategory()
Category of the geoprocessing environment. |
IUID |
getControlCLSID()
Class identifier (CLSID) of the ActiveX control to use to edit the geoprocessing environment. |
IGPDataType |
getDataType()
Data type of acceptable values of the geoprocessing environment. |
IEnumBSTR |
getDependencies()
Enumeration of environment names the geoprocessing environment is dependent on. |
String |
getDisplayName()
Display name of the geoprocessing environment. |
int |
getDisplayOrder()
Display order of the geoprocessing environment. |
IGPDomain |
getDomain()
Domain of the geoprocessing environment. |
String |
getMetadataFile()
Name of the (XML) file containing the default metadata for this environment object. |
String |
getName()
Name of the geoprocessing environment. |
IGPValue |
getValue()
Value of the geoprocessing environment. |
void |
setCategory(String category)
Category of the geoprocessing environment. |
void |
setControlCLSID(IUID cLSID)
Class identifier (CLSID) of the ActiveX control to use to edit the geoprocessing environment. |
void |
setDataTypeByRef(IGPDataType dataType)
Data type of acceptable values of the geoprocessing environment. |
void |
setDependencies(IEnumBSTR dependencies)
Enumeration of environment names the geoprocessing environment is dependent on. |
void |
setDisplayName(String name)
Display name of the geoprocessing environment. |
void |
setDisplayOrder(int displayOrder)
Display order of the geoprocessing environment. |
void |
setDomainByRef(IGPDomain domain)
Domain of the geoprocessing environment. |
void |
setMetadataFile(String file)
Name of the (XML) file containing the default metadata for this environment object. |
void |
setName(String name)
Name of the geoprocessing environment. |
void |
setValueByRef(IGPValue value)
Value of the geoprocessing environment. |
Method Detail |
---|
String getName() throws IOException, AutomationException
The Name property sets the name of an environment setting. This name appears when using the environment at the command line or in scripting. It must be unique and must not contain any spaces.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setName(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getDisplayName() throws IOException, AutomationException
The DisplayName property sets the user-friendly name of an environment setting. It is displayed in the graphic user interface of the Environment Settings dialog. The DisplayName can be internationalized.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDisplayName(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getCategory() throws IOException, AutomationException
Currently the GPEnvironment object has 5 defined categories. Use the Category property to access one of those categories.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCategory(String category) throws IOException, AutomationException
category
- The category (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPValue getValue() throws IOException, AutomationException
The Value property returns the value of this environment setting such as the path string for the Current Workspace.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setValueByRef(IGPValue value) throws IOException, AutomationException
value
- A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGPDomain getDomain() throws IOException, AutomationException
The Domain property returns the domain of Value objects associated with the environment. It is used during validation to ensure only acceptable values are used.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDomainByRef(IGPDomain domain) throws IOException, AutomationException
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.IGPDataType getDataType() throws IOException, AutomationException
The DataType property is used to access the DataType object associated with this Environment object.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDataTypeByRef(IGPDataType dataType) throws IOException, AutomationException
dataType
- A reference to a com.esri.arcgis.geodatabase.IGPDataType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getDisplayOrder() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDisplayOrder(int displayOrder) throws IOException, AutomationException
displayOrder
- The displayOrder (in)
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.void setControlCLSID(IUID cLSID) throws IOException, AutomationException
cLSID
- A reference to a com.esri.arcgis.system.IUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumBSTR getDependencies() throws IOException, AutomationException
The Dependencies property returns a list, or enumeration [IEnumBSTR], of environment names the environment is dependent on. Dependency examples are
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDependencies(IEnumBSTR dependencies) throws IOException, AutomationException
dependencies
- A reference to a com.esri.arcgis.system.IEnumBSTR (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addDependency(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getMetadataFile() throws IOException, AutomationException
The MetadataFile property stores the name of a .xml file with the default metadata for an environment setting. The .xml file supplies parameter descriptions in the help panel of the Environment Settings dialog.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMetadataFile(String file) throws IOException, AutomationException
file
- The file (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 |