org.mentawai.csc
Class Country

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

public class Country
extends java.lang.Object


Constructor Summary
Country(int id)
           
Country(int id, boolean hasStates)
           
 
Method Summary
 void addName(java.util.Locale loc, java.lang.String name)
           
static Country getById(int id)
           
static java.util.Iterator<Country> getCountries(java.util.Locale loc)
           
 boolean getHasStates()
           
 int getId()
           
static ListData getListData(LocalizedListData list)
           
static ListData getListData(java.lang.String name)
           
static java.util.Set<java.util.Locale> getLocales()
           
 java.lang.String getName(java.util.Locale loc)
           
 java.util.List<State> getStates()
           
 boolean hasStates()
           
static void init()
           
static void main(java.lang.String[] args)
           
 java.lang.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(java.util.Locale loc,
                    java.lang.String name)

getName

public java.lang.String getName(java.util.Locale loc)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getStates

public java.util.List<State> getStates()

getById

public static Country getById(int id)

getCountries

public static java.util.Iterator<Country> getCountries(java.util.Locale loc)

getListData

public static ListData getListData(java.lang.String name)

getListData

public static ListData getListData(LocalizedListData list)

getLocales

public static java.util.Set<java.util.Locale> getLocales()

init

public static void init()
                 throws java.io.IOException
Throws:
java.io.IOException

main

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


Copyright © 2005 Mentawai Team. All Rights Reserved.