cds.simbad
Class JournalList

java.lang.Object
  extended bycds.simbad.JournalList

public class JournalList
extends java.lang.Object

Manages the list of journals. Only one object of this class can exist and is available through the getJournalList method().

Version:
1.0 Apr 2003
Author:
Marc Wenger/CDS

Field Summary
private static int JOURNAL_NUMBER
           
private static java.lang.String JOURNAL_PRM_NAME
           
private static JournalList journalListInstance
           
private  java.util.HashMap journals
           
 
Constructor Summary
private JournalList()
          Constructor.
 
Method Summary
 Journal get(java.lang.String abbrev)
          Returns a Journalobject from an abbreviation name
static JournalList getJournalList()
          Returns the JournalList object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JOURNAL_NUMBER

private static final int JOURNAL_NUMBER
See Also:
Constant Field Values

JOURNAL_PRM_NAME

private static final java.lang.String JOURNAL_PRM_NAME
See Also:
Constant Field Values

journals

private java.util.HashMap journals

journalListInstance

private static JournalList journalListInstance
Constructor Detail

JournalList

private JournalList()
Constructor. Builds the journal list from the journals parameters set. The journals description parameter set must have been loaded before the constructor is called.

The constructor MUST be private to ensure that this class is a singleton.

Method Detail

getJournalList

public static JournalList getJournalList()
Returns the JournalList object. Creates it if needed

Returns:
JournalList object

get

public Journal get(java.lang.String abbrev)
Returns a Journalobject from an abbreviation name

Parameters:
abbrev - the abbreviated code of the journal
Returns:
the Journalobject