Packagecom.esri.aws.services
Classpublic class FieldDesc

Contains the complete description of the field. By default, all the field values in RowData are returned as strings. FieldDesc contains information that is needed to convert the string value back to its original type. For example, the value of name for Distance is returned as "12.3". To convert this value to its actual type, use the values of FieldDesc's length (for example 4), type (for example Float), and precision (for example 1). Output from Report and Spatial Query.



Public Properties
 PropertyDefined by
  length : int
The actual length of the field.
FieldDesc
  name : String
The name of the field.
FieldDesc
  precision : int
The number of digits after the decimal place.
FieldDesc
  shortDesc : String
The short description of the field.
FieldDesc
  type : String
The data type of the field.
FieldDesc
Public Methods
 MethodDefined by
  
toString():String
Returns the variable as "name : shortDesc".
FieldDesc
Property detail
lengthproperty
public var length:int

The actual length of the field. For example, the value "14.7" has a length of "4". The value of the length varies based on the values of type and precision.

nameproperty 
public var name:String

The name of the field.

precisionproperty 
public var precision:int

The number of digits after the decimal place. It is used with type "float". The values of type "integer" and "string" is "0".

shortDescproperty 
public var shortDesc:String

The short description of the field. The short description corresponds to the alias name in a custom spatial query service.

typeproperty 
public var type:String

The data type of the field. Possible values are "integer", "float", or "string". Report Web Service (but not Spatial Query or Utility) can also return "count" (integer), "pct" (integer with "%"), "ratio" (double rounded to one decimal place), or "dollar" (double usually rounded to closest whole number).

Method detail
toString()method
public function toString():String

Returns the variable as "name : shortDesc".

Returns
String