|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.doui.source.TabularData
@StableMinor(version="5.5", sinceVersion="4.0") public class TabularData
Represents tabular data, through a set of ISourceData elements
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
TabularData()
Creates a new tabular data without any source association. |
|
TabularData(Source source)
Creates a new tabular data associated with the given source. |
Method Summary | ||
---|---|---|
ISourceData |
addRow()
Adds a row in this tabular data. |
|
void |
clear()
Removes all rows in this tabular data. |
|
TabularData |
clone()
|
|
boolean |
containsKey(Object key)
Delegates the call to the first row, or returns false if there is no first row. |
|
boolean |
containsValue(Object value)
Delegates the call to the first row, or returns false if there is no first row. |
|
Set<Map.Entry<String,Object>> |
entrySet()
Delegates the call to the first row, or returns an empty set if there is no first row. |
|
Object |
get(Object key)
Delegates the call to the first row, or returns null if there is no first row. |
|
|
get(Object key,
Class<T> expectedClass)
Delegates the call to the first row, or returns null if there is no first row. |
|
List<ISourceData> |
getRows()
Returns the rows in this tabular data. |
|
int |
getTotalRows()
|
|
boolean |
isEmpty()
Returns true if this tabular data has no row, false otherwise. |
|
Set<String> |
keySet()
Delegates the call to the first row, or returns an empty set if there is no first row. |
|
Object |
put(String key,
Object value)
Delegates the call to the first row. |
|
void |
putAll(Map<? extends String,? extends Object> t)
Delegates the call to the first row. |
|
Object |
remove(Object key)
Delegates the call to the first row or returns null if there is no row. |
|
void |
setTotalRows(int totalRows)
|
|
int |
size()
Returns the number of rows in this tabular data. |
|
void |
sort(Comparator<ISourceData> comparator)
|
|
Collection<Object> |
values()
Delegates the call to the first row, or returns an empty set if there is no first row. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public TabularData()
public TabularData(Source source)
source
- the source.Method Detail |
---|
public List<ISourceData> getRows()
addRow()
instead of calling directly the list
add method.
public ISourceData addRow()
public int getTotalRows()
public void setTotalRows(int totalRows)
public void sort(Comparator<ISourceData> comparator)
public <T> T get(Object key, Class<T> expectedClass)
get
in interface ISourceData
T
- the expected class.key
- the data entry key.expectedClass
- the expected class.
public void clear()
clear
in interface Map<String,Object>
public boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
public boolean containsValue(Object value)
containsValue
in interface Map<String,Object>
public Set<Map.Entry<String,Object>> entrySet()
entrySet
in interface Map<String,Object>
public Object get(Object key)
get
in interface Map<String,Object>
public boolean isEmpty()
isEmpty
in interface Map<String,Object>
public Set<String> keySet()
keySet
in interface Map<String,Object>
public Object put(String key, Object value)
put
in interface Map<String,Object>
public void putAll(Map<? extends String,? extends Object> t)
putAll
in interface Map<String,Object>
public Object remove(Object key)
remove
in interface Map<String,Object>
public int size()
size
in interface Map<String,Object>
public Collection<Object> values()
values
in interface Map<String,Object>
public TabularData clone()
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |