uk.ac.essex.ia.lang.xml
Class AvailableLocales

java.lang.Object
  extended by 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

Constructor Summary
AvailableLocales()
           
 
Method Summary
 void addLocale(int index, Locale vLocale)
           
 void addLocale(Locale vLocale)
           
 java.util.Enumeration enumerateLocale()
           
 Locale[] getLocale()
           
 Locale getLocale(int index)
           
 int getLocaleCount()
           
 boolean isValid()
           
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void removeAllLocale()
           
 Locale removeLocale(int index)
           
 void setLocale(int index, Locale vLocale)
           
 void setLocale(Locale[] localeArray)
           
static AvailableLocales unmarshal(java.io.Reader reader)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailableLocales

public AvailableLocales()
Method Detail

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