public final class QueryHelper extends Object
//element(*, ametys:object)[<predicates<>]| Modifier | Constructor and Description | 
|---|---|
private  | 
QueryHelper()  | 
| Modifier and Type | Method and Description | 
|---|---|
static String | 
getXPathQuery(String namePattern,
             String nodetype,
             Expression expression)
Creates the XPath query corresponding to specified  
Expression. | 
static String | 
getXPathQuery(String namePattern,
             String nodetype,
             Expression expression,
             SortCriteria sortCriteria)
Creates the XPath query corresponding to specified  
Expression and SortCriteria. | 
private QueryHelper()
public static String getXPathQuery(String namePattern, String nodetype, Expression expression, SortCriteria sortCriteria)
Expression and SortCriteria.namePattern - a pattern for the name of the resulting nodes. May be null, which is equivalent to '*'nodetype - the base nodetype for the query. May be null, which is equivalent to ametys:objectexpression - the query predicatessortCriteria - criteria for sorting resultspublic static String getXPathQuery(String namePattern, String nodetype, Expression expression)
Expression.namePattern - a pattern for the name of the resulting nodes. May be null, which is equivalent to '*'nodetype - the base nodetype for the query. May be null, which is equivalent to 'ametys:object'expression - the query predicates