|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dhtmlx.connector.DataItem
public class DataItem
The Class DataItem. Wrapper around the fetched data. Controls how the data transforms into the xml string.
Field Summary | |
---|---|
protected DataConfig |
config
The config. |
protected java.util.HashMap<java.lang.String,java.lang.String> |
data
The hash of data. |
protected int |
index
The index of record. |
protected boolean |
skip
The skip flag. |
Constructor Summary | |
---|---|
DataItem(java.util.HashMap<java.lang.String,java.lang.String> data,
DataConfig config,
int index)
Instantiates a new data item. |
Method Summary | |
---|---|
java.lang.String |
get_id()
Gets the id of the record |
int |
get_index()
Gets the index of the record |
java.lang.String |
get_value(java.lang.String name)
Gets the value of the field |
void |
set_id(java.lang.String value)
Sets the new id for the record |
void |
set_value(java.lang.String name,
java.lang.String value)
Sets value of the field |
void |
skip()
Mark current record to be skipped ( not included in xml response ) |
void |
to_xml_end(java.lang.StringBuffer out)
Ending part of xml representation. |
void |
to_xml_start(java.lang.StringBuffer out)
Starting part of xml representation |
void |
to_xml(java.lang.StringBuffer out)
Convert data item to xml representation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap<java.lang.String,java.lang.String> data
protected DataConfig config
protected int index
protected boolean skip
Constructor Detail |
---|
public DataItem(java.util.HashMap<java.lang.String,java.lang.String> data, DataConfig config, int index)
data
- the hash of dataconfig
- the configindex
- the index of recordMethod Detail |
---|
public java.lang.String get_value(java.lang.String name)
name
- the name of the field
public void set_value(java.lang.String name, java.lang.String value)
name
- the name of the fieldvalue
- the value of the fieldpublic java.lang.String get_id()
public void set_id(java.lang.String value)
value
- the new id for the recordpublic int get_index()
public void skip()
public void to_xml(java.lang.StringBuffer out)
out
- the output bufferpublic void to_xml_start(java.lang.StringBuffer out)
out
- the output bufferpublic void to_xml_end(java.lang.StringBuffer out)
out
- the output buffer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |