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 and
10: * answers true if any of the possibly multiple values of the
11: * attribute equals the test value.
12: * <p>
13: * @author Dan Ellentuck
14: * @version $Revision: 34757 $
15: */
16:
17: public class StringEqualsTester extends StringTester {
18:
19: public StringEqualsTester(String attribute, String test) {
20: super (attribute, test);
21: }
22:
23: public boolean test(String att) {
24: return att.equals(testValue);
25: }
26:
27: }
|