com.esri.arcgis.geoprocessing.tools.networkanalysttools
Class AddFieldToAnalysisLayer

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

public class AddFieldToAnalysisLayer
extends AbstractGPTool

Adds a field to a network analysis layer. The Add Field to Analysis Layer tool is contained in the Network Analyst Tools tool box.

Software restrictions: none

Usage tips:


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
Constructor Summary
AddFieldToAnalysisLayer()
          Creates the Add Field to Analysis Layer tool with defaults.
AddFieldToAnalysisLayer(Object inNetworkAnalysisLayer, String subLayer, String fieldName, String fieldType)
          Creates the Add Field to Analysis Layer tool with the required parameters.
 
Method Summary
 String getFieldAlias()
          Returns the Field alias parameter of this tool .
 String getFieldIsNullable()
          Returns the Field IsNullable parameter of this tool .
 int getFieldLength()
          Returns the Field length parameter of this tool .
 String getFieldName()
          Returns the Field name parameter of this tool .
 int getFieldPrecision()
          Returns the Field precision parameter of this tool .
 int getFieldScale()
          Returns the Field scale parameter of this tool .
 String getFieldType()
          Returns the Field type parameter of this tool .
 Object getInNetworkAnalysisLayer()
          Returns the Input network analysis layer parameter of this tool .
 Object getOutputLayer()
          Returns the Network Analyst Layer parameter of this tool (Read only).
 String getSubLayer()
          Returns the Sub layer parameter of this tool .
 String getToolboxAlias()
          Returns the alias of the tool box containing this tool.
 String getToolboxName()
          Returns the name of the tool box containing this tool.
 String getToolName()
          Returns the name of this tool.
 void setFieldAlias(String fieldAlias)
          Sets the Field alias parameter of this tool .
 void setFieldIsNullable(String fieldIsNullable)
          Sets the Field IsNullable parameter of this tool .
 void setFieldLength(int fieldLength)
          Sets the Field length parameter of this tool .
 void setFieldName(String fieldName)
          Sets the Field name parameter of this tool .
 void setFieldPrecision(int fieldPrecision)
          Sets the Field precision parameter of this tool .
 void setFieldScale(int fieldScale)
          Sets the Field scale parameter of this tool .
 void setFieldType(String fieldType)
          Sets the Field type parameter of this tool .
 void setInNetworkAnalysisLayer(Object inNetworkAnalysisLayer)
          Sets the Input network analysis layer parameter of this tool .
 void setSubLayer(String subLayer)
          Sets the Sub layer 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

AddFieldToAnalysisLayer

public AddFieldToAnalysisLayer()
Creates the Add Field to Analysis Layer tool with defaults.

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


AddFieldToAnalysisLayer

public AddFieldToAnalysisLayer(Object inNetworkAnalysisLayer,
                               String subLayer,
                               String fieldName,
                               String fieldType)
Creates the Add Field to Analysis Layer 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:
inNetworkAnalysisLayer - Network Analyst Layer, network analysis layer to which new field will be added.
subLayer - String, add new field to the selected sublayer of the input network analysis layer.
fieldName - String, the name of the field that will be added to the specified sub layer of the input network analysis layer.
fieldType - String, the field type used in the creation of the new field.
Method Detail

getInNetworkAnalysisLayer

public Object getInNetworkAnalysisLayer()
Returns the Input network analysis layer parameter of this tool . This parameter is Network Analyst Layer, network analysis layer to which new field will be added. This is a required parameter.

Returns:
the Input network analysis layer

setInNetworkAnalysisLayer

public void setInNetworkAnalysisLayer(Object inNetworkAnalysisLayer)
Sets the Input network analysis layer parameter of this tool . This parameter is Network Analyst Layer, network analysis layer to which new field will be added. This is a required parameter.

Parameters:
inNetworkAnalysisLayer - Network Analyst Layer, network analysis layer to which new field will be added.

getSubLayer

public String getSubLayer()
Returns the Sub layer parameter of this tool . This parameter is String, add new field to the selected sublayer of the input network analysis layer. This is a required parameter.

Returns:
the Sub layer

setSubLayer

public void setSubLayer(String subLayer)
Sets the Sub layer parameter of this tool . This parameter is String, add new field to the selected sublayer of the input network analysis layer. This is a required parameter.

Parameters:
subLayer - String, add new field to the selected sublayer of the input network analysis layer.

getFieldName

public String getFieldName()
Returns the Field name parameter of this tool . This parameter is String, the name of the field that will be added to the specified sub layer of the input network analysis layer. This is a required parameter.

Returns:
the Field name

setFieldName

public void setFieldName(String fieldName)
Sets the Field name parameter of this tool . This parameter is String, the name of the field that will be added to the specified sub layer of the input network analysis layer. This is a required parameter.

Parameters:
fieldName - String, the name of the field that will be added to the specified sub layer of the input network analysis layer.

getFieldType

public String getFieldType()
Returns the Field type parameter of this tool . This parameter is String, the field type used in the creation of the new field. This is a required parameter.

Returns:
the Field type

setFieldType

public void setFieldType(String fieldType)
Sets the Field type parameter of this tool . This parameter is String, the field type used in the creation of the new field. This is a required parameter.

Parameters:
fieldType - String, the field type used in the creation of the new field.

getFieldPrecision

public int getFieldPrecision()
Returns the Field precision parameter of this tool . This parameter is Long, describes the number of digits that can be stored in the field. All digits are counted no matter what side of the decimal they are on. This is only valid for numeric field types. This is an optional parameter.

Returns:
the Field precision

setFieldPrecision

public void setFieldPrecision(int fieldPrecision)
Sets the Field precision parameter of this tool . This parameter is Long, describes the number of digits that can be stored in the field. All digits are counted no matter what side of the decimal they are on. This is only valid for numeric field types. This is an optional parameter.

Parameters:
fieldPrecision - Long, describes the number of digits that can be stored in the field. All digits are counted no matter what side of the decimal they are on. This is only valid for numeric field types.

getFieldScale

public int getFieldScale()
Returns the Field scale parameter of this tool . This parameter is Long, sets the number of decimal places stored in a field. This parameter is only used in Float and Double data field types. This is an optional parameter.

Returns:
the Field scale

setFieldScale

public void setFieldScale(int fieldScale)
Sets the Field scale parameter of this tool . This parameter is Long, sets the number of decimal places stored in a field. This parameter is only used in Float and Double data field types. This is an optional parameter.

Parameters:
fieldScale - Long, sets the number of decimal places stored in a field. This parameter is only used in Float and Double data field types.

getFieldLength

public int getFieldLength()
Returns the Field length parameter of this tool . This parameter is Long, the length of the field being added. This sets the maximum number of allowable characters for each record of the field. This option is only applicable on fields of type text or blob. This is an optional parameter.

Returns:
the Field length

setFieldLength

public void setFieldLength(int fieldLength)
Sets the Field length parameter of this tool . This parameter is Long, the length of the field being added. This sets the maximum number of allowable characters for each record of the field. This option is only applicable on fields of type text or blob. This is an optional parameter.

Parameters:
fieldLength - Long, the length of the field being added. This sets the maximum number of allowable characters for each record of the field. This option is only applicable on fields of type text or blob.

getFieldAlias

public String getFieldAlias()
Returns the Field alias parameter of this tool . This parameter is String, the alternate name given to the field name. This name is used to give more descriptive names to cryptic field names. The field alias parameter only applies to geodatabases and coverages. This is an optional parameter.

Returns:
the Field alias

setFieldAlias

public void setFieldAlias(String fieldAlias)
Sets the Field alias parameter of this tool . This parameter is String, the alternate name given to the field name. This name is used to give more descriptive names to cryptic field names. The field alias parameter only applies to geodatabases and coverages. This is an optional parameter.

Parameters:
fieldAlias - String, the alternate name given to the field name. This name is used to give more descriptive names to cryptic field names. The field alias parameter only applies to geodatabases and coverages.

getFieldIsNullable

public String getFieldIsNullable()
Returns the Field IsNullable parameter of this tool . This parameter is String, a geographic feature for which there is no associated attribute information. These are different from zero or empty fields and are only supported for fields in a geodatabase. This is an optional parameter.

Returns:
the Field IsNullable

setFieldIsNullable

public void setFieldIsNullable(String fieldIsNullable)
Sets the Field IsNullable parameter of this tool . This parameter is String, a geographic feature for which there is no associated attribute information. These are different from zero or empty fields and are only supported for fields in a geodatabase. This is an optional parameter.

Parameters:
fieldIsNullable - String, a geographic feature for which there is no associated attribute information. These are different from zero or empty fields and are only supported for fields in a geodatabase.

getOutputLayer

public Object getOutputLayer()
Returns the Network Analyst Layer parameter of this tool (Read only). This is an derived parameter.

Returns:
the Network Analyst Layer

getToolName

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

Returns:
the tool name

getToolboxName

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

Returns:
the tool box name

getToolboxAlias

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

Returns:
the tool box alias