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 NotNodenot(AbstractOperatorNode node)Instantiate a newNotNodeusing the given value.static StringValueNodevalue(String value)Instantiate a newStringValueNodeusing the given value.static DateValueNodevalue(Date value)Instantiate a newDateValueNodeusing the given value.static EntityReferenceNodevalue(EntityReference value)Instantiate a newEntityReferenceNodeusing the given value.static PropertyValueNodevalue(EventProperty property)Instantiate a newPropertyValueNodeusing the given property.
-
-
-
Method Detail
-
value
public static PropertyValueNode value(EventProperty property)
Instantiate a newPropertyValueNodeusing the given property.- Parameters:
property- the value of the node- Returns:
- the generated
PropertyValueNode
-
value
public static StringValueNode value(String value)
Instantiate a newStringValueNodeusing the given value.- Parameters:
value- the value of the node- Returns:
- the generated
StringValueNode
-
value
public static DateValueNode value(Date value)
Instantiate a newDateValueNodeusing the given value.- Parameters:
value- the value of the node- Returns:
- the generated
DateValueNode
-
value
public static EntityReferenceNode value(EntityReference value)
Instantiate a newEntityReferenceNodeusing 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 newNotNodeusing the given value.- Parameters:
node- the operator wrapped by the not node- Returns:
- the generated
NotNode
-
-