com.esri.arcgis.geoprocessing.tools.coveragetools
Class AddItem

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

public class AddItem
extends AbstractGPTool

Adds a new blank or zero item to a new or existing INFO table. The Add Item tool is contained in the Coverage Tools tool box.

Usage tips:


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
Constructor Summary
AddItem()
          Creates the Add Item tool with defaults.
AddItem(java.lang.Object inInfoTable, java.lang.Object outInfoTable, java.lang.String itemName, int itemWidth, int outputWidth, java.lang.String itemType)
          Creates the Add Item tool with the required parameters.
 
Method Summary
 int getDecimalPlaces()
          Returns the Decimal Places parameter of this tool .
 java.lang.Object getInInfoTable()
          Returns the Input Info Table parameter of this tool .
 java.lang.String getItemName()
          Returns the Item Name parameter of this tool .
 java.lang.String getItemType()
          Returns the Item Type parameter of this tool .
 int getItemWidth()
          Returns the Item Width parameter of this tool .
 java.lang.Object getOutInfoTable()
          Returns the Output Info Table parameter of this tool .
 int getOutputWidth()
          Returns the Output Width parameter of this tool .
 java.lang.Object getStartItem()
          Returns the Start Item parameter of this tool .
 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 setDecimalPlaces(int decimalPlaces)
          Sets the Decimal Places parameter of this tool .
 void setInInfoTable(java.lang.Object inInfoTable)
          Sets the Input Info Table parameter of this tool .
 void setItemName(java.lang.String itemName)
          Sets the Item Name parameter of this tool .
 void setItemType(java.lang.String itemType)
          Sets the Item Type parameter of this tool .
 void setItemWidth(int itemWidth)
          Sets the Item Width parameter of this tool .
 void setOutInfoTable(java.lang.Object outInfoTable)
          Sets the Output Info Table parameter of this tool .
 void setOutputWidth(int outputWidth)
          Sets the Output Width parameter of this tool .
 void setStartItem(java.lang.Object startItem)
          Sets the Start Item 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

AddItem

public AddItem()
Creates the Add Item tool with defaults.

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


AddItem

public AddItem(java.lang.Object inInfoTable,
               java.lang.Object outInfoTable,
               java.lang.String itemName,
               int itemWidth,
               int outputWidth,
               java.lang.String itemType)
Creates the Add Item 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:
inInfoTable - the INFO table to which the item is to be added.
outInfoTable - the INFO table to be created.
itemName - the new item to be added to the INFO table.
itemWidth - the INFO width of the added item. Supported widths:
outputWidth - the output width of the added item. This is the number of characters used to display an item value. for example, in a 2-byte integer (item type BINARY), values can be as high as 32767, which requires five characters for display. Dates can be displayed using eight (mm/dd/yy) or ten (mm/dd/yyyy) characters. For international date displays, months and days can be switched (for example, dd/mm/yy).
itemType - the INFO item type of the added item.
Method Detail

getInInfoTable

public java.lang.Object getInInfoTable()
Returns the Input Info Table parameter of this tool . This parameter is the INFO table to which the item is to be added. This is a required parameter.

Returns:
the Input Info Table

setInInfoTable

public void setInInfoTable(java.lang.Object inInfoTable)
Sets the Input Info Table parameter of this tool . This parameter is the INFO table to which the item is to be added. This is a required parameter.

Parameters:
inInfoTable - the INFO table to which the item is to be added.

getOutInfoTable

public java.lang.Object getOutInfoTable()
Returns the Output Info Table parameter of this tool . This parameter is the INFO table to be created. This is a required parameter.

Returns:
the Output Info Table

setOutInfoTable

public void setOutInfoTable(java.lang.Object outInfoTable)
Sets the Output Info Table parameter of this tool . This parameter is the INFO table to be created. This is a required parameter.

Parameters:
outInfoTable - the INFO table to be created.

getItemName

public java.lang.String getItemName()
Returns the Item Name parameter of this tool . This parameter is the new item to be added to the INFO table. This is a required parameter.

Returns:
the Item Name

setItemName

public void setItemName(java.lang.String itemName)
Sets the Item Name parameter of this tool . This parameter is the new item to be added to the INFO table. This is a required parameter.

Parameters:
itemName - the new item to be added to the INFO table.

getItemWidth

public int getItemWidth()
Returns the Item Width parameter of this tool . This parameter is the INFO width of the added item. Supported widths: This is a required parameter.

Returns:
the Item Width

setItemWidth

public void setItemWidth(int itemWidth)
Sets the Item Width parameter of this tool . This parameter is the INFO width of the added item. Supported widths: This is a required parameter.

Parameters:
itemWidth - the INFO width of the added item. Supported widths:

getOutputWidth

public int getOutputWidth()
Returns the Output Width parameter of this tool . This parameter is the output width of the added item. This is the number of characters used to display an item value. for example, in a 2-byte integer (item type BINARY), values can be as high as 32767, which requires five characters for display. Dates can be displayed using eight (mm/dd/yy) or ten (mm/dd/yyyy) characters. For international date displays, months and days can be switched (for example, dd/mm/yy). This is a required parameter.

Returns:
the Output Width

setOutputWidth

public void setOutputWidth(int outputWidth)
Sets the Output Width parameter of this tool . This parameter is the output width of the added item. This is the number of characters used to display an item value. for example, in a 2-byte integer (item type BINARY), values can be as high as 32767, which requires five characters for display. Dates can be displayed using eight (mm/dd/yy) or ten (mm/dd/yyyy) characters. For international date displays, months and days can be switched (for example, dd/mm/yy). This is a required parameter.

Parameters:
outputWidth - the output width of the added item. This is the number of characters used to display an item value. for example, in a 2-byte integer (item type BINARY), values can be as high as 32767, which requires five characters for display. Dates can be displayed using eight (mm/dd/yy) or ten (mm/dd/yyyy) characters. For international date displays, months and days can be switched (for example, dd/mm/yy).

getItemType

public java.lang.String getItemType()
Returns the Item Type parameter of this tool . This parameter is the INFO item type of the added item. This is a required parameter.

Returns:
the Item Type

setItemType

public void setItemType(java.lang.String itemType)
Sets the Item Type parameter of this tool . This parameter is the INFO item type of the added item. This is a required parameter.

Parameters:
itemType - the INFO item type of the added item.

getDecimalPlaces

public int getDecimalPlaces()
Returns the Decimal Places parameter of this tool . This parameter is the number of decimal places for the added item. This needs to be specified for INFO item types NUMERIC and FLOATING. This is an optional parameter.

Returns:
the Decimal Places

setDecimalPlaces

public void setDecimalPlaces(int decimalPlaces)
Sets the Decimal Places parameter of this tool . This parameter is the number of decimal places for the added item. This needs to be specified for INFO item types NUMERIC and FLOATING. This is an optional parameter.

Parameters:
decimalPlaces - the number of decimal places for the added item. This needs to be specified for INFO item types NUMERIC and FLOATING.

getStartItem

public java.lang.Object getStartItem()
Returns the Start Item parameter of this tool . This parameter is the item in the in_info_table after which the new item is to be added. The default start_item is the last item in the in_info_table. This is an optional parameter.

Returns:
the Start Item

setStartItem

public void setStartItem(java.lang.Object startItem)
Sets the Start Item parameter of this tool . This parameter is the item in the in_info_table after which the new item is to be added. The default start_item is the last item in the in_info_table. This is an optional parameter.

Parameters:
startItem - the item in the in_info_table after which the new item is to be added. The default start_item is the last item in the in_info_table.

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