/*
 * 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.config.jxb;

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

import java.io.IOException;
import java.io.Reader;
import java.io.Serializable;
import java.io.Writer;
import org.exolab.castor.xml.MarshalException;
import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;
import org.exolab.castor.xml.ValidationException;
import org.xml.sax.ContentHandler;

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


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

    /**
     * Field _entityviewConfig
     */
    private com.queplix.core.modules.config.jxb.EntityviewConfig _entityviewConfig;

    /**
     * Field _viewObjects
     */
    private com.queplix.core.modules.config.jxb.ViewObjects _viewObjects;

    /**
     * Field _portalsConfig
     */
    private com.queplix.core.modules.config.jxb.PortalsConfig _portalsConfig;

    /**
     * Field _customConfig
     */
    private com.queplix.core.modules.config.jxb.CustomConfig _customConfig;

    /**
     * Field _userpropertyConfig
     */
    private com.queplix.core.modules.config.jxb.UserpropertyConfig _userpropertyConfig;

    /**
     * Field _syspropertyConfig
     */
    private com.queplix.core.modules.config.jxb.SyspropertyConfig _syspropertyConfig;

    /**
     * Field _contextMenuConfig
     */
    private com.queplix.core.modules.config.jxb.ContextMenuConfig _contextMenuConfig;

    /**
     * Field _localizationConfig
     */
    private com.queplix.core.modules.config.jxb.LocalizationConfig _localizationConfig;


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

    public Config() 
     {
        super();
    } //-- com.queplix.core.modules.config.jxb.Config()


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

    /**
     * Returns the value of field 'contextMenuConfig'.
     * 
     * @return ContextMenuConfig
     * @return the value of field 'contextMenuConfig'.
     */
    public com.queplix.core.modules.config.jxb.ContextMenuConfig getContextMenuConfig()
    {
        return this._contextMenuConfig;
    } //-- com.queplix.core.modules.config.jxb.ContextMenuConfig getContextMenuConfig() 

    /**
     * Returns the value of field 'customConfig'.
     * 
     * @return CustomConfig
     * @return the value of field 'customConfig'.
     */
    public com.queplix.core.modules.config.jxb.CustomConfig getCustomConfig()
    {
        return this._customConfig;
    } //-- com.queplix.core.modules.config.jxb.CustomConfig getCustomConfig() 

    /**
     * Returns the value of field 'entityviewConfig'.
     * 
     * @return EntityviewConfig
     * @return the value of field 'entityviewConfig'.
     */
    public com.queplix.core.modules.config.jxb.EntityviewConfig getEntityviewConfig()
    {
        return this._entityviewConfig;
    } //-- com.queplix.core.modules.config.jxb.EntityviewConfig getEntityviewConfig() 

    /**
     * Returns the value of field 'localizationConfig'.
     * 
     * @return LocalizationConfig
     * @return the value of field 'localizationConfig'.
     */
    public com.queplix.core.modules.config.jxb.LocalizationConfig getLocalizationConfig()
    {
        return this._localizationConfig;
    } //-- com.queplix.core.modules.config.jxb.LocalizationConfig getLocalizationConfig() 

    /**
     * Returns the value of field 'portalsConfig'.
     * 
     * @return PortalsConfig
     * @return the value of field 'portalsConfig'.
     */
    public com.queplix.core.modules.config.jxb.PortalsConfig getPortalsConfig()
    {
        return this._portalsConfig;
    } //-- com.queplix.core.modules.config.jxb.PortalsConfig getPortalsConfig() 

    /**
     * Returns the value of field 'syspropertyConfig'.
     * 
     * @return SyspropertyConfig
     * @return the value of field 'syspropertyConfig'.
     */
    public com.queplix.core.modules.config.jxb.SyspropertyConfig getSyspropertyConfig()
    {
        return this._syspropertyConfig;
    } //-- com.queplix.core.modules.config.jxb.SyspropertyConfig getSyspropertyConfig() 

    /**
     * Returns the value of field 'userpropertyConfig'.
     * 
     * @return UserpropertyConfig
     * @return the value of field 'userpropertyConfig'.
     */
    public com.queplix.core.modules.config.jxb.UserpropertyConfig getUserpropertyConfig()
    {
        return this._userpropertyConfig;
    } //-- com.queplix.core.modules.config.jxb.UserpropertyConfig getUserpropertyConfig() 

    /**
     * Returns the value of field 'viewObjects'.
     * 
     * @return ViewObjects
     * @return the value of field 'viewObjects'.
     */
    public com.queplix.core.modules.config.jxb.ViewObjects getViewObjects()
    {
        return this._viewObjects;
    } //-- com.queplix.core.modules.config.jxb.ViewObjects getViewObjects() 

    /**
     * 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 'contextMenuConfig'.
     * 
     * @param contextMenuConfig the value of field
     * 'contextMenuConfig'.
     */
    public void setContextMenuConfig(com.queplix.core.modules.config.jxb.ContextMenuConfig contextMenuConfig)
    {
        this._contextMenuConfig = contextMenuConfig;
    } //-- void setContextMenuConfig(com.queplix.core.modules.config.jxb.ContextMenuConfig) 

    /**
     * Sets the value of field 'customConfig'.
     * 
     * @param customConfig the value of field 'customConfig'.
     */
    public void setCustomConfig(com.queplix.core.modules.config.jxb.CustomConfig customConfig)
    {
        this._customConfig = customConfig;
    } //-- void setCustomConfig(com.queplix.core.modules.config.jxb.CustomConfig) 

    /**
     * Sets the value of field 'entityviewConfig'.
     * 
     * @param entityviewConfig the value of field 'entityviewConfig'
     */
    public void setEntityviewConfig(com.queplix.core.modules.config.jxb.EntityviewConfig entityviewConfig)
    {
        this._entityviewConfig = entityviewConfig;
    } //-- void setEntityviewConfig(com.queplix.core.modules.config.jxb.EntityviewConfig) 

    /**
     * Sets the value of field 'localizationConfig'.
     * 
     * @param localizationConfig the value of field
     * 'localizationConfig'.
     */
    public void setLocalizationConfig(com.queplix.core.modules.config.jxb.LocalizationConfig localizationConfig)
    {
        this._localizationConfig = localizationConfig;
    } //-- void setLocalizationConfig(com.queplix.core.modules.config.jxb.LocalizationConfig) 

    /**
     * Sets the value of field 'portalsConfig'.
     * 
     * @param portalsConfig the value of field 'portalsConfig'.
     */
    public void setPortalsConfig(com.queplix.core.modules.config.jxb.PortalsConfig portalsConfig)
    {
        this._portalsConfig = portalsConfig;
    } //-- void setPortalsConfig(com.queplix.core.modules.config.jxb.PortalsConfig) 

    /**
     * Sets the value of field 'syspropertyConfig'.
     * 
     * @param syspropertyConfig the value of field
     * 'syspropertyConfig'.
     */
    public void setSyspropertyConfig(com.queplix.core.modules.config.jxb.SyspropertyConfig syspropertyConfig)
    {
        this._syspropertyConfig = syspropertyConfig;
    } //-- void setSyspropertyConfig(com.queplix.core.modules.config.jxb.SyspropertyConfig) 

    /**
     * Sets the value of field 'userpropertyConfig'.
     * 
     * @param userpropertyConfig the value of field
     * 'userpropertyConfig'.
     */
    public void setUserpropertyConfig(com.queplix.core.modules.config.jxb.UserpropertyConfig userpropertyConfig)
    {
        this._userpropertyConfig = userpropertyConfig;
    } //-- void setUserpropertyConfig(com.queplix.core.modules.config.jxb.UserpropertyConfig) 

    /**
     * Sets the value of field 'viewObjects'.
     * 
     * @param viewObjects the value of field 'viewObjects'.
     */
    public void setViewObjects(com.queplix.core.modules.config.jxb.ViewObjects viewObjects)
    {
        this._viewObjects = viewObjects;
    } //-- void setViewObjects(com.queplix.core.modules.config.jxb.ViewObjects) 

    /**
     * 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.config.jxb.Config) Unmarshaller.unmarshal(com.queplix.core.modules.config.jxb.Config.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() 

}
