|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectdk.eobjects.metamodel.data.Row
public class Row
Represents a row of data in a DataSet. Each row is a mapping between SelectItems and values for each SelectItem.
DataSet,
SelectItem,
Serialized Form| Constructor Summary | |
|---|---|
Row(SelectItem[] items,
java.lang.Object[] values)
Constructs a row from an array of SelectItems and an array of corresponding values |
|
| Method Summary | |
|---|---|
protected Row |
clone()
|
boolean |
equals(java.lang.Object obj)
|
SelectItem[] |
getSelectItems()
|
Row |
getSubSelection(SelectItem[] selectItems)
Creates a row similar to this one but only with a subset of the select items |
java.lang.Object |
getValue(Column column)
Shorthand method for getting the value of a SelectItem based on the provided column. |
java.lang.Object |
getValue(int index)
Gets the value of the row at a given index |
java.lang.Object |
getValue(SelectItem item)
Gets the value of the provided SelectItem. |
java.lang.Object[] |
getValues()
|
int |
hashCode()
|
int |
indexOf(SelectItem item)
Gets the index of a SelectItem in the row. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Row(SelectItem[] items,
java.lang.Object[] values)
items - the array of SelectItemsvalues - the array of values| Method Detail |
|---|
public java.lang.Object getValue(SelectItem item)
item -
public java.lang.Object getValue(Column column)
column -
public int indexOf(SelectItem item)
item -
public java.lang.Object getValue(int index)
throws java.lang.ArrayIndexOutOfBoundsException
index -
java.lang.ArrayIndexOutOfBoundsException - if the provided index is out of rangepublic SelectItem[] getSelectItems()
public java.lang.Object[] getValues()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectprotected Row clone()
clone in class java.lang.Objectpublic Row getSubSelection(SelectItem[] selectItems)
selectItems -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||