org.identityconnectors.framework.common.objects.filter
Class StringFilter

java.lang.Object
  extended by org.identityconnectors.framework.common.objects.filter.AttributeFilter
      extended by org.identityconnectors.framework.common.objects.filter.SingleValueAttributeFilter
          extended by org.identityconnectors.framework.common.objects.filter.StringFilter
All Implemented Interfaces:
Filter
Direct Known Subclasses:
ContainsFilter, EndsWithFilter, StartsWithFilter

public abstract class StringFilter
extends SingleValueAttributeFilter

Filter based on strings.


Method Summary
 boolean accept(ConnectorObject obj)
          Determines whether the specified ConnectorObject matches this filter.
abstract  boolean accept(String value)
           
 String getValue()
          Get the string value from the afore mentioned attribute.
 
Methods inherited from class org.identityconnectors.framework.common.objects.filter.AttributeFilter
getAttribute, getName, isPresent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getValue

public String getValue()
Get the string value from the afore mentioned attribute.

Overrides:
getValue in class SingleValueAttributeFilter
See Also:
SingleValueAttributeFilter.getValue()

accept

public boolean accept(ConnectorObject obj)
Description copied from interface: Filter
Determines whether the specified ConnectorObject matches this filter.

Parameters:
obj - - The specified ConnectorObject.
Returns:
true if the object matches (that is, satisfies all selection criteria of) this filter; otherwise false.
Throws:
ClassCastException - iff the value from the ConnectorObject's attribute of the same name as provided is not a string.
See Also:
Filter.accept(ConnectorObject)

accept

public abstract boolean accept(String value)


Copyright © 2012. All Rights Reserved.