/*
 * This class was automatically generated with 
 * <a href="http://www.castor.org">Castor 0.9.7</a>, using an XML
 * Schema.
 * $Id$
 */

package com.queplix.core.modules.inbox.jxb;

//---------------------------------/
//- Imported classes and packages -/
//---------------------------------/

import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;

/**
 * Qx inbox structure
 *
 * @version $Revision$ $Date$
 */
public class InboxConfig extends com.queplix.core.utils.jxb.JXBObject
        implements java.io.Serializable {

    //--------------------------/
    //- Class/Member Variables -/
    //--------------------------/

    /**
     * The full-qualified name of java class
     */
    private java.lang.String _messageBuilderClassName;

    /**
     * Set of com.queplix.core.modules.inbox.utils.InboxProvider
     * implementations
     */
    private com.queplix.core.modules.inbox.jxb.Providers _providers;

    /**
     * Set of com.queplix.core.modules.inbox.utils.MailFilter
     * implementations
     */
    private com.queplix.core.modules.inbox.jxb.Filters _filters;

    /**
     * Field _accountConfig
     */
    private com.queplix.core.modules.inbox.jxb.AccountConfig _accountConfig;

    //----------------/
    //- Constructors -/
    //----------------/

    public InboxConfig() {
        super();
    } //-- com.queplix.core.modules.inbox.jxb.InboxConfig()

    //-----------/
    //- Methods -/
    //-----------/

    /**
     * Returns the value of field 'accountConfig'.
     *
     * @return the value of field 'accountConfig'.
     */
    public com.queplix.core.modules.inbox.jxb.AccountConfig getAccountConfig() {
        return this._accountConfig;
    } //-- com.queplix.core.modules.inbox.jxb.AccountConfig getAccountConfig() 

    /**
     * Returns the value of field 'filters'. The field 'filters'
     * has the following description: Set of
     * com.queplix.core.modules.inbox.utils.MailFilter
     * implementations
     *
     * @return the value of field 'filters'.
     */
    public com.queplix.core.modules.inbox.jxb.Filters getFilters() {
        return this._filters;
    } //-- com.queplix.core.modules.inbox.jxb.Filters getFilters() 

    /**
     * Returns the value of field 'messageBuilderClassName'. The
     * field 'messageBuilderClassName' has the following
     * description: The full-qualified name of java class
     *
     * @return the value of field 'messageBuilderClassName'.
     */
    public java.lang.String getMessageBuilderClassName() {
        return this._messageBuilderClassName;
    } //-- java.lang.String getMessageBuilderClassName() 

    /**
     * Returns the value of field 'providers'. The field
     * 'providers' has the following description: Set of
     * com.queplix.core.modules.inbox.utils.InboxProvider
     * implementations
     *
     * @return the value of field 'providers'.
     */
    public com.queplix.core.modules.inbox.jxb.Providers getProviders() {
        return this._providers;
    } //-- com.queplix.core.modules.inbox.jxb.Providers getProviders() 

    /**
     * Method isValid
     *
     * @return boolean
     */
    public boolean isValid() {
        try {
            validate();
        }
        catch (org.exolab.castor.xml.ValidationException vex) {
            return false;
        }
        return true;
    } //-- boolean isValid() 

    /**
     * Method marshal
     *
     * @param out
     */
    public void marshal(java.io.Writer out)
            throws org.exolab.castor.xml.MarshalException,
            org.exolab.castor.xml.ValidationException {

        Marshaller.marshal(this, out);
    } //-- void marshal(java.io.Writer) 

    /**
     * Method marshal
     *
     * @param handler
     */
    public void marshal(org.xml.sax.ContentHandler handler)
            throws java.io.IOException, org.exolab.castor.xml.MarshalException,
            org.exolab.castor.xml.ValidationException {

        Marshaller.marshal(this, handler);
    } //-- void marshal(org.xml.sax.ContentHandler) 

    /**
     * Sets the value of field 'accountConfig'.
     *
     * @param accountConfig the value of field 'accountConfig'.
     */
    public void setAccountConfig(
            com.queplix.core.modules.inbox.jxb.AccountConfig accountConfig) {
        this._accountConfig = accountConfig;
    } //-- void setAccountConfig(com.queplix.core.modules.inbox.jxb.AccountConfig) 

    /**
     * Sets the value of field 'filters'. The field 'filters' has
     * the following description: Set of
     * com.queplix.core.modules.inbox.utils.MailFilter
     * implementations
     *
     * @param filters the value of field 'filters'.
     */
    public void setFilters(com.queplix.core.modules.inbox.jxb.Filters filters) {
        this._filters = filters;
    } //-- void setFilters(com.queplix.core.modules.inbox.jxb.Filters) 

    /**
     * Sets the value of field 'messageBuilderClassName'. The field
     * 'messageBuilderClassName' has the following description: The
     * full-qualified name of java class
     *
     * @param messageBuilderClassName the value of field
     *                                'messageBuilderClassName'.
     */
    public void setMessageBuilderClassName(
            java.lang.String messageBuilderClassName) {
        this._messageBuilderClassName = messageBuilderClassName;
    } //-- void setMessageBuilderClassName(java.lang.String) 

    /**
     * Sets the value of field 'providers'. The field 'providers'
     * has the following description: Set of
     * com.queplix.core.modules.inbox.utils.InboxProvider
     * implementations
     *
     * @param providers the value of field 'providers'.
     */
    public void setProviders(
            com.queplix.core.modules.inbox.jxb.Providers providers) {
        this._providers = providers;
    } //-- void setProviders(com.queplix.core.modules.inbox.jxb.Providers) 

    /**
     * Method unmarshal
     *
     * @param reader
     * @return Object
     */
    public static java.lang.Object unmarshal(java.io.Reader reader)
            throws org.exolab.castor.xml.MarshalException,
            org.exolab.castor.xml.ValidationException {
        return (com.queplix.core.modules.inbox.jxb.InboxConfig) Unmarshaller
                .unmarshal(com.queplix.core.modules.inbox.jxb.InboxConfig.class,
                        reader);
    } //-- java.lang.Object unmarshal(java.io.Reader) 

    /**
     * Method validate
     */
    public void validate()
            throws org.exolab.castor.xml.ValidationException {
        org.exolab.castor.xml.Validator validator
                = new org.exolab.castor.xml.Validator();
        validator.validate(this);
    } //-- void validate() 

}
