de.fhkl.zw.mkup.rattrap
Class Countries

java.lang.Object
  extended by de.fhkl.zw.mkup.rattrap.Countries

public class Countries
extends java.lang.Object

This class hands the data of the user's homecountry to other classes.

Author:
Martin Schultz

Constructor Summary
Countries()
          The constructor reads the XML file, which contains the country data.
 
Method Summary
static java.util.List getCountries()
           
static org.jdom.Document getDoc()
          Static method, so that embedded class WorldMap can access this information.
static void getEntry(java.lang.String country)
          The method gets longitude and latitude of a country from the parsed list.
static java.util.Hashtable getHash()
          Static method, so that embedded class WorldMap can access this information.
static java.lang.String getHomeCountry()
          Static method, so that embedded class WorldMap can access this information.
static org.jdom.Element getRoot()
          Static method, so that embedded class WorldMap can access this information.
static void setHomeCountry(java.lang.String homeCountry)
          Static method, so that embedded class WorldMap can access this information.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Countries

public Countries()
The constructor reads the XML file, which contains the country data.

Method Detail

getEntry

public static void getEntry(java.lang.String country)
The method gets longitude and latitude of a country from the parsed list.

Parameters:
country: - The name of the country.

getCountries

public static java.util.List getCountries()
Returns:
Returns a list of all available countries.

getHash

public static java.util.Hashtable getHash()
Static method, so that embedded class WorldMap can access this information.

Returns:
Returns the HashMap.

getDoc

public static org.jdom.Document getDoc()
Static method, so that embedded class WorldMap can access this information.

Returns:
Returns the doc.

getRoot

public static org.jdom.Element getRoot()
Static method, so that embedded class WorldMap can access this information.

Returns:
Returns the root.

getHomeCountry

public static java.lang.String getHomeCountry()
Static method, so that embedded class WorldMap can access this information.

Returns:
Returns the homeCountry.

setHomeCountry

public static void setHomeCountry(java.lang.String homeCountry)
Static method, so that embedded class WorldMap can access this information.

Parameters:
homeCountry - The homeCountry to set.