Class ConditionList
java.lang.Object
uk.org.webcompere.modelassert.json.condition.ConditionList
- All Implemented Interfaces:
JsonNodeAssertDsl<ConditionList>,ArrayNodeDsl<ConditionList>,BooleanNodeDsl<ConditionList>,NumberComparisonDsl<ConditionList>,NumberNodeDsl<ConditionList>,ObjectNodeDsl<ConditionList>,Sizeable<ConditionList>,TextNodeDsl<ConditionList>,IsEqualToDsl<ConditionList>,TreeComparisonDsl<ConditionList>,Satisfies<ConditionList>
A set of conditions for matching
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConditionListCreate a list of conditions using the DSLGet the conditionsAdd a condition that the input JSON must satisfyConvert the list into a composite AND conditionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface uk.org.webcompere.modelassert.json.dsl.nodespecific.ArrayNodeDsl
isArray, isArrayContaining, isArrayContaining, isArrayContainingExactly, isArrayContainingExactly, isArrayContainingExactlyInAnyOrder, isArrayContainingExactlyInAnyOrder, isNotArray, satisfiesArrayConditionMethods inherited from interface uk.org.webcompere.modelassert.json.dsl.nodespecific.BooleanNodeDsl
isBoolean, isFalse, isNotBoolean, isTrueMethods inherited from interface uk.org.webcompere.modelassert.json.dsl.nodespecific.tree.IsEqualToDsl
isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualToYaml, isEqualToYaml, isEqualToYaml, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualToYaml, isNotEqualToYaml, isNotEqualToYamlMethods inherited from interface uk.org.webcompere.modelassert.json.dsl.JsonNodeAssertDsl
array, at, booleanNode, hasValue, is, is, isAnyNode, isMissing, isNot, isNotEmpty, isNotMissing, isNotNull, isNull, matches, number, object, textMethods inherited from interface uk.org.webcompere.modelassert.json.dsl.nodespecific.NumberComparisonDsl
isBetween, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isZero, satisfiesNumberConditionMethods inherited from interface uk.org.webcompere.modelassert.json.dsl.nodespecific.NumberNodeDsl
isDouble, isGreaterThanDouble, isGreaterThanInt, isGreaterThanLong, isGreaterThanOrEqualToDouble, isGreaterThanOrEqualToInt, isGreaterThanOrEqualToLong, isInteger, isLessThanDouble, isLessThanInt, isLessThanLong, isLessThanOrEqualToDouble, isLessThanOrEqualToInt, isLessThanOrEqualToLong, isLong, isNotNumber, isNumber, isNumberEqualTo, isNumberNotEqualToMethods inherited from interface uk.org.webcompere.modelassert.json.dsl.nodespecific.ObjectNodeDsl
containsKey, containsKeys, containsKeysExactly, containsKeysExactlyInAnyOrder, doesNotContainKey, doesNotContainKeys, isNotObject, isObject, satisfiesObjectConditionMethods inherited from interface uk.org.webcompere.modelassert.json.dsl.nodespecific.Sizeable
hasSize, isEmpty, sizeMethods inherited from interface uk.org.webcompere.modelassert.json.dsl.nodespecific.TextNodeDsl
isEmptyText, isNotEmptyText, isNotText, isNotText, isText, isText, matches, matches, satisfiesTextCondition, textContains, textDoesNotContain, textDoesNotStartWith, textMatches, textStartsWithMethods inherited from interface uk.org.webcompere.modelassert.json.dsl.nodespecific.TreeComparisonDsl
isEqualTo, isNotEqualTo, where
-
Constructor Details
-
ConditionList
public ConditionList()
-
-
Method Details
-
conditions
Create a list of conditions using the DSL- Returns:
- the conditions
-
getConditionList
Get the conditions- Returns:
-
satisfies
Description copied from interface:SatisfiesAdd a condition that the input JSON must satisfy- Specified by:
satisfiesin interfaceSatisfies<ConditionList>- Parameters:
condition- the condition- Returns:
thisfor fluent calling
-
toCondition
Convert the list into a composite AND condition- Returns:
Condition
-