Class QueryWhereBuilder
- java.lang.Object
-
- com.sodius.oslc.core.process.query.QueryWhereBuilder
-
public class QueryWhereBuilder extends Object
A builder to compose a term in theoslc.where
query parameter.- Since:
- 3.6.0
- See Also:
QueryUriBuilder.where(String)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryUriBuilder
equalsTo(Object value)
Appends a"="
operator for the underlying property and the given value asoslc.where
parameter in the URI builder.QueryUriBuilder
greaterThan(Object value)
Appends a">"
operator for the underlying property and the given value asoslc.where
parameter in the URI builder.QueryUriBuilder
greaterThanOrEqual(Object value)
Appends a">="
operator for the underlying property and the given value asoslc.where
parameter in the URI builder.QueryUriBuilder
in(Collection<Object> values)
Appends a"in"
operator for the underlying property and the given values asoslc.where
parameter in the URI builder.QueryUriBuilder
lowerThan(Object value)
Appends a"<"
operator for the underlying property and the given value asoslc.where
parameter in the URI builder.QueryUriBuilder
lowerThanOrEqual(Object value)
Appends a"<="
operator for the underlying property and the given value asoslc.where
parameter in the URI builder.QueryUriBuilder
notEqualsTo(Object value)
Appends a"!="
operator for the underlying property and the given value asoslc.where
parameter in the URI builder.
-
-
-
Method Detail
-
equalsTo
public QueryUriBuilder equalsTo(Object value)
Appends a"="
operator for the underlying property and the given value asoslc.where
parameter in the URI builder.The value might be a
URI
, aString
, aNumber
, aBoolean
, aDate
or anXMLLiteral
. Any other type of object will be converted to aString
representation.- Parameters:
value
- a value to use as right operand- Returns:
- the owning URI builder
- Throws:
NullPointerException
- if value is null
-
notEqualsTo
public QueryUriBuilder notEqualsTo(Object value)
Appends a"!="
operator for the underlying property and the given value asoslc.where
parameter in the URI builder.The value might be a
URI
, aString
, aNumber
, aBoolean
, aDate
or anXMLLiteral
. Any other type of object will be converted to aString
representation.- Parameters:
value
- a value to use as right operand- Returns:
- the owning URI builder
- Throws:
NullPointerException
- if value is null
-
greaterThan
public QueryUriBuilder greaterThan(Object value)
Appends a">"
operator for the underlying property and the given value asoslc.where
parameter in the URI builder.The value might be a
URI
, aString
, aNumber
, aBoolean
, aDate
or anXMLLiteral
. Any other type of object will be converted to aString
representation.- Parameters:
value
- a value to use as right operand- Returns:
- the owning URI builder
- Throws:
NullPointerException
- if value is null
-
greaterThanOrEqual
public QueryUriBuilder greaterThanOrEqual(Object value)
Appends a">="
operator for the underlying property and the given value asoslc.where
parameter in the URI builder.The value might be a
URI
, aString
, aNumber
, aBoolean
, aDate
or anXMLLiteral
. Any other type of object will be converted to aString
representation.- Parameters:
value
- a value to use as right operand- Returns:
- the owning URI builder
- Throws:
NullPointerException
- if value is null
-
lowerThan
public QueryUriBuilder lowerThan(Object value)
Appends a"<"
operator for the underlying property and the given value asoslc.where
parameter in the URI builder.The value might be a
URI
, aString
, aNumber
, aBoolean
, aDate
or anXMLLiteral
. Any other type of object will be converted to aString
representation.- Parameters:
value
- a value to use as right operand- Returns:
- the owning URI builder
- Throws:
NullPointerException
- if value is null
-
lowerThanOrEqual
public QueryUriBuilder lowerThanOrEqual(Object value)
Appends a"<="
operator for the underlying property and the given value asoslc.where
parameter in the URI builder.The value might be a
URI
, aString
, aNumber
, aBoolean
, aDate
or anXMLLiteral
. Any other type of object will be converted to aString
representation.- Parameters:
value
- a value to use as right operand- Returns:
- the owning URI builder
- Throws:
NullPointerException
- if value is null
-
in
public QueryUriBuilder in(Collection<Object> values)
Appends a"in"
operator for the underlying property and the given values asoslc.where
parameter in the URI builder.The values might be
URI
orString
instances. Any other type of object will be converted to aString
representation.- Parameters:
values
- the values to use as"in"
right operand- Returns:
- the owning URI builder
- Throws:
NullPointerException
- if values is null
-
-