uk.ac.essex.ia.lang.xml
Class AvailableLocales
java.lang.Object
uk.ac.essex.ia.lang.xml.AvailableLocales
- All Implemented Interfaces:
- java.io.Serializable
public class AvailableLocales
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AvailableLocales
public AvailableLocales()
addLocale
public void addLocale(Locale vLocale)
throws java.lang.IndexOutOfBoundsException
- Parameters:
vLocale
-
- Throws:
java.lang.IndexOutOfBoundsException
addLocale
public void addLocale(int index,
Locale vLocale)
throws java.lang.IndexOutOfBoundsException
- Parameters:
index
- vLocale
-
- Throws:
java.lang.IndexOutOfBoundsException
enumerateLocale
public java.util.Enumeration enumerateLocale()
getLocale
public Locale getLocale(int index)
throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-
- Throws:
java.lang.IndexOutOfBoundsException
getLocale
public Locale[] getLocale()
getLocaleCount
public int getLocaleCount()
isValid
public boolean isValid()
marshal
public void marshal(java.io.Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Parameters:
out
-
- Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
marshal
public void marshal(org.xml.sax.ContentHandler handler)
throws java.io.IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Parameters:
handler
-
- Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
removeAllLocale
public void removeAllLocale()
removeLocale
public Locale removeLocale(int index)
- Parameters:
index
-
setLocale
public void setLocale(int index,
Locale vLocale)
throws java.lang.IndexOutOfBoundsException
- Parameters:
index
- vLocale
-
- Throws:
java.lang.IndexOutOfBoundsException
setLocale
public void setLocale(Locale[] localeArray)
- Parameters:
localeArray
-
unmarshal
public static AvailableLocales unmarshal(java.io.Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Parameters:
reader
-
- Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
validate
public void validate()
throws org.exolab.castor.xml.ValidationException
- Throws:
org.exolab.castor.xml.ValidationException