|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.ags.data.edit.Attribute
public class Attribute
Defines a feature attribute. A feature attribute contains information about a field of a feature such as name, type and value.
Attribute att = new Attribute(index, name, esriFieldType.esriFieldTypeInteger, value); UpdateAttribute action = new UpdateAttribute(feature, att);
Field Summary | |
---|---|
static String |
NULL_STRING
A string for "null" value. |
Constructor Summary | |
---|---|
Attribute(com.esri.arcgis.geodatabase.IField field,
int index,
String value)
Instantiates an object of Attribute. |
|
Attribute(int index,
String name,
int type,
String value)
Instantiates an object of Attribute. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAlias()
Gets the alias of the Attribute. |
int |
getIndex()
Gets the index of the attribute when retrieved from a feature. |
String |
getName()
Gets the name of the attribute. |
int |
getType()
Gets the type of the attribute. |
String |
getValue()
Gets the value of the attribute. |
Map<String,String> |
getValueList()
Gets the available values of the Attribute. |
int |
hashCode()
|
boolean |
isDirty()
Returns true if the attribute is changed but has not been synch back to the associated feature. |
boolean |
isReadOnly()
Returns true if the attribute is read only. |
void |
setAlias(String alias)
Sets the alias of the Attribute. |
void |
setDirty(boolean dirty)
Sets to true if the attribute is changed but has not been synch back to the associated feature. |
void |
setIndex(int index)
Sets the index of the attribute when retrieved from a feature. |
void |
setName(String name)
Sets the name of the attribute. |
void |
setReadOnly(boolean readonly)
Sets to true if the attribute is read only. |
void |
setType(int type)
Sets the type of the attribute. |
void |
setValue(String value)
Sets the value of the attribute. |
void |
setValueList(Map<String,String> valueList)
Sets the available values of the Attribute. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String NULL_STRING
Constructor Detail |
---|
public Attribute(int index, String name, int type, String value)
index
- the index of the attribute when retrieved from a feature.value
- the value converted as a Stringname
- the name of the field.type
- the attribute type. It is an esriFieldType constant.public Attribute(com.esri.arcgis.geodatabase.IField field, int index, String value) throws Exception
field
- the IField of the feature.index
- the index of the fieldvalue
- the field value as a string.
Exception
Method Detail |
---|
public String getValue()
public void setValue(String value)
value
- The value to set.public Map<String,String> getValueList()
public void setValueList(Map<String,String> valueList)
valueList
- The value list to set.public String getName()
public int getType()
public int getIndex()
public void setIndex(int index)
index
- The index to set.public void setName(String name)
name
- The name to set.public void setType(int type)
type
- The type to set.public String getAlias()
public void setAlias(String alias)
alias
- The alias to set.public boolean isDirty()
public void setDirty(boolean dirty)
dirty
- Sets to true if the attribute is dirty.public boolean isReadOnly()
public void setReadOnly(boolean readonly)
readonly
- Sets to true if the attribute is read only.public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |