|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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.
| 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. |
String |
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. |
void |
setLength(int length)
Sets the length of the Field. |
String |
toString()
|
static boolean |
validFieldType(String esriFieldType)
To check a esriFieldType is valid or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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
public 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| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getName()
public String getAlias()
public String getFieldType()
public boolean isEditable()
public int getLength()
public void setLength(int length)
length - The length to set.public Domain getDomain()
public static Field fromJson(org.codehaus.jackson.JsonParser parser)
throws Exception
parser - the Jackson parser holding the JSON data.
Exceptionpublic static boolean validFieldType(String esriFieldType)
esriFieldType - eg: Constants.esriFieldTypeInteger
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||