org.LexGrid.LexBIG.Impl.helpers
Class TestFilter2

java.lang.Object
  extended by org.LexGrid.LexBIG.Impl.helpers.TestFilter2
All Implemented Interfaces:
java.io.Serializable, Extendable, Filter

public class TestFilter2
extends java.lang.Object
implements Filter

Filter to use for JUnit test cases. This one only allows items that have an 'r' or m as their third letter in the entity descrition.

Version:
subversion $Revision: $ checked in on $Date: $
Author:
Dan Armbrust
See Also:
Serialized Form

Field Summary
static java.lang.String description_
           
static java.lang.String name_
           
static java.lang.String provider_
           
static java.lang.String version_
           
 
Constructor Summary
TestFilter2()
           
 
Method Summary
 java.lang.String getDescription()
          Return a description of the extension.
 java.lang.String getName()
          Return the name assigned to this service extension.
 java.lang.String getProvider()
          Return an identifier for the extension provider.
 java.lang.String getVersion()
          Return version information about the extension.
 boolean match(ResolvedConceptReference ref)
          Indicates whether or not the given reference satisfies criteria for this filter.
static void register()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

provider_

public static java.lang.String provider_

description_

public static java.lang.String description_

name_

public static java.lang.String name_

version_

public static java.lang.String version_
Constructor Detail

TestFilter2

public TestFilter2()
Method Detail

match

public boolean match(ResolvedConceptReference ref)
Description copied from interface: Filter
Indicates whether or not the given reference satisfies criteria for this filter. Filters should _NOT_ be used for search criteria that can be done with built in restrictions. Filters are very inefficient.

Specified by:
match in interface Filter
Parameters:
ref - The concept reference to evaluate.
Returns:
true if the reference is to be included in returned results; otherwise false.

getDescription

public java.lang.String getDescription()
Description copied from interface: Extendable
Return a description of the extension.

Specified by:
getDescription in interface Extendable

getName

public java.lang.String getName()
Description copied from interface: Extendable
Return the name assigned to this service extension. This name must be unique within context of the installed node and is used to register and lookup the extension through a LexBIGService.

Specified by:
getName in interface Extendable

getProvider

public java.lang.String getProvider()
Description copied from interface: Extendable
Return an identifier for the extension provider.

Specified by:
getProvider in interface Extendable

getVersion

public java.lang.String getVersion()
Description copied from interface: Extendable
Return version information about the extension.

Specified by:
getVersion in interface Extendable

register

public static void register()
                     throws LBParameterException,
                            LBException
Throws:
LBParameterException
LBException

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.