Class WQConstraint
java.lang.Object
com.peterphi.std.guice.restclient.jaxb.webquery.WQConstraintLine
com.peterphi.std.guice.restclient.jaxb.webquery.WQConstraint
Defines an individual field constraint to apply
-
Field Summary
-
Constructor Summary
ConstructorDescriptionWQConstraint
(String field, WQFunctionType function, String value) WQConstraint
(String field, WQFunctionType function, String left, String right) WQConstraint
(String field, WQFunctionType function, List<String> values) -
Method Summary
Modifier and TypeMethodDescriptionstatic WQConstraint
static WQConstraint
Produce a WebQueryConstraint from a Query String format parameterEncode this constraint in the query string value formatstatic WQConstraint
static WQConstraint
static WQConstraint
static WQConstraint
static WQConstraint
static WQConstraint
static WQConstraint
in
(String field, Collection<?> values) static WQConstraint
static WQConstraint
static WQConstraint
static WQConstraint
static WQConstraint
static WQConstraint
static WQConstraint
static WQConstraint
not()
static WQConstraint
notContains
(String field, Object value) static WQConstraint
notIn
(String field, Collection<?> values) static WQConstraint
notStartsWith
(String field, Object value) static WQConstraint
static WQConstraint
startsWith
(String field, Object value) void
toString()
static String
-
Field Details
-
field
-
function
-
value
-
valuelist
-
value2
The second value (for binary functions).
Should only be supplied iffunction
is supplied and if it refers to a binary function such asWQFunctionType.RANGE
-
-
Constructor Details
-
WQConstraint
public WQConstraint() -
WQConstraint
-
WQConstraint
-
WQConstraint
-
-
Method Details
-
not
- Overrides:
not
in classWQConstraintLine
-
toString
-
encodeValue
Encode this constraint in the query string value format- Returns:
-
eq
-
in
-
notIn
-
neq
-
isNull
-
isNotNull
-
lt
-
le
-
gt
-
ge
-
contains
-
notContains
-
startsWith
-
notStartsWith
-
range
-
eqRef
-
neqRef
-
leRef
-
ltRef
-
geRef
-
gtRef
-
decode
Produce a WebQueryConstraint from a Query String format parameter- Parameters:
field
-rawValue
-- Returns:
-
toQueryFragment
- Specified by:
toQueryFragment
in classWQConstraintLine
-
toString
-