|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.util.xom.NodeHolder
org.specrunner.util.xom.TableAdapter
public class TableAdapter
A table adapter to encapsulate XOM API.
| Field Summary | |
|---|---|
protected List<CellAdapter> |
captions
List of caption elements. |
protected List<CellAdapter> |
cols
List of col elements. |
protected List<RowAdapter> |
rows
The list of rows. |
| Fields inherited from class org.specrunner.util.xom.NodeHolder |
|---|
attributeValue, node |
| Fields inherited from interface org.specrunner.util.xom.INodeHolder |
|---|
ATTRIBUTE_ARGUMENT_PREFIX, ATTRIBUTE_COMPARATOR, ATTRIBUTE_CONVERTER, ATTRIBUTE_EVALUATION, ATTRIBUTE_PROPERTY, ATTRIBUTE_VALUE |
| Constructor Summary | |
|---|---|
TableAdapter(nu.xom.Element node)
The table element. |
|
| Method Summary | |
|---|---|
CellAdapter |
getCaption(int i)
The caption given by that index. |
List<CellAdapter> |
getCaptions()
Get captions list. |
int |
getCaptionsCount()
The counter of captions. |
String |
getCaptionsXPath()
Gets the XPath for captions. |
CellAdapter |
getCol(int i)
The col given by that index. |
List<CellAdapter> |
getCols()
Get cols list. |
int |
getColsCount()
The counter of cols. |
String |
getColsXPath()
Gets the XPath for cols. |
RowAdapter |
getRow(int i)
The row given by that index. |
int |
getRowCount()
The counter of rows. |
List<RowAdapter> |
getRows()
The rows list. |
String |
getRowsXPath()
Gets the XPath for rows. |
void |
select(int fixedCols,
int colIndex,
int columnIndex,
int span)
Filter a table in range of columns. |
| Methods inherited from class org.specrunner.util.xom.NodeHolder |
|---|
append, append, attributeContains, attributeEquals, detach, getArguments, getArguments, getAttribute, getAttribute, getAttributeValue, getComparator, getComparator, getConverter, getConverter, getNode, getObject, getObject, getQualifiedName, getValue, hasAttribute, hasName, prepend, prepend, removeAttribute, setAttribute, setAttributeValue, setNode, setValue, toString, toXML |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected List<CellAdapter> cols
protected List<CellAdapter> captions
protected List<RowAdapter> rows
| Constructor Detail |
|---|
public TableAdapter(nu.xom.Element node)
node - The table.| Method Detail |
|---|
public int getColsCount()
public List<CellAdapter> getCols()
public String getColsXPath()
public CellAdapter getCol(int i)
i - The col index.
public int getCaptionsCount()
public List<CellAdapter> getCaptions()
public String getCaptionsXPath()
public CellAdapter getCaption(int i)
i - The caption index.
public int getRowCount()
public List<RowAdapter> getRows()
public String getRowsXPath()
public RowAdapter getRow(int i)
i - The row index.
public void select(int fixedCols,
int colIndex,
int columnIndex,
int span)
fixedCols - Fixed columns.colIndex - Col index.columnIndex - Columns index.span - Colspan.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||