|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.unboundid.scim.sdk.SCIMFilter
public class SCIMFilter
This class represents a SCIM query filter.
| Constructor Summary | |
|---|---|
SCIMFilter(SCIMFilterType filterType,
AttributePath filterAttribute,
String filterValue,
boolean quoteFilterValue,
List<SCIMFilter> filterComponents)
Create a new SCIM filter from the provided information. |
|
| Method Summary | |
|---|---|
static SCIMFilter |
createAndFilter(List<SCIMFilter> filterComponents)
Create a new and filter. |
static SCIMFilter |
createContainsFilter(AttributePath filterAttribute,
String filterValue)
Create a new contains filter. |
static SCIMFilter |
createEqualityFilter(AttributePath filterAttribute,
String filterValue)
Create a new equality filter. |
static SCIMFilter |
createGreaterOrEqualFilter(AttributePath filterAttribute,
String filterValue)
Create a new greater or equal filter. |
static SCIMFilter |
createGreaterThanFilter(AttributePath filterAttribute,
String filterValue)
Create a new greater than filter. |
static SCIMFilter |
createLessOrEqualFilter(AttributePath filterAttribute,
String filterValue)
Create a new less or equal filter. |
static SCIMFilter |
createLessThanFilter(AttributePath filterAttribute,
String filterValue)
Create a new less than filter. |
static SCIMFilter |
createOrFilter(List<SCIMFilter> filterComponents)
Create a new or filter. |
static SCIMFilter |
createPresenceFilter(AttributePath filterAttribute)
Create a new presence filter. |
static SCIMFilter |
createStartsWithFilter(AttributePath filterAttribute,
String filterValue)
Create a new starts with filter. |
AttributePath |
getFilterAttribute()
Retrieve the attribute or sub-attribute to filter by, or null if
not applicable for this filter type. |
List<SCIMFilter> |
getFilterComponents()
Retrieve the filter components for an 'and' or 'or' filter. |
SCIMFilterType |
getFilterType()
Retrieve the filter type. |
String |
getFilterValue()
Retrieve the filter attribute value. |
boolean |
isQuoteFilterValue()
Determine whether the filter attribute value is quoted in the string representation of the filter. |
static SCIMFilter |
parse(String filterString)
Parse a filter from its string representation. |
String |
toString()
|
void |
toString(StringBuilder builder)
Append the string representation of the filter to the provided buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SCIMFilter(SCIMFilterType filterType,
AttributePath filterAttribute,
String filterValue,
boolean quoteFilterValue,
List<SCIMFilter> filterComponents)
filterType - The filter type.filterAttribute - The attribute or sub-attribute to filter by, or
null if not applicable.filterValue - The filter attribute value, or null if not
applicable.quoteFilterValue - Specifies whether the filter value is quoted in
the string representation of the filter.filterComponents - The filter components for 'or' and 'and' filter
types, or null if not applicable.| Method Detail |
|---|
public static SCIMFilter parse(String filterString)
throws SCIMException
filterString - The string representation of the filter expression.
SCIMException - If the filter string could not be parsed.public static SCIMFilter createAndFilter(List<SCIMFilter> filterComponents)
filterComponents - The filter components.
public static SCIMFilter createOrFilter(List<SCIMFilter> filterComponents)
filterComponents - The filter components.
public static SCIMFilter createEqualityFilter(AttributePath filterAttribute,
String filterValue)
filterAttribute - The attribute or sub-attribute to filter by.filterValue - The filter attribute value.
public static SCIMFilter createContainsFilter(AttributePath filterAttribute,
String filterValue)
filterAttribute - The attribute or sub-attribute to filter by.filterValue - The filter attribute value.
public static SCIMFilter createStartsWithFilter(AttributePath filterAttribute,
String filterValue)
filterAttribute - The attribute or sub-attribute to filter by.filterValue - The filter attribute value.
public static SCIMFilter createPresenceFilter(AttributePath filterAttribute)
filterAttribute - The attribute or sub-attribute to filter by.
public static SCIMFilter createGreaterThanFilter(AttributePath filterAttribute,
String filterValue)
filterAttribute - The attribute or sub-attribute to filter by.filterValue - The filter attribute value.
public static SCIMFilter createGreaterOrEqualFilter(AttributePath filterAttribute,
String filterValue)
filterAttribute - The attribute or sub-attribute to filter by.filterValue - The filter attribute value.
public static SCIMFilter createLessThanFilter(AttributePath filterAttribute,
String filterValue)
filterAttribute - The attribute or sub-attribute to filter by.filterValue - The filter attribute value.
public static SCIMFilter createLessOrEqualFilter(AttributePath filterAttribute,
String filterValue)
filterAttribute - The attribute or sub-attribute to filter by.filterValue - The filter attribute value.
public SCIMFilterType getFilterType()
public AttributePath getFilterAttribute()
null if
not applicable for this filter type.
public String getFilterValue()
null if not applicable
for this filter type.public boolean isQuoteFilterValue()
true if the filter attribute value is quoted in the string
representation of the filter.public List<SCIMFilter> getFilterComponents()
public String toString()
toString in class Objectpublic void toString(StringBuilder builder)
builder - The buffer to which the string representation of the
filter is to be appended.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||