org.mentawai.csc
Class Country

java.lang.Object
  extended by org.mentawai.csc.Country

public class Country
extends Object


Constructor Summary
Country(int id)
           
Country(int id, boolean hasStates)
           
 
Method Summary
 void addName(Locale loc, String name)
           
static Country getById(int id)
           
static Iterator<Country> getCountries(Locale loc)
           
 boolean getHasStates()
           
 int getId()
           
static ListData getListData(LocalizedListData list)
           
static ListData getListData(String name)
           
static Set<Locale> getLocales()
           
 String getName(Locale loc)
           
 List<State> getStates()
           
 boolean hasStates()
           
static void init()
           
static void main(String[] args)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Country

public Country(int id,
               boolean hasStates)

Country

public Country(int id)
Method Detail

getId

public int getId()

hasStates

public boolean hasStates()

getHasStates

public boolean getHasStates()

addName

public void addName(Locale loc,
                    String name)

getName

public String getName(Locale loc)

toString

public String toString()
Overrides:
toString in class Object

getStates

public List<State> getStates()

getById

public static Country getById(int id)

getCountries

public static Iterator<Country> getCountries(Locale loc)

getListData

public static ListData getListData(String name)

getListData

public static ListData getListData(LocalizedListData list)

getLocales

public static Set<Locale> getLocales()

init

public static void init()
                 throws IOException
Throws:
IOException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.