org.identityconnectors.framework.common.objects.filter
Class EqualsFilter
java.lang.Object
org.identityconnectors.framework.common.objects.filter.AttributeFilter
org.identityconnectors.framework.common.objects.filter.EqualsFilter
- All Implemented Interfaces:
- Filter
public final class EqualsFilter
- extends AttributeFilter
Determines whether an object
contains an attribute
that matches
a specific attribute value.
Method Summary |
boolean |
accept(ConnectorObject obj)
Determines whether the specified ConnectorObject
contains an attribute that has the same name
and contains a value that is equals the value of
the attribute that FilterBuilder
placed into this filter. |
String |
toString()
|
EqualsFilter
public EqualsFilter(Attribute attr)
- Public only as an artifact of the implementation.
Please use
FilterBuilder
to create an instance of EqualsFilter
.
accept
public boolean accept(ConnectorObject obj)
- Determines whether the specified
ConnectorObject
contains an attribute that has the same name
and contains a value that is equals the value of
the attribute that FilterBuilder
placed into this filter.
Note that in the case of a multi-valued attribute,
equality of values means that:
- the value of the attribute in the connector object
and the value of the attribute in the filter
must contain the same number of elements; and that
- each element within the value of the attribute in the connector object
must equal the element that occupies the same position
within the value of the attribute in the filter.
- Parameters:
obj
- - The specified ConnectorObject.
- Returns:
true
if the object matches
(that is, satisfies all selection criteria of) this filter;
otherwise false
.- See Also:
Filter.accept(ConnectorObject)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012. All Rights Reserved.