|
|||||||||
| 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 java.lang.String |
NULL_STRING
A string for "null" value. |
| Constructor Summary | |
|---|---|
Attribute(com.esri.arcgis.geodatabase.IField field,
int index,
java.lang.String value)
Instantiates an object of Attribute. |
|
Attribute(int index,
java.lang.String name,
int type,
java.lang.String value)
Instantiates an object of Attribute. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getIndex()
Gets the index of the attribute when retrieved from a feature. |
java.lang.String |
getName()
Gets the name of the attribute. |
int |
getType()
Gets the type of the attribute. |
java.lang.String |
getValue()
Gets the value of the attribute. |
java.util.Map<java.lang.String,java.lang.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 |
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(java.lang.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(java.lang.String value)
Sets the value of the attribute. |
void |
setValueList(java.util.Map<java.lang.String,java.lang.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 java.lang.String NULL_STRING
| Constructor Detail |
|---|
public Attribute(int index,
java.lang.String name,
int type,
java.lang.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,
java.lang.String value)
throws java.lang.Exception
field - the IField of the feature.index - the index of the fieldvalue - the field value as a string.
java.lang.Exception| Method Detail |
|---|
public java.lang.String getValue()
public void setValue(java.lang.String value)
value - The value to set.public java.util.Map<java.lang.String,java.lang.String> getValueList()
public void setValueList(java.util.Map<java.lang.String,java.lang.String> valueList)
valueList - The value list to set.public java.lang.String getName()
public int getType()
public int getIndex()
public void setIndex(int index)
index - The index to set.public void setName(java.lang.String name)
name - The name to set.public void setType(int type)
type - The type 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 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||