|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geoprocessing.AbstractGPTool com.esri.arcgis.geoprocessing.tools.datamanagementtools.TransposeFields
public class TransposeFields
Shifts data entered in fields or columns into rows in a table or feature class. The Transpose Fields tool is contained in the Data Management Tools tool box.
Field Summary |
---|
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool |
---|
vals |
Constructor Summary | |
---|---|
TransposeFields()
Creates the Transpose Fields tool with defaults. |
|
TransposeFields(Object inTable,
Object inField,
Object outTable,
String inTransposedFieldName,
String inValueFieldName)
Creates the Transpose Fields tool with the required parameters. |
Method Summary | |
---|---|
Object |
getAttributeFields()
Returns the Attribute Fields parameter of this tool . |
Object |
getInField()
Returns the Fields To Transpose parameter of this tool . |
Object |
getInTable()
Returns the Input Table parameter of this tool . |
String |
getInTransposedFieldName()
Returns the Transposed Field parameter of this tool . |
String |
getInValueFieldName()
Returns the Value Field parameter of this tool . |
Object |
getOutTable()
Returns the Output Table 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 |
setAttributeFields(Object attributeFields)
Sets the Attribute Fields parameter of this tool . |
void |
setInField(Object inField)
Sets the Fields To Transpose parameter of this tool . |
void |
setInTable(Object inTable)
Sets the Input Table parameter of this tool . |
void |
setInTransposedFieldName(String inTransposedFieldName)
Sets the Transposed Field parameter of this tool . |
void |
setInValueFieldName(String inValueFieldName)
Sets the Value Field parameter of this tool . |
void |
setOutTable(Object outTable)
Sets the Output 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 |
---|
public TransposeFields()
Initializes the array of tool parameters with the default values specified when the tool was created.
public TransposeFields(Object inTable, Object inField, Object outTable, String inTransposedFieldName, String inValueFieldName)
Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other parameters.
inTable
- the input feature class or table for which the fields containing data values will be transposed.inField
- the fields or columns containing data values in the input table that need to be transposed. depending on your needs, you can select multiple fields that need to be transposed. For the fields that are selected to be transposed, a corresponding value has to be specified. By default, the value is the same as the field name. However, you can choose to overwrite it and specify your own value. For example, if the field names of the fields you want to transpose are Pop1991, Pop1992, etc., by default the values for these field will be the same i.e., Pop1991, Pop1992, etc. However, you can choose to specify your own values such as 1991, 1992, etc.outTable
- the output feature class or table. The output feature class can only be stored in a geodatabase. The output feature class or table will contain the transposed field, a value field, and any number of attribute fields specified that need to be inherited from the input table.inTransposedFieldName
- the name of the field that will be created to store field name values of the fields that are selected to be transposed. Any valid field name can be used.inValueFieldName
- the name of the value field that will be created to store the values from the input table. Any valid field name can be set, as long as it does not conflict with existing field names from the input table or feature class.Method Detail |
---|
public Object getInTable()
public void setInTable(Object inTable)
inTable
- the input feature class or table for which the fields containing data values will be transposed.public Object getInField()
public void setInField(Object inField)
inField
- the fields or columns containing data values in the input table that need to be transposed. depending on your needs, you can select multiple fields that need to be transposed. For the fields that are selected to be transposed, a corresponding value has to be specified. By default, the value is the same as the field name. However, you can choose to overwrite it and specify your own value. For example, if the field names of the fields you want to transpose are Pop1991, Pop1992, etc., by default the values for these field will be the same i.e., Pop1991, Pop1992, etc. However, you can choose to specify your own values such as 1991, 1992, etc.public Object getOutTable()
public void setOutTable(Object outTable)
outTable
- the output feature class or table. The output feature class can only be stored in a geodatabase. The output feature class or table will contain the transposed field, a value field, and any number of attribute fields specified that need to be inherited from the input table.public String getInTransposedFieldName()
public void setInTransposedFieldName(String inTransposedFieldName)
inTransposedFieldName
- the name of the field that will be created to store field name values of the fields that are selected to be transposed. Any valid field name can be used.public String getInValueFieldName()
public void setInValueFieldName(String inValueFieldName)
inValueFieldName
- the name of the value field that will be created to store the values from the input table. Any valid field name can be set, as long as it does not conflict with existing field names from the input table or feature class.public Object getAttributeFields()
public void setAttributeFields(Object attributeFields)
attributeFields
- attribute fields from the input table to be included in the output table. If you want to output a feature class, choose the Shape field.public String getToolName()
public String getToolboxName()
public String getToolboxAlias()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |