java.lang.Object | |
↳ | com.esri.core.map.Field |
The Field
class represents a field of a feature layer. It includes name, alias, type and domain
information of the field. Domain is optional.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | esriFieldTypeBlob | define an esri Blob field. | |||||||||
int | esriFieldTypeDate | define an esri Date field. | |||||||||
int | esriFieldTypeDouble | define an esri double field. | |||||||||
int | esriFieldTypeGUID | define an esri GUID field. | |||||||||
int | esriFieldTypeGeometry | define an esri geometry field. | |||||||||
int | esriFieldTypeGlobalID | define an esri Gloval ID field. | |||||||||
int | esriFieldTypeInteger | define an esri integer field. | |||||||||
int | esriFieldTypeOID | define an esri Object ID field. | |||||||||
int | esriFieldTypeRaster | define an esri Raster field. | |||||||||
int | esriFieldTypeSingle | define an esri single field. | |||||||||
int | esriFieldTypeSmallInteger | define an esri small integer field. | |||||||||
int | esriFieldTypeString | define an esri String field. | |||||||||
int | esriFieldTypeXML | define an esri Raster field. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Field()
Instantiates an empty Field.
| |||||||||||
Field(String name, String alias, String type)
Instantiates a Field with the given values.
| |||||||||||
Field(String name, String alias, String type, Domain domain)
Instantiates a Field with the given values.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static Field |
fromJson(JsonParser parser)
Decodes objects from JSON representation.
| ||||||||||
String |
getAlias()
Gets the alias of the Field.
| ||||||||||
Domain |
getDomain()
Gets the domain of the Field.
| ||||||||||
int |
getFieldType()
Gets the type of the Field.
| ||||||||||
int |
getLength()
Gets the length of the Field.
| ||||||||||
String |
getName()
Gets the name of the Field.
| ||||||||||
boolean |
isEditable()
Gets the editable of the Field.
| ||||||||||
boolean | isNullable() | ||||||||||
static String |
toEsriFieldType(int esriFieldType)
Returns the String representation for the given field integer constant.
| ||||||||||
static int |
toFieldType(String esriFieldType)
Return the integer constant for the given field string type.
| ||||||||||
static String |
toJson(Field field)
Serializing the Field object into Json String.
| ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
define an esri Blob field.
define an esri Date field.
define an esri double field.
define an esri GUID field.
define an esri geometry field.
define an esri Gloval ID field.
define an esri integer field.
define an esri Object ID field.
define an esri Raster field.
define an esri single field.
define an esri small integer field.
define an esri String field.
define an esri Raster field.
Instantiates an empty Field.
Instantiates a Field with the given values.
name | the name of the field. |
---|---|
alias | the alias of the field. |
type | the data type. |
Exception | the exception |
---|
Instantiates a Field with the given values.
name | the name of the field. |
---|---|
alias | the alias of the field. |
type | the data type. |
domain | the domain of the field. |
Exception | the exception |
---|
Decodes objects from JSON representation.
parser | the Jackson parser holding the JSON data. |
---|
Exception | the exception |
---|
Gets the type of the Field.
Gets the length of the Field.
Gets the editable of the Field.
Returns the String representation for the given field integer constant.
esriFieldType | constants integer |
---|
Return the integer constant for the given field string type. return -1 if it is not valid.
esriFieldType | eg: {esriFieldTypeInteger esriFieldTypeInteger, etc} |
---|
Serializing the Field object into Json String.
field | a Field object. |
---|
Exception | An exception thrown the object cannot be serialized into json string. |
---|