corina
Class Species

java.lang.Object
  |
  +--corina.Species

public class Species
extends Object


Field Summary
static List common
           
static Properties species
           
 
Constructor Summary
Species()
           
 
Method Summary
static String closestSpecies(String s)
           
static String getCode(String s)
           
static String getName(String c)
          Look up a code in the list, and return its Latin name.
static boolean stringAlmostEquals(String s1, String s2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

species

public static Properties species

common

public static List common
Constructor Detail

Species

public Species()
Method Detail

getCode

public static String getCode(String s)
                      throws UnknownSpeciesException

getName

public static String getName(String c)
                      throws UnknownSpeciesException
Look up a code in the list, and return its Latin name.
Parameters:
c - the code to look up; usually 4 letters, all upper-case
Returns:
the Latin name of that species
Throws:
UnknownSpeciesException - if the code isn't in the list

stringAlmostEquals

public static boolean stringAlmostEquals(String s1,
                                         String s2)

closestSpecies

public static String closestSpecies(String s)
                             throws UnknownSpeciesException