Class ExpressionBuilder
- java.lang.Object
-
- org.xwiki.notifications.filters.expression.generics.ExpressionBuilder
-
public final class ExpressionBuilder extends Object
Class used to give a couple of helper methods in order to create a filtering expression.- Since:
- 9.8RC1
- Version:
- $Id: e391e9f34fc8a7d6aa60c44381e04e1aacf1f358 $
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NotNode
not(AbstractOperatorNode node)
Instantiate a newNotNode
using the given value.static StringValueNode
value(String value)
Instantiate a newStringValueNode
using the given value.static DateValueNode
value(Date value)
Instantiate a newDateValueNode
using the given value.static EntityReferenceNode
value(EntityReference value)
Instantiate a newEntityReferenceNode
using the given value.static PropertyValueNode
value(EventProperty property)
Instantiate a newPropertyValueNode
using the given property.
-
-
-
Method Detail
-
value
public static PropertyValueNode value(EventProperty property)
Instantiate a newPropertyValueNode
using the given property.- Parameters:
property
- the value of the node- Returns:
- the generated
PropertyValueNode
-
value
public static StringValueNode value(String value)
Instantiate a newStringValueNode
using the given value.- Parameters:
value
- the value of the node- Returns:
- the generated
StringValueNode
-
value
public static DateValueNode value(Date value)
Instantiate a newDateValueNode
using the given value.- Parameters:
value
- the value of the node- Returns:
- the generated
DateValueNode
-
value
public static EntityReferenceNode value(EntityReference value)
Instantiate a newEntityReferenceNode
using the given value.- Parameters:
value
- the value of the node- Returns:
- the generated
EntityReferenceNode
- Since:
- 10.5RC1, 9.11.6
-
not
public static NotNode not(AbstractOperatorNode node)
Instantiate a newNotNode
using the given value.- Parameters:
node
- the operator wrapped by the not node- Returns:
- the generated
NotNode
-
-