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.
  • Constructor Details

    • EqualsFilter

      public EqualsFilter(Attribute attr)
      Public only as an artifact of the implementation. Please use FilterBuilder to create an instance of EqualsFilter.
  • Method Details

    • 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:
    • accept

      public <R, P> R accept(FilterVisitor<R,P> v, P p)
      Description copied from interface: Filter
      Applies a FilterVisitor to this Filter.
      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.
    • toString

      public String toString()
      Overrides:
      toString in class Object