Feature

public class Feature implements IJSONStore

Fields

mAttachments

protected Map<String, AttachItem> mAttachments

mFieldValues

protected List<Object> mFieldValues

mFields

protected List<Field> mFields

mGeometry

protected GeoGeometry mGeometry

mId

protected long mId

Constructors

Feature

public Feature()

Feature

public Feature(long id, List<Field> fields)

Feature

public Feature(Feature other)

Methods

addAttachment

public void addAttachment(AttachItem item)

addAttachments

public void addAttachments(Map<String, AttachItem> attachments)

clearAttachments

public void clearAttachments()

equals

public boolean equals(Object o)

equalsAttachments

public boolean equalsAttachments(Feature f)

equalsData

public boolean equalsData(Feature f)

fromCursor

public void fromCursor(Cursor cursor)

fromJSON

public void fromJSON(JSONObject jsonObject)

getAttachments

public Map<String, AttachItem> getAttachments()

getContentValues

public ContentValues getContentValues(boolean withId)

getFieldValue

public Object getFieldValue(int index)

getFieldValue

public Object getFieldValue(String fieldName)

getFieldValueAsInteger

public int getFieldValueAsInteger(String fieldName)

getFieldValueAsInteger

public int getFieldValueAsInteger(int index)

getFieldValueAsString

public String getFieldValueAsString(String fieldName)

getFieldValueAsString

public String getFieldValueAsString(int index)

getFieldValueIndex

public int getFieldValueIndex(String fieldName)

getFieldValues

public List<Object> getFieldValues()

getFields

public List<Field> getFields()

getGeometry

public GeoGeometry getGeometry()

getId

public long getId()

getMaxAttachId

public long getMaxAttachId()

isValuePresent

public boolean isValuePresent(int index)

setFieldValue

public boolean setFieldValue(int index, Object value)

setFieldValue

public boolean setFieldValue(String fieldName, Object value)

setGeometry

public void setGeometry(GeoGeometry geometry)

setId

public void setId(long id)

toJSON

public JSONObject toJSON()