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

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

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

See Also:
Serialized Form

Constructor Summary
Resource()
           
 
Method Summary
 AvailableLocales getAvailableLocales()
          Returns the value of field 'availableLocales'.
 java.lang.String getBaseName()
          Returns the value of field 'baseName'.
 boolean isValid()
           
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setAvailableLocales(AvailableLocales availableLocales)
          Sets the value of field 'availableLocales'.
 void setBaseName(java.lang.String baseName)
          Sets the value of field 'baseName'.
static Resource 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

Resource

public Resource()
Method Detail

getAvailableLocales

public AvailableLocales getAvailableLocales()
Returns the value of field 'availableLocales'.

Returns:
the value of field 'availableLocales'.

getBaseName

public java.lang.String getBaseName()
Returns the value of field 'baseName'.

Returns:
the value of field 'baseName'.

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

setAvailableLocales

public void setAvailableLocales(AvailableLocales availableLocales)
Sets the value of field 'availableLocales'.

Parameters:
availableLocales - the value of field 'availableLocales'

setBaseName

public void setBaseName(java.lang.String baseName)
Sets the value of field 'baseName'.

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

unmarshal

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