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

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

import org.exolab.castor.xml.validators.BooleanValidator;
import org.exolab.castor.xml.validators.LongValidator;
import org.exolab.castor.xml.validators.StringValidator;

/**
 * Class EntityViewTypeDescriptor.
 *
 * @version $Revision$ $Date$
 */
public class EntityViewTypeDescriptor
        extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {

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

    /**
     * Field nsPrefix
     */
    private java.lang.String nsPrefix;

    /**
     * Field nsURI
     */
    private java.lang.String nsURI;

    /**
     * Field xmlName
     */
    private java.lang.String xmlName;

    /**
     * Field identity
     */
    private org.exolab.castor.xml.XMLFieldDescriptor identity;

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

    public EntityViewTypeDescriptor() {
        super();
        xmlName = "entityViewType";

        //-- set grouping compositor
        setCompositorAsSequence();
        org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
        org.exolab.castor.mapping.FieldHandler handler = null;
        org.exolab.castor.xml.FieldValidator fieldValidator = null;
        //-- initialize attribute descriptors

        //-- _name
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                java.lang.String.class, "_name", "name",
                org.exolab.castor.xml.NodeType.Attribute);
        desc.setImmutable(true);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getName();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.setName((java.lang.String) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return null;
            }
        };
        desc.setHandler(handler);
        desc.setRequired(true);
        desc.setMultivalued(false);
        addFieldDescriptor(desc);

        //-- validation code for: _name
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        fieldValidator.setMinOccurs(1);
        { //-- local scope
            StringValidator typeValidator = new StringValidator();
            typeValidator.setWhiteSpace("preserve");
            typeValidator.setPattern("[a-z0-9._]+");
            fieldValidator.setValidator(typeValidator);
        }
        desc.setValidator(fieldValidator);
        //-- _dbobject
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                java.lang.String.class, "_dbobject", "dbobject",
                org.exolab.castor.xml.NodeType.Attribute);
        desc.setImmutable(true);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getDbobject();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.setDbobject((java.lang.String) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return null;
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(false);
        addFieldDescriptor(desc);

        //-- validation code for: _dbobject
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        { //-- local scope
            StringValidator typeValidator = new StringValidator();
            typeValidator.setWhiteSpace("preserve");
            fieldValidator.setValidator(typeValidator);
        }
        desc.setValidator(fieldValidator);
        //-- _dbschema
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                java.lang.String.class, "_dbschema", "dbschema",
                org.exolab.castor.xml.NodeType.Attribute);
        desc.setImmutable(true);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getDbschema();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.setDbschema((java.lang.String) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return null;
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(false);
        addFieldDescriptor(desc);

        //-- validation code for: _dbschema
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        { //-- local scope
            StringValidator typeValidator = new StringValidator();
            typeValidator.setWhiteSpace("preserve");
            fieldValidator.setValidator(typeValidator);
        }
        desc.setValidator(fieldValidator);
        //-- _initialized
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                java.lang.Boolean.class, "_initialized", "initialized",
                org.exolab.castor.xml.NodeType.Attribute);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getInitialized();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.setInitialized((java.lang.Boolean) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return null;
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(false);
        addFieldDescriptor(desc);

        //-- validation code for: _initialized
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        { //-- local scope
            BooleanValidator typeValidator = new BooleanValidator();
            fieldValidator.setValidator(typeValidator);
        }
        desc.setValidator(fieldValidator);
        //-- _listfield
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                java.lang.String.class, "_listfield", "listfield",
                org.exolab.castor.xml.NodeType.Attribute);
        desc.setImmutable(true);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getListfield();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.setListfield((java.lang.String) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return null;
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(false);
        addFieldDescriptor(desc);

        //-- validation code for: _listfield
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        { //-- local scope
            StringValidator typeValidator = new StringValidator();
            typeValidator.setWhiteSpace("preserve");
            fieldValidator.setValidator(typeValidator);
        }
        desc.setValidator(fieldValidator);
        //-- _historyfield
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                java.lang.String.class, "_historyfield", "historyfield",
                org.exolab.castor.xml.NodeType.Attribute);
        desc.setImmutable(true);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getHistoryfield();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.setHistoryfield((java.lang.String) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return null;
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(false);
        addFieldDescriptor(desc);

        //-- validation code for: _historyfield
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        { //-- local scope
            StringValidator typeValidator = new StringValidator();
            typeValidator.setWhiteSpace("preserve");
            fieldValidator.setValidator(typeValidator);
        }
        desc.setValidator(fieldValidator);
        //-- _cache
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                java.lang.Boolean.class, "_cache", "cache",
                org.exolab.castor.xml.NodeType.Attribute);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getCache();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.setCache((java.lang.Boolean) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return null;
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(false);
        addFieldDescriptor(desc);

        //-- validation code for: _cache
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        { //-- local scope
            BooleanValidator typeValidator = new BooleanValidator();
            fieldValidator.setValidator(typeValidator);
        }
        desc.setValidator(fieldValidator);
        //-- _hasHistoryFields
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                java.lang.Boolean.class, "_hasHistoryFields",
                "hasHistoryFields", org.exolab.castor.xml.NodeType.Attribute);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getHasHistoryFields();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.setHasHistoryFields((java.lang.Boolean) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return null;
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(false);
        addFieldDescriptor(desc);

        //-- validation code for: _hasHistoryFields
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        { //-- local scope
            BooleanValidator typeValidator = new BooleanValidator();
            fieldValidator.setValidator(typeValidator);
        }
        desc.setValidator(fieldValidator);
        //-- _pkeyfield
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                java.lang.String.class, "_pkeyfield", "pkeyfield",
                org.exolab.castor.xml.NodeType.Attribute);
        desc.setImmutable(true);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getPkeyfield();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.setPkeyfield((java.lang.String) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return null;
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(false);
        addFieldDescriptor(desc);

        //-- validation code for: _pkeyfield
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        { //-- local scope
            StringValidator typeValidator = new StringValidator();
            typeValidator.setWhiteSpace("preserve");
            fieldValidator.setValidator(typeValidator);
        }
        desc.setValidator(fieldValidator);
        //-- _dbobjAlias
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                java.lang.String.class, "_dbobjAlias", "dbobjAlias",
                org.exolab.castor.xml.NodeType.Attribute);
        desc.setImmutable(true);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getDbobjAlias();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.setDbobjAlias((java.lang.String) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return null;
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(false);
        addFieldDescriptor(desc);

        //-- validation code for: _dbobjAlias
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        { //-- local scope
            StringValidator typeValidator = new StringValidator();
            typeValidator.setWhiteSpace("preserve");
            fieldValidator.setValidator(typeValidator);
        }
        desc.setValidator(fieldValidator);
        //-- _versionId
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                java.lang.Long.class, "_versionId", "versionId",
                org.exolab.castor.xml.NodeType.Attribute);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getVersionId();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.setVersionId((java.lang.Long) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return null;
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(false);
        addFieldDescriptor(desc);

        //-- validation code for: _versionId
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        { //-- local scope
            LongValidator typeValidator = new LongValidator();
            fieldValidator.setValidator(typeValidator);
        }
        desc.setValidator(fieldValidator);
        //-- initialize element descriptors

        //-- _metainfList
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                com.queplix.core.jxb.entity.Metainf.class, "_metainfList",
                "metainf", org.exolab.castor.xml.NodeType.Element);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getMetainf();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.addMetainf(
                            (com.queplix.core.jxb.entity.Metainf) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return new com.queplix.core.jxb.entity.Metainf();
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(true);
        addFieldDescriptor(desc);

        //-- validation code for: _metainfList
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        fieldValidator.setMinOccurs(0);
        { //-- local scope
        }
        desc.setValidator(fieldValidator);
        //-- _efieldList
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                com.queplix.core.jxb.entity.Efield.class, "_efieldList",
                "efield", org.exolab.castor.xml.NodeType.Element);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getEfield();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.addEfield(
                            (com.queplix.core.jxb.entity.Efield) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return new com.queplix.core.jxb.entity.Efield();
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(true);
        addFieldDescriptor(desc);

        //-- validation code for: _efieldList
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        fieldValidator.setMinOccurs(0);
        { //-- local scope
        }
        desc.setValidator(fieldValidator);
        //-- _datasetList
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                com.queplix.core.jxb.entity.Dataset.class, "_datasetList",
                "dataset", org.exolab.castor.xml.NodeType.Element);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getDataset();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.addDataset(
                            (com.queplix.core.jxb.entity.Dataset) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return new com.queplix.core.jxb.entity.Dataset();
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(true);
        addFieldDescriptor(desc);

        //-- validation code for: _datasetList
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        fieldValidator.setMinOccurs(0);
        { //-- local scope
        }
        desc.setValidator(fieldValidator);
        //-- _scripts
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                com.queplix.core.jxb.entity.Scripts.class, "_scripts",
                "scripts", org.exolab.castor.xml.NodeType.Element);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getScripts();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.setScripts(
                            (com.queplix.core.jxb.entity.Scripts) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return new com.queplix.core.jxb.entity.Scripts();
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(false);
        addFieldDescriptor(desc);

        //-- validation code for: _scripts
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        { //-- local scope
        }
        desc.setValidator(fieldValidator);
        //-- _fkeysList
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                com.queplix.core.jxb.entity.Fkeys.class, "_fkeysList", "fkeys",
                org.exolab.castor.xml.NodeType.Element);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getFkeys();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.addFkeys((com.queplix.core.jxb.entity.Fkeys) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return new com.queplix.core.jxb.entity.Fkeys();
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(true);
        addFieldDescriptor(desc);

        //-- validation code for: _fkeysList
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        fieldValidator.setMinOccurs(0);
        { //-- local scope
        }
        desc.setValidator(fieldValidator);
        //-- _eqlConstraint
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                java.lang.String.class, "_eqlConstraint", "eql-constraint",
                org.exolab.castor.xml.NodeType.Element);
        desc.setImmutable(true);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getEqlConstraint();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.setEqlConstraint((java.lang.String) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return null;
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(false);
        addFieldDescriptor(desc);

        //-- validation code for: _eqlConstraint
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        { //-- local scope
            StringValidator typeValidator = new StringValidator();
            typeValidator.setWhiteSpace("preserve");
            fieldValidator.setValidator(typeValidator);
        }
        desc.setValidator(fieldValidator);
        //-- _eqlWhere
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                java.lang.String.class, "_eqlWhere", "eql-where",
                org.exolab.castor.xml.NodeType.Element);
        desc.setImmutable(true);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getEqlWhere();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.setEqlWhere((java.lang.String) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return null;
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(false);
        addFieldDescriptor(desc);

        //-- validation code for: _eqlWhere
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        { //-- local scope
            StringValidator typeValidator = new StringValidator();
            typeValidator.setWhiteSpace("preserve");
            fieldValidator.setValidator(typeValidator);
        }
        desc.setValidator(fieldValidator);
        //-- _eqlOrder
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                java.lang.String.class, "_eqlOrder", "eql-order",
                org.exolab.castor.xml.NodeType.Element);
        desc.setImmutable(true);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getEqlOrder();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.setEqlOrder((java.lang.String) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return null;
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(false);
        addFieldDescriptor(desc);

        //-- validation code for: _eqlOrder
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        { //-- local scope
            StringValidator typeValidator = new StringValidator();
            typeValidator.setWhiteSpace("preserve");
            fieldValidator.setValidator(typeValidator);
        }
        desc.setValidator(fieldValidator);
        //-- _entityList
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                com.queplix.core.jxb.entity.Entity.class, "_entityList",
                "entity", org.exolab.castor.xml.NodeType.Element);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getEntity();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.addEntity(
                            (com.queplix.core.jxb.entity.Entity) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return new com.queplix.core.jxb.entity.Entity();
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(true);
        addFieldDescriptor(desc);

        //-- validation code for: _entityList
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        fieldValidator.setMinOccurs(0);
        { //-- local scope
        }
        desc.setValidator(fieldValidator);
        //-- _chainTableList
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
                com.queplix.core.jxb.entity.ChainTable.class, "_chainTableList",
                "chainTable", org.exolab.castor.xml.NodeType.Element);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue(java.lang.Object object)
                    throws IllegalStateException {
                EntityViewType target = (EntityViewType) object;
                return target.getChainTable();
            }

            public void setValue(java.lang.Object object,
                                 java.lang.Object value)
                    throws IllegalStateException, IllegalArgumentException {
                try {
                    EntityViewType target = (EntityViewType) object;
                    target.addChainTable(
                            (com.queplix.core.jxb.entity.ChainTable) value);
                }
                catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }

            public java.lang.Object newInstance(java.lang.Object parent) {
                return new com.queplix.core.jxb.entity.ChainTable();
            }
        };
        desc.setHandler(handler);
        desc.setMultivalued(true);
        addFieldDescriptor(desc);

        //-- validation code for: _chainTableList
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        fieldValidator.setMinOccurs(0);
        { //-- local scope
        }
        desc.setValidator(fieldValidator);
    } //-- com.queplix.core.jxb.entity.EntityViewTypeDescriptor()

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

    /**
     * Method getAccessMode
     *
     * @return AccessMode
     */
    public org.exolab.castor.mapping.AccessMode getAccessMode() {
        return null;
    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() 

    /**
     * Method getExtends
     *
     * @return ClassDescriptor
     */
    public org.exolab.castor.mapping.ClassDescriptor getExtends() {
        return null;
    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 

    /**
     * Method getIdentity
     *
     * @return FieldDescriptor
     */
    public org.exolab.castor.mapping.FieldDescriptor getIdentity() {
        return identity;
    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 

    /**
     * Method getJavaClass
     *
     * @return Class
     */
    public java.lang.Class getJavaClass() {
        return com.queplix.core.jxb.entity.EntityViewType.class;
    } //-- java.lang.Class getJavaClass() 

    /**
     * Method getNameSpacePrefix
     *
     * @return String
     */
    public java.lang.String getNameSpacePrefix() {
        return nsPrefix;
    } //-- java.lang.String getNameSpacePrefix() 

    /**
     * Method getNameSpaceURI
     *
     * @return String
     */
    public java.lang.String getNameSpaceURI() {
        return nsURI;
    } //-- java.lang.String getNameSpaceURI() 

    /**
     * Method getValidator
     *
     * @return TypeValidator
     */
    public org.exolab.castor.xml.TypeValidator getValidator() {
        return this;
    } //-- org.exolab.castor.xml.TypeValidator getValidator() 

    /**
     * Method getXMLName
     *
     * @return String
     */
    public java.lang.String getXMLName() {
        return xmlName;
    } //-- java.lang.String getXMLName() 

}
