01: /* Copyright 2004 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.groups.pags.testers;
07:
08: /**
09: * Tests an <code>IPerson</code> attribute for String equality
10: * regardless of case and answers true if any of the possibly
11: * multiple values of the attribute equals the test value.
12: * Question: how to handle non-default locales?
13: * <p>
14: * @author Dan Ellentuck
15: * @version $Revision: 34757 $
16: */
17:
18: public class StringEqualsIgnoreCaseTester extends StringTester {
19:
20: public StringEqualsIgnoreCaseTester(String attribute, String test) {
21: super (attribute, test);
22: }
23:
24: public boolean test(String att) {
25: return att.equalsIgnoreCase(testValue);
26: }
27:
28: }
|