|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.shared.web.test.XPathExpressionUtil
public class XPathExpressionUtil
Utility class for creating xpath expressions
| Field Summary | |
|---|---|
static java.lang.String |
ANCHOR
|
static java.lang.String |
AND
|
static java.lang.String |
CONTAINS
|
static java.lang.String |
CURRENT_NODE
|
static java.lang.String |
ELEMENT_ANY_LEVEL
|
static java.lang.String |
END_NODE_TEST
|
static java.lang.String |
GRANDPARENT_NODE
|
static java.lang.String |
IMG
|
static java.lang.String |
LINE
|
static java.lang.String |
LIST
|
static java.lang.String |
PARENT_NODE
|
static java.lang.String |
START_NODE_TEST
|
static java.lang.String |
TABLE_COLUMN
|
static java.lang.String |
TABLE_ROW
|
| Constructor Summary | |
|---|---|
XPathExpressionUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getColumnElement(java.lang.String element,
int elementIndex,
java.lang.String[] columnValues)
expression for acquiring an element in one of the table columns |
static java.lang.String |
getColumnElement(java.lang.String element,
int elementIndex,
java.lang.String elementValue,
java.lang.String[] columnValues)
expression for acquiring an element in one of the table columns |
static java.lang.String |
getImgColumnElement(java.lang.String element,
int elementIndex,
java.lang.String imageName,
java.lang.String[] columnValues)
expression for acquiring an element in one of the table columns |
static java.lang.String |
getList(java.lang.String[] values)
|
static java.lang.String |
getTableRow(java.lang.String[] columnValues)
expression for acquiring the table row that matches all column values with the same order as the list |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONTAINS
public static final java.lang.String AND
public static final java.lang.String CURRENT_NODE
public static final java.lang.String PARENT_NODE
public static final java.lang.String GRANDPARENT_NODE
public static final java.lang.String ELEMENT_ANY_LEVEL
public static final java.lang.String TABLE_COLUMN
public static final java.lang.String TABLE_ROW
public static final java.lang.String START_NODE_TEST
public static final java.lang.String END_NODE_TEST
public static final java.lang.String ANCHOR
public static final java.lang.String IMG
public static final java.lang.String LIST
public static final java.lang.String LINE
| Constructor Detail |
|---|
public XPathExpressionUtil()
| Method Detail |
|---|
public static java.lang.String getList(java.lang.String[] values)
public static java.lang.String getColumnElement(java.lang.String element,
int elementIndex,
java.lang.String[] columnValues)
element - the node elementelementIndex - column index of the element, used for skippingcolumnValues - the values to be matched in each column, element column is included
public static java.lang.String getColumnElement(java.lang.String element,
int elementIndex,
java.lang.String elementValue,
java.lang.String[] columnValues)
element - the node elementelementIndex - column index of the element, used for skippingelementValue - the matched element valuecolumnValues - the values to be matched in each column, element column is included
public static java.lang.String getImgColumnElement(java.lang.String element,
int elementIndex,
java.lang.String imageName,
java.lang.String[] columnValues)
element - the node elementelementIndex - column index of the element, used for skippingimageName - the matched image namecolumnValues - the values to be matched in each column, element column is included
public static java.lang.String getTableRow(java.lang.String[] columnValues)
columnValues - the matched list of columnValues
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||