com.esri.arcgis.geoprocessing.tools.datamanagementtools
Class CalculateField

java.lang.Object
  extended by com.esri.arcgis.geoprocessing.AbstractGPTool
      extended by com.esri.arcgis.geoprocessing.tools.datamanagementtools.CalculateField
All Implemented Interfaces:
GPTool

public class CalculateField
extends AbstractGPTool

Calculates the values of a field for a feature class, feature layer, or raster catalog. The Calculate Field tool is contained in the Data Management Tools tool box.

Usage tips:


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
Constructor Summary
CalculateField()
          Creates the Calculate Field tool with defaults.
CalculateField(java.lang.Object inTable, java.lang.Object field, java.lang.Object expression)
          Creates the Calculate Field tool with the required parameters.
 
Method Summary
 java.lang.String getCodeBlock()
          Returns the Code Block parameter of this tool .
 java.lang.Object getExpression()
          Returns the Expression parameter of this tool .
 java.lang.String getExpressionType()
          Returns the Expression Type parameter of this tool .
 java.lang.Object getField()
          Returns the Field Name parameter of this tool .
 java.lang.Object getInTable()
          Returns the Input Table parameter of this tool .
 java.lang.Object getOutTable()
          Returns the Output Feature Class parameter of this tool (Read only).
 java.lang.String getToolboxAlias()
          Returns the alias of the tool box containing this tool.
 java.lang.String getToolboxName()
          Returns the name of the tool box containing this tool.
 java.lang.String getToolName()
          Returns the name of this tool.
 void setCodeBlock(java.lang.String codeBlock)
          Sets the Code Block parameter of this tool .
 void setExpression(java.lang.Object expression)
          Sets the Expression parameter of this tool .
 void setExpressionType(java.lang.String expressionType)
          Sets the Expression Type parameter of this tool .
 void setField(java.lang.Object field)
          Sets the Field Name parameter of this tool .
 void setInTable(java.lang.Object inTable)
          Sets the Input Table parameter of this tool .
 
Methods inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
getParameterValues, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CalculateField

public CalculateField()
Creates the Calculate Field tool with defaults.

Initializes the array of tool parameters with the default values specified when the tool was created.


CalculateField

public CalculateField(java.lang.Object inTable,
                      java.lang.Object field,
                      java.lang.Object expression)
Creates the Calculate Field tool with the required parameters.

Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other parameters.

Parameters:
inTable - the table containing the field that will be updated with the new calculation.
field - the field that will be updated with the new calculation.
expression - the simple calculation expression used to create a value that will populate the selected rows.
Method Detail

getInTable

public java.lang.Object getInTable()
Returns the Input Table parameter of this tool . This parameter is the table containing the field that will be updated with the new calculation. This is a required parameter.

Returns:
the Input Table

setInTable

public void setInTable(java.lang.Object inTable)
Sets the Input Table parameter of this tool . This parameter is the table containing the field that will be updated with the new calculation. This is a required parameter.

Parameters:
inTable - the table containing the field that will be updated with the new calculation.

getField

public java.lang.Object getField()
Returns the Field Name parameter of this tool . This parameter is the field that will be updated with the new calculation. This is a required parameter.

Returns:
the Field Name

setField

public void setField(java.lang.Object field)
Sets the Field Name parameter of this tool . This parameter is the field that will be updated with the new calculation. This is a required parameter.

Parameters:
field - the field that will be updated with the new calculation.

getExpression

public java.lang.Object getExpression()
Returns the Expression parameter of this tool . This parameter is the simple calculation expression used to create a value that will populate the selected rows. This is a required parameter.

Returns:
the Expression

setExpression

public void setExpression(java.lang.Object expression)
Sets the Expression parameter of this tool . This parameter is the simple calculation expression used to create a value that will populate the selected rows. This is a required parameter.

Parameters:
expression - the simple calculation expression used to create a value that will populate the selected rows.

getExpressionType

public java.lang.String getExpressionType()
Returns the Expression Type parameter of this tool . This parameter is specify the type of expression that will be used. This is an optional parameter.

Returns:
the Expression Type

setExpressionType

public void setExpressionType(java.lang.String expressionType)
Sets the Expression Type parameter of this tool . This parameter is specify the type of expression that will be used. This is an optional parameter.

Parameters:
expressionType - specify the type of expression that will be used.

getCodeBlock

public java.lang.String getCodeBlock()
Returns the Code Block parameter of this tool . This parameter is allows for a block of code to be entered for complex expressions. This is an optional parameter.

Returns:
the Code Block

setCodeBlock

public void setCodeBlock(java.lang.String codeBlock)
Sets the Code Block parameter of this tool . This parameter is allows for a block of code to be entered for complex expressions. This is an optional parameter.

Parameters:
codeBlock - allows for a block of code to be entered for complex expressions.

getOutTable

public java.lang.Object getOutTable()
Returns the Output Feature Class parameter of this tool (Read only). This is an derived parameter.

Returns:
the Output Feature Class

getToolName

public java.lang.String getToolName()
Returns the name of this tool.

Returns:
the tool name

getToolboxName

public java.lang.String getToolboxName()
Returns the name of the tool box containing this tool.

Returns:
the tool box name

getToolboxAlias

public java.lang.String getToolboxAlias()
Returns the alias of the tool box containing this tool.

Returns:
the tool box alias