org.mentawai.csc
Class Country
java.lang.Object
org.mentawai.csc.Country
public class Country
- extends java.lang.Object
|
Constructor Summary |
Country(int id)
|
Country(int id,
boolean hasStates)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Country
public Country(int id,
boolean hasStates)
Country
public Country(int id)
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.