public class PageLayoutUtil
extends java.lang.Object
Constructor and Description |
---|
PageLayoutUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
constructXPathParams(java.lang.String xPathParamTemplate,
java.util.Collection<java.lang.String> paramValues)
This method constructs XPath parameters for the given multiple parameter values using the given
XPath parameter template.
|
static java.lang.String |
escapeSingleQuotes(java.lang.String strInput)
Escape the single quote characters by replacing each single quote with two single quotes.
|
public static java.lang.String constructXPathParams(java.lang.String xPathParamTemplate, java.util.Collection<java.lang.String> paramValues)
" or "
.xPathParamTemplate
- The given XPath parameter template, e.g. @deviceClass=''{0}''
.
This method uses MessageFormat.format(String, Object...)
to substitute the parameter value. Hence the
template has to be in a format supported by MessageFormat
.paramValues
- The collection of parameter values."@deviceClass='Mobile' or @deviceClass='Web' or @deviceClass='Any'"
public static java.lang.String escapeSingleQuotes(java.lang.String strInput)
strInput
- input string