ContentQuery Class
- public class ContentQuery
extends ContentQueryBase
A utility class to construct a content query string expression from a
<contentQuery> XML Element.
This will no longer always fill-out the expression with
user/request/session properties. If a PropertyProvider is supplied to
the constructor, the resulting expression will contain only literal values;
otherwise, the resulting expression will contain property references as
required and ExpressionHelper.realize() can be used.
Related Topics
ExpressionHelper
-
Hierarchy
-
Object
ContentQueryBase
ContentQuery
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentQuery
public ContentQuery()
ContentQuery
public ContentQuery(PropertyProvider
pp,
boolean doOnlyEventProperties)
- Constructor.
ContentQuery
public ContentQuery(PropertyProvider
pp)
createExpression(Element) Method
public String
createExpression(Element
root)
throws IllegalArgumentException
Return a String representing the expression rooted at the
passed in element.
Parameters
-
root
- The root Element <contentQuery> of an expression
Returns
- a string representing the query.
Exceptions
-
IllegalArgumentException
- if the content of the passed in XML
tree is invalid.
createExpressionTree(Element) Method
public Expression
createExpressionTree(Element
root)
throws IllegalArgumentException
Return the content Expression represeting the expression root at the
passed in element.
Exceptions
-
IllegalArgumentException
getCharacterData(Element) Method
public static String
getCharacterData(Element
e)
throws IllegalArgumentException
Exceptions
-
IllegalArgumentException
parse(InputSource) Method
public static Document
parse(InputSource
src)
throws SAXException
, IOException
Perform a non-validating parse on the specified input source.
Exceptions
-
SAXException
-
IOException