uk.ac.essex.common.lang.xml.castor
Class Locale

java.lang.Object
  extended by uk.ac.essex.common.lang.xml.castor.Locale
All Implemented Interfaces:
java.io.Serializable

public class Locale
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Locale()
           
 
Method Summary
 java.lang.String getCountry()
          Returns the value of field 'country'.
 java.lang.String getLanguage()
          Returns the value of field 'language'.
 boolean isValid()
           
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setCountry(java.lang.String country)
          Sets the value of field 'country'.
 void setLanguage(java.lang.String language)
          Sets the value of field 'language'.
static Locale 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

Locale

public Locale()
Method Detail

getCountry

public java.lang.String getCountry()
Returns the value of field 'country'.

Returns:
the value of field 'country'.

getLanguage

public java.lang.String getLanguage()
Returns the value of field 'language'.

Returns:
the value of field 'language'.

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

setCountry

public void setCountry(java.lang.String country)
Sets the value of field 'country'.

Parameters:
country - the value of field 'country'.

setLanguage

public void setLanguage(java.lang.String language)
Sets the value of field 'language'.

Parameters:
language - the value of field 'language'.

unmarshal

public static Locale 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