org.specrunner.util.xom
Class TableAdapter

java.lang.Object
  extended by org.specrunner.util.xom.NodeHolder
      extended by org.specrunner.util.xom.TableAdapter
All Implemented Interfaces:
INodeHolder

public class TableAdapter
extends NodeHolder

A table adapter to encapsulate XOM API.

Author:
Thiago Santos

Field Summary
protected  List<CellAdapter> captions
          List of caption elements.
protected  List<RowAdapter> rows
          The list of rows.
 
Fields inherited from class org.specrunner.util.xom.NodeHolder
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
 List<CellAdapter> getCaptions()
          Get captions list.
 RowAdapter getRow(int i)
          The row given by that index.
 int getRowCount()
          The counter of rows.
 List<RowAdapter> getRows()
          The rows list.
 String getXPath()
          Gets the XPath for rows.
 
Methods inherited from class org.specrunner.util.xom.NodeHolder
append, attributeContains, attributeEquals, getArguments, getArguments, getAttribute, getAttribute, getComparator, getComparator, getConverter, getConverter, getNode, getObject, getObject, getQualifiedName, getValue, hasAttribute, hasName, prepend, removeAttribute, setAttribute, setNode, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

captions

protected List<CellAdapter> captions
List of caption elements.


rows

protected List<RowAdapter> rows
The list of rows.

Constructor Detail

TableAdapter

public TableAdapter(nu.xom.Element node)
The table element.

Parameters:
node - The table.
Method Detail

getXPath

public String getXPath()
Gets the XPath for rows.

Returns:
The rows XPath.

getCaptions

public List<CellAdapter> getCaptions()
Get captions list.

Returns:
The captions list.

getRowCount

public int getRowCount()
The counter of rows.

Returns:
The number of rows.

getRows

public List<RowAdapter> getRows()
The rows list.

Returns:
The rows list.

getRow

public RowAdapter getRow(int i)
The row given by that index.

Parameters:
i - The row index.
Returns:
The row.


Copyright © 2014. All rights reserved.