phenote.gui.field
Class CompListSearcher

java.lang.Object
  extended by phenote.gui.field.CompListSearcher

public class CompListSearcher
extends java.lang.Object

An aid to completion lists. Searches ontology with user input and search params and returns vectors of completion list objects CompletionTerms or CompletionRelations Moved search methods from Ontology to here, as now cant just return model objects, as OBOClass.toString doesnt cut it anymore - need the gui objects for syns & obsoletes & to cut off long terms


Constructor Summary
CompListSearcher(java.util.List<Ontology> l)
          l - initial list of ontologies to search, as in ALL.
CompListSearcher(Ontology o)
          Ontology - the initial ontology to search, setOntology changes this, initially only searches the one ontology (not ALL) - used by servlet which currently doesnt do ALL
 
Method Summary
 java.util.List<CompletionObject> getStringMatchRelations(java.lang.String input)
          relations are short ontologies - dont need threaded optimization
 void getStringMatchTermList(java.lang.String input, SearchListener lis, boolean threaded)
          Makes a List of CompletionTerms from ontology that contain input string constrained by compParams.
 void setOntologies(java.util.List<Ontology> l)
           
 void setOntology(Ontology o)
          Set the ontology to search.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompListSearcher

public CompListSearcher(Ontology o)
Ontology - the initial ontology to search, setOntology changes this, initially only searches the one ontology (not ALL) - used by servlet which currently doesnt do ALL


CompListSearcher

public CompListSearcher(java.util.List<Ontology> l)
l - initial list of ontologies to search, as in ALL. used by CharFieldGui to set list to all ontols in field as initial setting is ALL - is this funny?

Method Detail

setOntology

public void setOntology(Ontology o)
Set the ontology to search. Ontology chooser may set this


setOntologies

public void setOntologies(java.util.List<Ontology> l)

getStringMatchRelations

public java.util.List<CompletionObject> getStringMatchRelations(java.lang.String input)
relations are short ontologies - dont need threaded optimization


getStringMatchTermList

public void getStringMatchTermList(java.lang.String input,
                                   SearchListener lis,
                                   boolean threaded)
Makes a List of CompletionTerms from ontology that contain input string constrained by compParams. Gives this list to SearchListener, does search in background thread if thread is true. compParams specifies syns,terms,defs,& obs should input be just part of search params? called by servlet & standalone now