phenote.gui.field
Class CharFieldMatcher

java.lang.Object
  extended by phenote.gui.field.CharFieldMatcher
All Implemented Interfaces:
ca.odell.glazedlists.matchers.Matcher<CharacterI>

public class CharFieldMatcher
extends java.lang.Object
implements ca.odell.glazedlists.matchers.Matcher<CharacterI>

A GlazedLists Matcher implementation which matches characters using a given charfield.

Author:
Jim Balhoff

Constructor Summary
CharFieldMatcher(CharField charField, java.lang.String filter, boolean broad)
           
 
Method Summary
 boolean matches(CharacterI character)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharFieldMatcher

public CharFieldMatcher(CharField charField,
                        java.lang.String filter,
                        boolean broad)
Parameters:
charField - The charfield examined to match characters.
filter - The value required for character to match. For free text charfields, this will match substrings.
broad - Whether to match all descendants of an ontology term in addition to matching the exact ontology term, or for text, whether to match substrings in addition to exactly.
Method Detail

matches

public boolean matches(CharacterI character)
Specified by:
matches in interface ca.odell.glazedlists.matchers.Matcher<CharacterI>