/*
 * 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;

/**
 * Class FormExtensionType.
 * 
 * @version $Revision$ $Date$
 */
public class FormExtensionType extends com.queplix.core.utils.jxb.JXBObject 
implements java.io.Serializable
{


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

    /**
     * Field _htmlelements
     */
    private com.queplix.core.modules.config.jxb.Htmlelements _htmlelements;

    /**
     * Field _buttons
     */
    private com.queplix.core.modules.config.jxb.Buttons _buttons;

    /**
     * Field _extLayout
     */
    private com.queplix.core.modules.config.jxb.ExtLayout _extLayout;


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

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


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

    /**
     * Returns the value of field 'buttons'.
     * 
     * @return Buttons
     * @return the value of field 'buttons'.
     */
    public com.queplix.core.modules.config.jxb.Buttons getButtons()
    {
        return this._buttons;
    } //-- com.queplix.core.modules.config.jxb.Buttons getButtons() 

    /**
     * Returns the value of field 'extLayout'.
     * 
     * @return ExtLayout
     * @return the value of field 'extLayout'.
     */
    public com.queplix.core.modules.config.jxb.ExtLayout getExtLayout()
    {
        return this._extLayout;
    } //-- com.queplix.core.modules.config.jxb.ExtLayout getExtLayout() 

    /**
     * Returns the value of field 'htmlelements'.
     * 
     * @return Htmlelements
     * @return the value of field 'htmlelements'.
     */
    public com.queplix.core.modules.config.jxb.Htmlelements getHtmlelements()
    {
        return this._htmlelements;
    } //-- com.queplix.core.modules.config.jxb.Htmlelements getHtmlelements() 

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

    /**
     * Sets the value of field 'extLayout'.
     * 
     * @param extLayout the value of field 'extLayout'.
     */
    public void setExtLayout(com.queplix.core.modules.config.jxb.ExtLayout extLayout)
    {
        this._extLayout = extLayout;
    } //-- void setExtLayout(com.queplix.core.modules.config.jxb.ExtLayout) 

    /**
     * Sets the value of field 'htmlelements'.
     * 
     * @param htmlelements the value of field 'htmlelements'.
     */
    public void setHtmlelements(com.queplix.core.modules.config.jxb.Htmlelements htmlelements)
    {
        this._htmlelements = htmlelements;
    } //-- void setHtmlelements(com.queplix.core.modules.config.jxb.Htmlelements) 

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

}
