public class QueryFilter extends Object implements Serializable
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="expression" type="{}Expression" minOccurs="0"/> <element name="sort" type="{}Sort" maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
static QueryFilter |
EMPTY_INSTANCE |
protected Expression |
expression |
protected List<Sort> |
sort |
Constructor and Description |
---|
QueryFilter() |
Modifier and Type | Method and Description |
---|---|
QueryFilter |
copy()
Deep copies the fields of the this model into a new instance of this class and returns it.
|
QueryFilter |
copy(boolean isDeep)
Copies the fields of the this model (optionally deeply) into a new instance of this class and returns it.
|
protected QueryFilter |
copy(QueryFilter nobj,
boolean isDeep)
Copies the fields of the this model (optionally deeply) into the given instance and returns it.
|
boolean |
equals(Object o) |
Expression |
getExpression()
Optional expression describing the results desired from the query operation.
|
List<Sort> |
getSort()
Optional sort order for query results.
|
int |
hashCode() |
Expression |
safeGetExpression()
Returns the current expression property value if non-
null , otherwise Expression.EMPTY_INSTANCE . |
void |
setExpression(Expression value)
Sets the value of the expression property.
|
String |
toString() |
QueryFilter |
withExpression(Expression newValue)
Sets the expression property to the given newValue and returns this instance.
|
QueryFilter |
withSort(Collection<? extends Sort> newValues)
Adds the given newValues to the current sort property List and returns this instance.
|
QueryFilter |
withSort(Sort... newValues)
Adds the given newValues to the current sort property List and returns this instance.
|
protected Expression expression
public static final QueryFilter EMPTY_INSTANCE
public Expression getExpression()
Expression
public void setExpression(Expression value)
value
- allowed object is
Expression
public List<Sort> getSort()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the sort property.
For example, to add a new item, do as follows:
getSort().add(newItem);
Objects of the following type(s) are allowed in the list
Sort
public QueryFilter copy()
public QueryFilter copy(boolean isDeep)
protected QueryFilter copy(QueryFilter nobj, boolean isDeep)
public QueryFilter withExpression(Expression newValue)
public Expression safeGetExpression()
null
, otherwise Expression.EMPTY_INSTANCE
.public QueryFilter withSort(Sort... newValues)
public QueryFilter withSort(Collection<? extends Sort> newValues)