org.specrunner.util.xom
Class RowAdapter

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

public class RowAdapter
extends NodeHolder

A row abstraction.

Author:
Thiago Santos

Field Summary
protected  List<CellAdapter> cells
          List of row cells.
 
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
RowAdapter(nu.xom.Element node)
          The row element.
 
Method Summary
 CellAdapter getCell(int i)
          Get cell at a given index.
 List<CellAdapter> getCells()
          List of cells.
 int getCellsCount()
          Number of cells per row.
 String getXPath()
          The row XPath.
 
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

cells

protected List<CellAdapter> cells
List of row cells.

Constructor Detail

RowAdapter

public RowAdapter(nu.xom.Element node)
The row element.

Parameters:
node - The row.
Method Detail

getXPath

public String getXPath()
The row XPath.

Returns:
The rows XPath.

getCellsCount

public int getCellsCount()
Number of cells per row.

Returns:
Number of cells.

getCells

public List<CellAdapter> getCells()
List of cells.

Returns:
The list of cells.

getCell

public CellAdapter getCell(int i)
Get cell at a given index.

Parameters:
i - The index.
Returns:
A cell adapter.


Copyright © 2014. All rights reserved.