Open SiteSearch 4.1.1
Final

ORG.oclc.isoill
Class LocationsLoader

java.lang.Object
  |
  +--ORG.oclc.jassi.InitClass
        |
        +--ORG.oclc.isoill.LocationsLoader

public class LocationsLoader
extends InitClass

The LocationsLoader class is executed prior to normal operation of JaSSI and reads the JaSSI configuration file. An IniFile class is created containing the locations information from all of the locations files. This class will be available for use by the LenderString class.

See Also:
InitClass, IniFiles, LenderString

Constructor Summary
LocationsLoader()
          Constructs a LocationsLoader object by reading server configuration
 
Method Summary
static Hashtable get()
          Returns a Hashtable containing all locations Maps (information used to translate location strings to OCLC lender symbols).
static Hashtable get(String section)
          Returns a Hashtable containing a single location map (information used to translate location strings to OCLC lender symbols).
static String get(String section, String key)
          Returns a value stored in a Hashtable containing a single location Map (information used to translate location strings to OCLC lender symbols).
 void init(IniFile ini)
          Constructs a new IniFile class by reading server configuration information from the input iniFile.
 String toString()
          Generates the String representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocationsLoader

public LocationsLoader()
Constructs a LocationsLoader object by reading server configuration
Method Detail

init

public void init(IniFile ini)
Constructs a new IniFile class by reading server configuration information from the input iniFile. This information is stored in a static IniFile locationsIni.
Parameters:
ini - the JaSSI configuration ini file
Overrides:
init in class InitClass

get

public static Hashtable get()
Returns a Hashtable containing all locations Maps (information used to translate location strings to OCLC lender symbols).
Returns:
Hashtable.

get

public static Hashtable get(String section)
Returns a Hashtable containing a single location map (information used to translate location strings to OCLC lender symbols).
Parameters:
Section - the name location map to return.
Returns:
Hashtable.

get

public static String get(String section,
                         String key)
Returns a value stored in a Hashtable containing a single location Map (information used to translate location strings to OCLC lender symbols).
Parameters:
section - the name location map to return.
key - the name location map to return.
Returns:
String - the OCLC lender symbol (or the value 'NoInst' when there is no corresponding symbol).

toString

public String toString()
Generates the String representation of the object.
Returns:
String
Overrides:
toString in class InitClass

Open SiteSearch 4.1.1
Final