com.esri.arcgis.util.dataset
Class AGSFields

java.lang.Object
  extended by com.esri.arcgis.util.dataset.AGSFields
All Implemented Interfaces:
Serializable

public class AGSFields
extends Object
implements Serializable

This object contains a collection of field names, field lengths, field type, and field precision properties.

See Also:
Serialized Form

Constructor Summary
AGSFields()
          Constructs an instance of a AGSFields object.
 
Method Summary
 int getCount()
          Returns a count of described fields in AGSFields.
 long getFieldLength(int index)
          Returns the length of the field at given index.
 String getFieldName(int index)
          Returns the name of a field at given index.
 long getFieldPrecision(int index)
          Returns the precision of the field at given index.
 String getFieldType(int index)
          Returns the type of field at given index.
 void setFieldLength(long fieldLength)
          Sets the length of the field with given value.
 void setFieldName(String fieldName)
          Sets the fields name with given string.
 void setFieldPrecision(int fieldPrecision)
          Sets the precision of a field with given value.
 void setFieldType(String fieldType)
          Sets the field type with given string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AGSFields

public AGSFields()
Constructs an instance of a AGSFields object.

AGSFields Field = new AGSFields();

Method Detail

getCount

public int getCount()
Returns a count of described fields in AGSFields.

int count = AGSFields.getCount();

Returns:
the count as an integer

getFieldName

public String getFieldName(int index)
Returns the name of a field at given index.

String fieldName = AGSFields.getFieldName(0);

Parameters:
index - the index number of the field in collection.
Returns:
the field name as string
See Also:
AGSFields.setFieldName(java.lang.String)

getFieldLength

public long getFieldLength(int index)
Returns the length of the field at given index.

long length = AGSFields.getFieldLength(0);

Parameters:
index - the index number of the field in collection.
Returns:
the length of the field.
See Also:
AGSFields.setFieldLength(long)

getFieldPrecision

public long getFieldPrecision(int index)
Returns the precision of the field at given index.

long precision = AGSFields.getFieldPrecision(0);

Parameters:
index - item in collection.
Returns:
long
See Also:
AGSFields.setFieldLength(long)

getFieldType

public String getFieldType(int index)
Returns the type of field at given index.

long fieldType = AGSFields.getFieldType(0);

Parameters:
index - the index number of the field in collection.
Returns:
the field type.
See Also:
AGSFields.setFieldType(java.lang.String)

setFieldLength

public void setFieldLength(long fieldLength)
Sets the length of the field with given value.

AGSFields.setFieldLength(2);

Parameters:
fieldLength - the field length.
See Also:
AGSFields.getFieldLength(int)

setFieldName

public void setFieldName(String fieldName)
Sets the fields name with given string.

AGSFields.setFieldName("Name");

Parameters:
fieldName - the name of the field.
See Also:
AGSFields.getFieldName(int)

setFieldPrecision

public void setFieldPrecision(int fieldPrecision)
Sets the precision of a field with given value.

AGSFields.setFieldPrecision(

Parameters:
fieldPrecision - the fields precision value.
See Also:
AGSFields.getFieldPrecision(int)

setFieldType

public void setFieldType(String fieldType)
Sets the field type with given string.

AGSFields.setFieldType("9");

Parameters:
fieldType - the fields type definition string.
See Also:
AGSFields.getFieldType(int)