//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.1-05/30/2003 05:06 AM(java_re)-fcs 
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2004.05.05 at 11:43:44 PDT 
//


package DDLSchema.impl;

public class DDDefinitionTypeImpl implements DDLSchema.DDDefinitionType, com.sun.xml.bind.JAXBObject, DDLSchema.impl.runtime.UnmarshallableObject, DDLSchema.impl.runtime.XMLSerializable, DDLSchema.impl.runtime.ValidatableObject
{

    protected com.sun.xml.bind.util.ListImpl _Section = new com.sun.xml.bind.util.ListImpl(new java.util.ArrayList());
    public final static java.lang.Class version = (DDLSchema.impl.JAXBVersion.class);
    private static com.sun.msv.grammar.Grammar schemaFragment;

    private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
        return (DDLSchema.DDDefinitionType.class);
    }

    public java.util.List getSection() {
        return _Section;
    }

    public DDLSchema.impl.runtime.UnmarshallingEventHandler createUnmarshaller(DDLSchema.impl.runtime.UnmarshallingContext context) {
        return new DDLSchema.impl.DDDefinitionTypeImpl.Unmarshaller(context);
    }

    public void serializeElementBody(DDLSchema.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        int idx1 = 0;
        final int len1 = _Section.size();
        while (idx1 != len1) {
            if (_Section.get(idx1) instanceof DDLSchema.SectionType) {
                if (_Section.get(idx1) instanceof javax.xml.bind.Element) {
                    context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                } else {
                    context.startElement("http://www.cern.ch/cms/DDL", "Section");
                    int idx_0 = idx1;
                    context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Section.get(idx_0 ++)));
                    context.endNamespaceDecls();
                    int idx_1 = idx1;
                    context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Section.get(idx_1 ++)));
                    context.endAttributes();
                    context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                    context.endElement();
                }
            } else {
                if (_Section.get(idx1) instanceof DDLSchema.SolidSection) {
                    context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                } else {
                    if (_Section.get(idx1) instanceof DDLSchema.SpecParSection) {
                        context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                    } else {
                        if (_Section.get(idx1) instanceof DDLSchema.LogicalPartSection) {
                            context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                        } else {
                            if (_Section.get(idx1) instanceof DDLSchema.RotationSection) {
                                context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                            } else {
                                if (_Section.get(idx1) instanceof DDLSchema.PosPartSection) {
                                    context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                                } else {
                                    if (_Section.get(idx1) instanceof DDLSchema.ConstantsSection) {
                                        context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                                    } else {
                                        if (_Section.get(idx1) instanceof DDLSchema.MaterialSection) {
                                            context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                                        } else {
                                            throw new org.xml.sax.SAXException("type mismatch error");
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    public void serializeAttributes(DDLSchema.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        int idx1 = 0;
        final int len1 = _Section.size();
        while (idx1 != len1) {
            if (!(_Section.get(idx1) instanceof DDLSchema.SectionType)) {
                if (_Section.get(idx1) instanceof DDLSchema.SolidSection) {
                    context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                } else {
                    if (_Section.get(idx1) instanceof DDLSchema.SpecParSection) {
                        context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                    } else {
                        if (_Section.get(idx1) instanceof DDLSchema.LogicalPartSection) {
                            context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                        } else {
                            if (_Section.get(idx1) instanceof DDLSchema.RotationSection) {
                                context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                            } else {
                                if (_Section.get(idx1) instanceof DDLSchema.PosPartSection) {
                                    context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                                } else {
                                    if (_Section.get(idx1) instanceof DDLSchema.ConstantsSection) {
                                        context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                                    } else {
                                        if (_Section.get(idx1) instanceof DDLSchema.MaterialSection) {
                                            context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                                        } else {
                                            throw new org.xml.sax.SAXException("type mismatch error");
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    public void serializeAttributeBody(DDLSchema.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        int idx1 = 0;
        final int len1 = _Section.size();
        while (idx1 != len1) {
            if (_Section.get(idx1) instanceof DDLSchema.SectionType) {
                if (_Section.get(idx1) instanceof javax.xml.bind.Element) {
                    context.childAsAttributeBody(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                } else {
                    context.startElement("http://www.cern.ch/cms/DDL", "Section");
                    int idx_0 = idx1;
                    context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Section.get(idx_0 ++)));
                    context.endNamespaceDecls();
                    int idx_1 = idx1;
                    context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Section.get(idx_1 ++)));
                    context.endAttributes();
                    context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                    context.endElement();
                }
            } else {
                if (_Section.get(idx1) instanceof DDLSchema.SolidSection) {
                    context.childAsAttributeBody(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                } else {
                    if (_Section.get(idx1) instanceof DDLSchema.SpecParSection) {
                        context.childAsAttributeBody(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                    } else {
                        if (_Section.get(idx1) instanceof DDLSchema.LogicalPartSection) {
                            context.childAsAttributeBody(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                        } else {
                            if (_Section.get(idx1) instanceof DDLSchema.RotationSection) {
                                context.childAsAttributeBody(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                            } else {
                                if (_Section.get(idx1) instanceof DDLSchema.PosPartSection) {
                                    context.childAsAttributeBody(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                                } else {
                                    if (_Section.get(idx1) instanceof DDLSchema.ConstantsSection) {
                                        context.childAsAttributeBody(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                                    } else {
                                        if (_Section.get(idx1) instanceof DDLSchema.MaterialSection) {
                                            context.childAsAttributeBody(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                                        } else {
                                            throw new org.xml.sax.SAXException("type mismatch error");
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    public void serializeURIs(DDLSchema.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        int idx1 = 0;
        final int len1 = _Section.size();
        while (idx1 != len1) {
            if (!(_Section.get(idx1) instanceof DDLSchema.SectionType)) {
                if (_Section.get(idx1) instanceof DDLSchema.SolidSection) {
                    context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                } else {
                    if (_Section.get(idx1) instanceof DDLSchema.SpecParSection) {
                        context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                    } else {
                        if (_Section.get(idx1) instanceof DDLSchema.LogicalPartSection) {
                            context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                        } else {
                            if (_Section.get(idx1) instanceof DDLSchema.RotationSection) {
                                context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                            } else {
                                if (_Section.get(idx1) instanceof DDLSchema.PosPartSection) {
                                    context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                                } else {
                                    if (_Section.get(idx1) instanceof DDLSchema.ConstantsSection) {
                                        context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                                    } else {
                                        if (_Section.get(idx1) instanceof DDLSchema.MaterialSection) {
                                            context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Section.get(idx1 ++)));
                                        } else {
                                            throw new org.xml.sax.SAXException("type mismatch error");
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    public java.lang.Class getPrimaryInterface() {
        return (DDLSchema.DDDefinitionType.class);
    }

    public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
        if (schemaFragment == null) {
            schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize((
 "\u00ac\u00ed\u0000\u0005sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun."
+"msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gramm"
+"ar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expression"
+"\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0003I\u0000\u000ecachedHashCodeL\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/l"
+"ang/Boolean;L\u0000\u000bexpandedExpq\u0000~\u0000\u0002xp\u0000\u00b2c\tppsr\u0000 com.sun.msv.gramm"
+"ar.OneOrMoreExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001ccom.sun.msv.grammar.UnaryExp\u0000\u0000"
+"\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0003expq\u0000~\u0000\u0002xq\u0000~\u0000\u0003\u0000\u00b2b\u00fesr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002"
+"\u0000\u0001Z\u0000\u0005valuexp\u0000psq\u0000~\u0000\u0000\u0000\u00b2b\u00fbq\u0000~\u0000\npsq\u0000~\u0000\u0000\u0000\u0098\u00e7 q\u0000~\u0000\npsq\u0000~\u0000\u0000\u0000\u007fkEq\u0000~\u0000"
+"\npsq\u0000~\u0000\u0000\u0000e\u00efjq\u0000~\u0000\npsq\u0000~\u0000\u0000\u0000Ls\u008fq\u0000~\u0000\npsq\u0000~\u0000\u0000\u00002\u00f7\u00b4q\u0000~\u0000\npsr\u0000\'com.su"
+"n.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tnameClasst\u0000\u001fL"
+"com/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv.grammar.Elemen"
+"tExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000\fcontentModelq"
+"\u0000~\u0000\u0002xq\u0000~\u0000\u0003\u0000\u0019{\u00d9q\u0000~\u0000\np\u0000sq\u0000~\u0000\u0000\u0000\u0019{\u00ceppsq\u0000~\u0000\u0006\u0000\u0019{\u00c3q\u0000~\u0000\npsr\u0000 com.sun"
+".msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClassq"
+"\u0000~\u0000\u0012xq\u0000~\u0000\u0003\u0000\u0019{\u00c0q\u0000~\u0000\npsr\u00002com.sun.msv.grammar.Expression$AnySt"
+"ringExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003\u0000\u0000\u0000\bsq\u0000~\u0000\t\u0001q\u0000~\u0000\u001asr\u0000 com.sun.m"
+"sv.grammar.AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.Na"
+"meClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression$Epsil"
+"onExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003\u0000\u0000\u0000\tq\u0000~\u0000\u001bpsr\u0000#com.sun.msv.gramm"
+"ar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNamet\u0000\u0012Ljava/lang/Strin"
+"g;L\u0000\fnamespaceURIq\u0000~\u0000\"xq\u0000~\u0000\u001dt\u0000\u0016DDLSchema.SolidSectiont\u0000+http"
+"://java.sun.com/jaxb/xjc/dummy-elementssq\u0000~\u0000\u0011\u0000\u0019{\u00d9q\u0000~\u0000\np\u0000sq\u0000~"
+"\u0000\u0000\u0000\u0019{\u00ceppsq\u0000~\u0000\u0006\u0000\u0019{\u00c3q\u0000~\u0000\npsq\u0000~\u0000\u0017\u0000\u0019{\u00c0q\u0000~\u0000\npq\u0000~\u0000\u001aq\u0000~\u0000\u001eq\u0000~\u0000 sq\u0000~\u0000"
+"!t\u0000\u0018DDLSchema.SpecParSectionq\u0000~\u0000%sq\u0000~\u0000\u0011\u0000\u0019{\u00d9q\u0000~\u0000\np\u0000sq\u0000~\u0000\u0000\u0000\u0019{\u00ce"
+"ppsq\u0000~\u0000\u0006\u0000\u0019{\u00c3q\u0000~\u0000\npsq\u0000~\u0000\u0017\u0000\u0019{\u00c0q\u0000~\u0000\npq\u0000~\u0000\u001aq\u0000~\u0000\u001eq\u0000~\u0000 sq\u0000~\u0000!t\u0000\u001cDD"
+"LSchema.LogicalPartSectionq\u0000~\u0000%sq\u0000~\u0000\u0011\u0000\u0019{\u00d9q\u0000~\u0000\np\u0000sq\u0000~\u0000\u0000\u0000\u0019{\u00cepp"
+"sq\u0000~\u0000\u0006\u0000\u0019{\u00c3q\u0000~\u0000\npsq\u0000~\u0000\u0017\u0000\u0019{\u00c0q\u0000~\u0000\npq\u0000~\u0000\u001aq\u0000~\u0000\u001eq\u0000~\u0000 sq\u0000~\u0000!t\u0000\u0019DDLS"
+"chema.RotationSectionq\u0000~\u0000%sq\u0000~\u0000\u0011\u0000\u0019{\u00d9q\u0000~\u0000\np\u0000sq\u0000~\u0000\u0000\u0000\u0019{\u00ceppsq\u0000~\u0000"
+"\u0006\u0000\u0019{\u00c3q\u0000~\u0000\npsq\u0000~\u0000\u0017\u0000\u0019{\u00c0q\u0000~\u0000\npq\u0000~\u0000\u001aq\u0000~\u0000\u001eq\u0000~\u0000 sq\u0000~\u0000!t\u0000\u0018DDLSchema"
+".PosPartSectionq\u0000~\u0000%sq\u0000~\u0000\u0011\u0000\u0019{\u00d9q\u0000~\u0000\np\u0000sq\u0000~\u0000\u0000\u0000\u0019{\u00ceppsq\u0000~\u0000\u0006\u0000\u0019{\u00c3q"
+"\u0000~\u0000\npsq\u0000~\u0000\u0017\u0000\u0019{\u00c0q\u0000~\u0000\npq\u0000~\u0000\u001aq\u0000~\u0000\u001eq\u0000~\u0000 sq\u0000~\u0000!t\u0000\u001aDDLSchema.Const"
+"antsSectionq\u0000~\u0000%sq\u0000~\u0000\u0011\u0000\u0019{\u00d9q\u0000~\u0000\np\u0000sq\u0000~\u0000\u0000\u0000\u0019{\u00ceppsq\u0000~\u0000\u0006\u0000\u0019{\u00c3q\u0000~\u0000\n"
+"psq\u0000~\u0000\u0017\u0000\u0019{\u00c0q\u0000~\u0000\npq\u0000~\u0000\u001aq\u0000~\u0000\u001eq\u0000~\u0000 sq\u0000~\u0000!t\u0000\u0019DDLSchema.MaterialS"
+"ectionq\u0000~\u0000%q\u0000~\u0000 sr\u0000\"com.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000"
+"\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/ExpressionPool$Close"
+"dHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$ClosedHash\u00d7j\u00d0"
+"N\u00ef\u00e8\u00ed\u001c\u0002\u0000\u0004I\u0000\u0005countI\u0000\tthresholdL\u0000\u0006parentq\u0000~\u0000K[\u0000\u0005tablet\u0000![Lcom/s"
+"un/msv/grammar/Expression;xp\u0000\u0000\u0000\u0016\u0000\u0000\u00009pur\u0000![Lcom.sun.msv.gramm"
+"ar.Expression;\u00d68D\u00c3]\u00ad\u00a7\n\u0002\u0000\u0000xp\u0000\u0000\u0000\u00bfppppq\u0000~\u0000\u0010ppq\u0000~\u0000\u000fppq\u0000~\u0000\u000eppq\u0000~\u0000"
+"\rppq\u0000~\u0000\fppq\u0000~\u0000\u000bppq\u0000~\u0000\bppppppppppq\u0000~\u0000\u0005ppppppppppppppppppppppp"
+"pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp"
+"pppppppppppppppppppppppppppppppppppppppppppppppppppppq\u0000~\u0000\u0016q\u0000"
+"~\u0000(q\u0000~\u0000.q\u0000~\u00004q\u0000~\u0000:q\u0000~\u0000@q\u0000~\u0000Fppppq\u0000~\u0000\u0015q\u0000~\u0000\'q\u0000~\u0000-q\u0000~\u00003q\u0000~\u00009q\u0000~"
+"\u0000?q\u0000~\u0000Eppp"));
        }
        return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
    }

    public class Unmarshaller
        extends DDLSchema.impl.runtime.AbstractUnmarshallingEventHandlerImpl
    {


        public Unmarshaller(DDLSchema.impl.runtime.UnmarshallingContext context) {
            super(context, "----");
        }

        protected Unmarshaller(DDLSchema.impl.runtime.UnmarshallingContext context, int startState) {
            this(context);
            state = startState;
        }

        public java.lang.Object owner() {
            return DDLSchema.impl.DDDefinitionTypeImpl.this;
        }

        public void enterElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname, org.xml.sax.Attributes __atts)
            throws org.xml.sax.SAXException
        {
            int attIdx;
            outer:
            while (true) {
                switch (state) {
                    case  2 :
                        attIdx = context.getAttribute("", "label");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
                            return ;
                        }
                        _Section.add(((DDLSchema.impl.SectionTypeImpl) spawnChildFromEnterElement((DDLSchema.impl.SectionTypeImpl.class), 3, ___uri, ___local, ___qname, __atts)));
                        return ;
                    case  0 :
                        if (("Section" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            context.pushAttributes(__atts, false);
                            state = 2;
                            return ;
                        }
                        if (("SolidSection" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            _Section.add(((DDLSchema.impl.SolidSectionImpl) spawnChildFromEnterElement((DDLSchema.impl.SolidSectionImpl.class), 1, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("SpecParSection" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            _Section.add(((DDLSchema.impl.SpecParSectionImpl) spawnChildFromEnterElement((DDLSchema.impl.SpecParSectionImpl.class), 1, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("LogicalPartSection" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            _Section.add(((DDLSchema.impl.LogicalPartSectionImpl) spawnChildFromEnterElement((DDLSchema.impl.LogicalPartSectionImpl.class), 1, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("RotationSection" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            _Section.add(((DDLSchema.impl.RotationSectionImpl) spawnChildFromEnterElement((DDLSchema.impl.RotationSectionImpl.class), 1, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("PosPartSection" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            _Section.add(((DDLSchema.impl.PosPartSectionImpl) spawnChildFromEnterElement((DDLSchema.impl.PosPartSectionImpl.class), 1, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("ConstantsSection" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            _Section.add(((DDLSchema.impl.ConstantsSectionImpl) spawnChildFromEnterElement((DDLSchema.impl.ConstantsSectionImpl.class), 1, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("MaterialSection" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            _Section.add(((DDLSchema.impl.MaterialSectionImpl) spawnChildFromEnterElement((DDLSchema.impl.MaterialSectionImpl.class), 1, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        state = 1;
                        continue outer;
                    case  1 :
                        if (("Section" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            context.pushAttributes(__atts, false);
                            state = 2;
                            return ;
                        }
                        if (("SolidSection" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            _Section.add(((DDLSchema.impl.SolidSectionImpl) spawnChildFromEnterElement((DDLSchema.impl.SolidSectionImpl.class), 1, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("SpecParSection" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            _Section.add(((DDLSchema.impl.SpecParSectionImpl) spawnChildFromEnterElement((DDLSchema.impl.SpecParSectionImpl.class), 1, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("LogicalPartSection" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            _Section.add(((DDLSchema.impl.LogicalPartSectionImpl) spawnChildFromEnterElement((DDLSchema.impl.LogicalPartSectionImpl.class), 1, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("RotationSection" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            _Section.add(((DDLSchema.impl.RotationSectionImpl) spawnChildFromEnterElement((DDLSchema.impl.RotationSectionImpl.class), 1, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("PosPartSection" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            _Section.add(((DDLSchema.impl.PosPartSectionImpl) spawnChildFromEnterElement((DDLSchema.impl.PosPartSectionImpl.class), 1, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("ConstantsSection" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            _Section.add(((DDLSchema.impl.ConstantsSectionImpl) spawnChildFromEnterElement((DDLSchema.impl.ConstantsSectionImpl.class), 1, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("MaterialSection" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            _Section.add(((DDLSchema.impl.MaterialSectionImpl) spawnChildFromEnterElement((DDLSchema.impl.MaterialSectionImpl.class), 1, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
                        return ;
                }
                super.enterElement(___uri, ___local, ___qname, __atts);
                break;
            }
        }

        public void leaveElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
            throws org.xml.sax.SAXException
        {
            int attIdx;
            outer:
            while (true) {
                switch (state) {
                    case  2 :
                        attIdx = context.getAttribute("", "label");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
                            return ;
                        }
                        _Section.add(((DDLSchema.impl.SectionTypeImpl) spawnChildFromLeaveElement((DDLSchema.impl.SectionTypeImpl.class), 3, ___uri, ___local, ___qname)));
                        return ;
                    case  0 :
                        state = 1;
                        continue outer;
                    case  3 :
                        if (("Section" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            context.popAttributes();
                            state = 1;
                            return ;
                        }
                        break;
                    case  1 :
                        revertToParentFromLeaveElement(___uri, ___local, ___qname);
                        return ;
                }
                super.leaveElement(___uri, ___local, ___qname);
                break;
            }
        }

        public void enterAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
            throws org.xml.sax.SAXException
        {
            int attIdx;
            outer:
            while (true) {
                switch (state) {
                    case  2 :
                        if (("label" == ___local)&&("" == ___uri)) {
                            _Section.add(((DDLSchema.impl.SectionTypeImpl) spawnChildFromEnterAttribute((DDLSchema.impl.SectionTypeImpl.class), 3, ___uri, ___local, ___qname)));
                            return ;
                        }
                        _Section.add(((DDLSchema.impl.SectionTypeImpl) spawnChildFromEnterAttribute((DDLSchema.impl.SectionTypeImpl.class), 3, ___uri, ___local, ___qname)));
                        return ;
                    case  0 :
                        state = 1;
                        continue outer;
                    case  1 :
                        revertToParentFromEnterAttribute(___uri, ___local, ___qname);
                        return ;
                }
                super.enterAttribute(___uri, ___local, ___qname);
                break;
            }
        }

        public void leaveAttribute(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
            throws org.xml.sax.SAXException
        {
            int attIdx;
            outer:
            while (true) {
                switch (state) {
                    case  2 :
                        attIdx = context.getAttribute("", "label");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
                            return ;
                        }
                        _Section.add(((DDLSchema.impl.SectionTypeImpl) spawnChildFromLeaveAttribute((DDLSchema.impl.SectionTypeImpl.class), 3, ___uri, ___local, ___qname)));
                        return ;
                    case  0 :
                        state = 1;
                        continue outer;
                    case  1 :
                        revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
                        return ;
                }
                super.leaveAttribute(___uri, ___local, ___qname);
                break;
            }
        }

        public void handleText(final java.lang.String value)
            throws org.xml.sax.SAXException
        {
            int attIdx;
            outer:
            while (true) {
                try {
                    switch (state) {
                        case  2 :
                            attIdx = context.getAttribute("", "label");
                            if (attIdx >= 0) {
                                context.consumeAttribute(attIdx);
                                context.getCurrentHandler().text(value);
                                return ;
                            }
                            _Section.add(((DDLSchema.impl.SectionTypeImpl) spawnChildFromText((DDLSchema.impl.SectionTypeImpl.class), 3, value)));
                            return ;
                        case  0 :
                            state = 1;
                            continue outer;
                        case  1 :
                            revertToParentFromText(value);
                            return ;
                    }
                } catch (java.lang.RuntimeException e) {
                    handleUnexpectedTextException(value, e);
                }
                break;
            }
        }

    }

}
