/*
 * 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.Reader;
import java.io.Serializable;
import java.io.Writer;
import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;
import org.exolab.castor.xml.ValidationException;

/**
 * Base type for all containers of localized objects, contains data
 * to identify set of localized objects
 *  
 * 
 * @version $Revision$ $Date$
 */
public abstract class LocalizedObjectsId extends com.queplix.core.utils.jxb.JXBObject 
implements java.io.Serializable
{


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

    /**
     * Identifies localized objects
     */
    private java.lang.String _id;

    /**
     * Types of entities that can be localized, see
     * com.queplix.core.modules.config.utils.LocalizedObjects
     */
    private java.lang.Integer _type;

    /**
     * Types of localization (for ex. captions, descriptions,
     * etc.), see
     * com.queplix.core.modules.config.utils.LocalizationTypes
     */
    private java.lang.Integer _localizationType;


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

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


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

    /**
     * Returns the value of field 'id'. The field 'id' has the
     * following description: Identifies localized objects
     * 
     * @return String
     * @return the value of field 'id'.
     */
    public java.lang.String getId()
    {
        return this._id;
    } //-- java.lang.String getId() 

    /**
     * Returns the value of field 'localizationType'. The field
     * 'localizationType' has the following description: Types of
     * localization (for ex. captions, descriptions, etc.), see
     * com.queplix.core.modules.config.utils.LocalizationTypes
     * 
     * @return Integer
     * @return the value of field 'localizationType'.
     */
    public java.lang.Integer getLocalizationType()
    {
        return this._localizationType;
    } //-- java.lang.Integer getLocalizationType() 

    /**
     * Returns the value of field 'type'. The field 'type' has the
     * following description: Types of entities that can be
     * localized, see
     * com.queplix.core.modules.config.utils.LocalizedObjects
     * 
     * @return Integer
     * @return the value of field 'type'.
     */
    public java.lang.Integer getType()
    {
        return this._type;
    } //-- java.lang.Integer getType() 

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

    /**
     * Sets the value of field 'id'. The field 'id' has the
     * following description: Identifies localized objects
     * 
     * @param id the value of field 'id'.
     */
    public void setId(java.lang.String id)
    {
        this._id = id;
    } //-- void setId(java.lang.String) 

    /**
     * Sets the value of field 'localizationType'. The field
     * 'localizationType' has the following description: Types of
     * localization (for ex. captions, descriptions, etc.), see
     * com.queplix.core.modules.config.utils.LocalizationTypes
     * 
     * @param localizationType the value of field 'localizationType'
     */
    public void setLocalizationType(java.lang.Integer localizationType)
    {
        this._localizationType = localizationType;
    } //-- void setLocalizationType(java.lang.Integer) 

    /**
     * Sets the value of field 'type'. The field 'type' has the
     * following description: Types of entities that can be
     * localized, see
     * com.queplix.core.modules.config.utils.LocalizedObjects
     * 
     * @param type the value of field 'type'.
     */
    public void setType(java.lang.Integer type)
    {
        this._type = type;
    } //-- void setType(java.lang.Integer) 

    /**
     * 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() 

}
