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

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

public class ConvertTimeField
extends AbstractGPTool

Converts time values stored in a string or numeric field to a date field. The tool allows you to pick the format in which your time values were recorded and converts those into a date format. The Convert Time 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
ConvertTimeField()
          Creates the Convert Time Field tool with defaults.
ConvertTimeField(java.lang.Object inTable, java.lang.Object inputTimeField, java.lang.String inputTimeFormat, java.lang.String outputTimeField)
          Creates the Convert Time Field tool with the required parameters.
 
Method Summary
 java.lang.Object getInputTimeField()
          Returns the Input Time Field parameter of this tool .
 java.lang.String getInputTimeFormat()
          Returns the Input Time Format parameter of this tool .
 java.lang.Object getInTable()
          Returns the Input Table parameter of this tool .
 java.lang.String getOutputTimeField()
          Returns the Output Time Field parameter of this tool .
 java.lang.Object getOutTable()
          Returns the Output Table 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 setInputTimeField(java.lang.Object inputTimeField)
          Sets the Input Time Field parameter of this tool .
 void setInputTimeFormat(java.lang.String inputTimeFormat)
          Sets the Input Time Format parameter of this tool .
 void setInTable(java.lang.Object inTable)
          Sets the Input Table parameter of this tool .
 void setOutputTimeField(java.lang.String outputTimeField)
          Sets the Output Time Field 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

ConvertTimeField

public ConvertTimeField()
Creates the Convert Time Field tool with defaults.

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


ConvertTimeField

public ConvertTimeField(java.lang.Object inTable,
                        java.lang.Object inputTimeField,
                        java.lang.String inputTimeFormat,
                        java.lang.String outputTimeField)
Creates the Convert Time 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 layer or table that contains the field containing the time values that need to be converted and stored in Date field.
inputTimeField - the field containing the time values. May be of type short, long, float, double, or text.
inputTimeFormat - the format in which the time values were stored. For example, the time values may have been stored in one of the standard formats such as yyyy/MM/dd HH:mm:ss or in a custom format such as dd/MM/yyyy HH:mm:ss. For the custom format, you can also specify the AM, PM designator.
outputTimeField - the name of output field. The output field created will be of type Date.
Method Detail

getInTable

public java.lang.Object getInTable()
Returns the Input Table parameter of this tool . This parameter is the layer or table that contains the field containing the time values that need to be converted and stored in Date field. 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 layer or table that contains the field containing the time values that need to be converted and stored in Date field. This is a required parameter.

Parameters:
inTable - the layer or table that contains the field containing the time values that need to be converted and stored in Date field.

getInputTimeField

public java.lang.Object getInputTimeField()
Returns the Input Time Field parameter of this tool . This parameter is the field containing the time values. May be of type short, long, float, double, or text. This is a required parameter.

Returns:
the Input Time Field

setInputTimeField

public void setInputTimeField(java.lang.Object inputTimeField)
Sets the Input Time Field parameter of this tool . This parameter is the field containing the time values. May be of type short, long, float, double, or text. This is a required parameter.

Parameters:
inputTimeField - the field containing the time values. May be of type short, long, float, double, or text.

getInputTimeFormat

public java.lang.String getInputTimeFormat()
Returns the Input Time Format parameter of this tool . This parameter is the format in which the time values were stored. For example, the time values may have been stored in one of the standard formats such as yyyy/MM/dd HH:mm:ss or in a custom format such as dd/MM/yyyy HH:mm:ss. For the custom format, you can also specify the AM, PM designator. This is a required parameter.

Returns:
the Input Time Format

setInputTimeFormat

public void setInputTimeFormat(java.lang.String inputTimeFormat)
Sets the Input Time Format parameter of this tool . This parameter is the format in which the time values were stored. For example, the time values may have been stored in one of the standard formats such as yyyy/MM/dd HH:mm:ss or in a custom format such as dd/MM/yyyy HH:mm:ss. For the custom format, you can also specify the AM, PM designator. This is a required parameter.

Parameters:
inputTimeFormat - the format in which the time values were stored. For example, the time values may have been stored in one of the standard formats such as yyyy/MM/dd HH:mm:ss or in a custom format such as dd/MM/yyyy HH:mm:ss. For the custom format, you can also specify the AM, PM designator.

getOutputTimeField

public java.lang.String getOutputTimeField()
Returns the Output Time Field parameter of this tool . This parameter is the name of output field. The output field created will be of type Date. This is a required parameter.

Returns:
the Output Time Field

setOutputTimeField

public void setOutputTimeField(java.lang.String outputTimeField)
Sets the Output Time Field parameter of this tool . This parameter is the name of output field. The output field created will be of type Date. This is a required parameter.

Parameters:
outputTimeField - the name of output field. The output field created will be of type Date.

getOutTable

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

Returns:
the Output 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