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
-
-
Constructor Summary
Constructors Constructor Description EqualsFilter(Attribute attr)Public only as an artifact of the implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(ConnectorObject obj)Determines whether the specifiedConnectorObjectcontains an attribute that has the same name and contains a value that is equals the value of the attribute thatFilterBuilderplaced into this filter.<R,P>
Raccept(FilterVisitor<R,P> v, P p)Applies aFilterVisitorto thisFilter.StringtoString()-
Methods inherited from class org.identityconnectors.framework.common.objects.filter.AttributeFilter
getAttribute, getName, isPresent
-
-
-
-
Constructor Detail
-
EqualsFilter
public EqualsFilter(Attribute attr)
Public only as an artifact of the implementation. Please useFilterBuilderto create an instance ofEqualsFilter.
-
-
Method Detail
-
accept
public boolean accept(ConnectorObject obj)
Determines whether the specifiedConnectorObjectcontains an attribute that has the same name and contains a value that is equals the value of the attribute thatFilterBuilderplaced 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:
trueif the object matches (that is, satisfies all selection criteria of) this filter; otherwisefalse.- See Also:
Filter.accept(ConnectorObject)
-
accept
public <R,P> R accept(FilterVisitor<R,P> v, P p)
Description copied from interface:FilterApplies aFilterVisitorto thisFilter.- Type Parameters:
R- The return type of the visitor's methods.P- The type of the additional parameters to the visitor's methods.- Parameters:
v- The filter visitor.p- Optional additional visitor parameter.- Returns:
- A result as specified by the visitor.
-
-