|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.map.Field
public class 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.
Field Summary | |
---|---|
static int |
esriFieldTypeBlob
define an esri Blob field. |
static int |
esriFieldTypeDate
define an esri Date field. |
static int |
esriFieldTypeDouble
define an esri double field. |
static int |
esriFieldTypeGeometry
define an esri geometry field. |
static int |
esriFieldTypeGlobalID
define an esri Gloval ID field. |
static int |
esriFieldTypeGUID
define an esri GUID field. |
static int |
esriFieldTypeInteger
define an esri integer field. |
static int |
esriFieldTypeOID
define an esri Object ID field. |
static int |
esriFieldTypeRaster
define an esri Raster field. |
static int |
esriFieldTypeSingle
define an esri single field. |
static int |
esriFieldTypeSmallInteger
define an esri small integer field. |
static int |
esriFieldTypeString
define an esri String field. |
static int |
esriFieldTypeXML
define an esri Raster field. |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
static Field |
fromJson(org.codehaus.jackson.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. return -1 if it is not valid. |
static String |
toJson(Field field)
Serializing the Field object into Json String. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int esriFieldTypeInteger
public static final int esriFieldTypeSmallInteger
public static final int esriFieldTypeDouble
public static final int esriFieldTypeSingle
public static final int esriFieldTypeDate
public static final int esriFieldTypeString
public static final int esriFieldTypeGeometry
public static final int esriFieldTypeOID
public static final int esriFieldTypeBlob
public static final int esriFieldTypeGlobalID
public static final int esriFieldTypeGUID
public static final int esriFieldTypeRaster
public static final int esriFieldTypeXML
Constructor Detail |
---|
public Field()
public Field(String name, String alias, String type) throws Exception
name
- the name of the field.alias
- the alias of the field.type
- the data type.
Exception
- the exceptionpublic Field(String name, String alias, String type, Domain domain) throws Exception
name
- the name of the field.alias
- the alias of the field.type
- the data type.domain
- the domain of the field.
Exception
- the exceptionMethod Detail |
---|
public String getName()
public String toString()
toString
in class Object
public String getAlias()
public int getFieldType()
public boolean isEditable()
public boolean isNullable()
public int getLength()
public Domain getDomain()
public static Field fromJson(org.codehaus.jackson.JsonParser parser) throws Exception
parser
- the Jackson parser holding the JSON data.
Exception
- the exceptionpublic static String toJson(Field field) throws Exception
field
- a Field object.
Exception
- An exception thrown the object cannot be serialized into json string.public static int toFieldType(String esriFieldType)
esriFieldType
- eg: {esriFieldTypeInteger esriFieldTypeInteger, etc}
public static String toEsriFieldType(int esriFieldType)
esriFieldType
- constants integer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |