|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.doui.source.TabularData
@StableMinor(version="6.1", 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 |
---|
java.util.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(java.lang.Object key)
Delegates the call to the first row, or returns false if there is no first row. |
|
boolean |
containsValue(java.lang.Object value)
Delegates the call to the first row, or returns false if there is no first row. |
|
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
entrySet()
Delegates the call to the first row, or returns an empty set if there is no first row. |
|
java.lang.Object |
get(java.lang.Object key)
Delegates the call to the first row, or returns null if there is no first row. |
|
|
get(java.lang.Object key,
java.lang.Class<T> expectedClass)
Delegates the call to the first row, or returns null if there is no first row. |
|
java.util.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. |
|
java.util.Set<java.lang.String> |
keySet()
Delegates the call to the first row, or returns an empty set if there is no first row. |
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Delegates the call to the first row. |
|
void |
putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> t)
Delegates the call to the first row. |
|
java.lang.Object |
remove(java.lang.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(java.util.Comparator<ISourceData> comparator)
|
|
java.util.Collection<java.lang.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 java.util.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(java.util.Comparator<ISourceData> comparator)
public <T> T get(java.lang.Object key, java.lang.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 java.util.Map<java.lang.String,java.lang.Object>
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<java.lang.String,java.lang.Object>
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
entrySet
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map<java.lang.String,java.lang.Object>
public boolean isEmpty()
isEmpty
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.util.Set<java.lang.String> keySet()
keySet
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.lang.Object put(java.lang.String key, java.lang.Object value)
put
in interface java.util.Map<java.lang.String,java.lang.Object>
public void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> t)
putAll
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map<java.lang.String,java.lang.Object>
public int size()
size
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.util.Collection<java.lang.Object> values()
values
in interface java.util.Map<java.lang.String,java.lang.Object>
public TabularData clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |