public class AGSFields
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
AGSFields()
Constructs an instance of a
AGSFields object. |
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Returns a count of described fields in
AGSFields . |
long |
getFieldLength(int index)
Returns the length of the field at given index.
|
java.lang.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.
|
java.lang.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(java.lang.String fieldName)
Sets the fields name with given string.
|
void |
setFieldPrecision(int fieldPrecision)
Sets the precision of a field with given value.
|
void |
setFieldType(java.lang.String fieldType)
Sets the field type with given string.
|
public AGSFields()
AGSFields
object.
AGSFields Field = new AGSFields();
public int getCount()
AGSFields
.
int count = AGSFields.getCount();
public java.lang.String getFieldName(int index)
String fieldName = AGSFields.getFieldName(0);
index
- the index number of the field in collection.AGSFields.setFieldName(java.lang.String)
public long getFieldLength(int index)
long length = AGSFields.getFieldLength(0);
index
- the index number of the field in collection.AGSFields.setFieldLength(long)
public long getFieldPrecision(int index)
long precision = AGSFields.getFieldPrecision(0);
index
- item in collection.AGSFields.setFieldLength(long)
public java.lang.String getFieldType(int index)
long fieldType = AGSFields.getFieldType(0);
index
- the index number of the field in collection.AGSFields.setFieldType(java.lang.String)
public void setFieldLength(long fieldLength)
AGSFields.setFieldLength(2);
fieldLength
- the field length.AGSFields.getFieldLength(int)
public void setFieldName(java.lang.String fieldName)
AGSFields.setFieldName("Name");
fieldName
- the name of the field.AGSFields.getFieldName(int)
public void setFieldPrecision(int fieldPrecision)
AGSFields.setFieldPrecision(
fieldPrecision
- the fields precision value.AGSFields.getFieldPrecision(int)
public void setFieldType(java.lang.String fieldType)
AGSFields.setFieldType("9");
fieldType
- the fields type definition string.AGSFields.getFieldType(int)