Class Conditionals
java.lang.Object
com.broadleafcommerce.metadata.dsl.core.utils.Conditionals
Utility class with helpers for creating
Conditional.- Author:
- Nick Crum (ncrum)
-
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultLogicalConditionaland(Conditional<?>... conditionals) Creates a new logical-and conditional for the provided conditionals.static DefaultLogicalConditionaland(List<Conditional<?>> conditionals) Creates a new logical-and conditional for the provided conditionals.static DefaultLogicalConditionalnot(Conditional<?>... conditionals) Creates a new logical-not conditional for the provided conditionals.static DefaultLogicalConditionalnot(List<Conditional<?>> conditionals) Creates a new logical-not conditional for the provided conditionals.static DefaultLogicalConditionalor(Conditional<?>... conditionals) Creates a new logical-or conditional for the provided conditionals.static DefaultLogicalConditionalor(List<Conditional<?>> conditionals) Creates a new logical-or conditional for the provided conditionals.static DefaultPropertyConditionalCreates a new property conditional for the provided property name.static DefaultCollectionConditionalwhenCollection(String field) Creates a new collection conditional for the provided property name.
-
Method Details
-
when
Creates a new property conditional for the provided property name.- Parameters:
field- the name of the property- Returns:
- the conditional
-
whenCollection
Creates a new collection conditional for the provided property name.- Parameters:
field- the name of the property- Returns:
- the conditional
-
and
Creates a new logical-and conditional for the provided conditionals.- Parameters:
conditionals- the conditionals to logical-and- Returns:
- the conditional
-
and
Creates a new logical-and conditional for the provided conditionals.- Parameters:
conditionals- the conditionals to logical-and- Returns:
- the conditional
-
or
Creates a new logical-or conditional for the provided conditionals.- Parameters:
conditionals- the conditionals to logical-or- Returns:
- the conditional
-
or
Creates a new logical-or conditional for the provided conditionals.- Parameters:
conditionals- the conditionals to logical-or- Returns:
- the conditional
-
not
Creates a new logical-not conditional for the provided conditionals.- Parameters:
conditionals- the conditionals to logical-not- Returns:
- the conditional
-
not
Creates a new logical-not conditional for the provided conditionals.- Parameters:
conditionals- the conditionals to logical-not- Returns:
- the conditional
-