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>

Author:
Jim Balhoff A GlazedLists Matcher implementation which matches characters using a given charfield.

Constructor Summary
CharFieldMatcher(CharField charField, java.lang.String filter, boolean inherit)
           
 
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 inherit)
Parameters:
charField - The charfield examined to match characters.
filter - The value required for character to match. For free text charfields, this will match substrings.
inherit - Whether to match all descendants of an ontology term in addition to matching the exact ontology term.
Method Detail

matches

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