//
// 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 BooleanSolidTypeImpl
    extends DDLSchema.impl.SolidTypeImpl
    implements DDLSchema.BooleanSolidType, com.sun.xml.bind.JAXBObject, DDLSchema.impl.runtime.UnmarshallableObject, DDLSchema.impl.runtime.XMLSerializable, DDLSchema.impl.runtime.ValidatableObject
{

    protected DDLSchema.TranslationType _Translation;
    protected DDLSchema.ReferenceType _RRotation;
    protected com.sun.xml.bind.util.ListImpl _RSolid = 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.BooleanSolidType.class);
    }

    public DDLSchema.TranslationType getTranslation() {
        return _Translation;
    }

    public void setTranslation(DDLSchema.TranslationType value) {
        _Translation = value;
    }

    public DDLSchema.ReferenceType getRRotation() {
        return _RRotation;
    }

    public void setRRotation(DDLSchema.ReferenceType value) {
        _RRotation = value;
    }

    public java.util.List getRSolid() {
        return _RSolid;
    }

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

    public void serializeElementBody(DDLSchema.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        int idx3 = 0;
        final int len3 = _RSolid.size();
        super.serializeElementBody(context);
        while (idx3 != len3) {
            if (_RSolid.get(idx3) instanceof javax.xml.bind.Element) {
                context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _RSolid.get(idx3 ++)));
            } else {
                context.startElement("http://www.cern.ch/cms/DDL", "rSolid");
                int idx_0 = idx3;
                context.childAsURIs(((com.sun.xml.bind.JAXBObject) _RSolid.get(idx_0 ++)));
                context.endNamespaceDecls();
                int idx_1 = idx3;
                context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _RSolid.get(idx_1 ++)));
                context.endAttributes();
                context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _RSolid.get(idx3 ++)));
                context.endElement();
            }
        }
        if (_RRotation instanceof javax.xml.bind.Element) {
            context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _RRotation));
        } else {
            context.startElement("http://www.cern.ch/cms/DDL", "rRotation");
            context.childAsURIs(((com.sun.xml.bind.JAXBObject) _RRotation));
            context.endNamespaceDecls();
            context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _RRotation));
            context.endAttributes();
            context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _RRotation));
            context.endElement();
        }
        if (_Translation instanceof javax.xml.bind.Element) {
            context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _Translation));
        } else {
            context.startElement("http://www.cern.ch/cms/DDL", "Translation");
            context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Translation));
            context.endNamespaceDecls();
            context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Translation));
            context.endAttributes();
            context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _Translation));
            context.endElement();
        }
    }

    public void serializeAttributes(DDLSchema.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        int idx3 = 0;
        final int len3 = _RSolid.size();
        super.serializeAttributes(context);
    }

    public void serializeAttributeBody(DDLSchema.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        int idx3 = 0;
        final int len3 = _RSolid.size();
        super.serializeAttributeBody(context);
        while (idx3 != len3) {
            if (_RSolid.get(idx3) instanceof javax.xml.bind.Element) {
                context.childAsAttributeBody(((com.sun.xml.bind.JAXBObject) _RSolid.get(idx3 ++)));
            } else {
                context.startElement("http://www.cern.ch/cms/DDL", "rSolid");
                int idx_0 = idx3;
                context.childAsURIs(((com.sun.xml.bind.JAXBObject) _RSolid.get(idx_0 ++)));
                context.endNamespaceDecls();
                int idx_1 = idx3;
                context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _RSolid.get(idx_1 ++)));
                context.endAttributes();
                context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _RSolid.get(idx3 ++)));
                context.endElement();
            }
        }
        if (_RRotation instanceof javax.xml.bind.Element) {
            context.childAsAttributeBody(((com.sun.xml.bind.JAXBObject) _RRotation));
        } else {
            context.startElement("http://www.cern.ch/cms/DDL", "rRotation");
            context.childAsURIs(((com.sun.xml.bind.JAXBObject) _RRotation));
            context.endNamespaceDecls();
            context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _RRotation));
            context.endAttributes();
            context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _RRotation));
            context.endElement();
        }
        if (_Translation instanceof javax.xml.bind.Element) {
            context.childAsAttributeBody(((com.sun.xml.bind.JAXBObject) _Translation));
        } else {
            context.startElement("http://www.cern.ch/cms/DDL", "Translation");
            context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Translation));
            context.endNamespaceDecls();
            context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Translation));
            context.endAttributes();
            context.childAsElementBody(((com.sun.xml.bind.JAXBObject) _Translation));
            context.endElement();
        }
    }

    public void serializeURIs(DDLSchema.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        int idx3 = 0;
        final int len3 = _RSolid.size();
        super.serializeURIs(context);
    }

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

    public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
        if (schemaFragment == null) {
            schemaFragment = com.sun.xml.bind.validator.SchemaDeserializer.deserialize((
 "\u00ac\u00ed\u0000\u0005sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.su"
+"n.msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gra"
+"mmar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expressi"
+"on\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0003I\u0000\u000ecachedHashCodeL\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava"
+"/lang/Boolean;L\u0000\u000bexpandedExpq\u0000~\u0000\u0002xp\u0002\u0003\u00ad+ppsq\u0000~\u0000\u0000\u0001\u00d0\u00b5gppsq\u0000~\u0000\u0000\u0001"
+"\u009d\u00bd\u00a3ppsq\u0000~\u0000\u0000\u0001j\u00c5\u00dfppsr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
+"\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass"
+";xq\u0000~\u0000\u0003\u00017\u00ce\u001bppsr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dt"
+"t\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dLc"
+"om/sun/msv/util/StringPair;xq\u0000~\u0000\u0003\u0001.|zppsr\u0000#com.sun.msv.datat"
+"ype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxr\u0000*com.sun.msv"
+".datatype.xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.da"
+"tatype.xsd.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.x"
+"sd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/Str"
+"ing;L\u0000\btypeNameq\u0000~\u0000\u0014L\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/xs"
+"d/WhiteSpaceProcessor;xpt\u0000 http://www.w3.org/2001/XMLSchemat"
+"\u0000\u0006stringsr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Pre"
+"serve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpaceProce"
+"ssor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000com.sun.msv.grammar.Expression$NullSet"
+"Expression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003\u0000\u0000\u0000\nppsr\u0000\u001bcom.sun.msv.util.String"
+"Pair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0014L\u0000\fnamespaceURIq\u0000~\u0000\u0014xpq\u0000~\u0000\u0018q"
+"\u0000~\u0000\u0017sr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tloc"
+"alNameq\u0000~\u0000\u0014L\u0000\fnamespaceURIq\u0000~\u0000\u0014xr\u0000\u001dcom.sun.msv.grammar.NameC"
+"lass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0004namet\u0000\u0000sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp"
+"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001\u00002\u00f7\u00bfppsr\u0000\'com.sun.msv.grammar.trex.ElementP"
+"attern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tnameClassq\u0000~\u0000\nxr\u0000\u001ecom.sun.msv.grammar.El"
+"ementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000\fcontentMo"
+"delq\u0000~\u0000\u0002xq\u0000~\u0000\u0003\u0000\u0019{\u00e4pp\u0000sq\u0000~\u0000\'\u0000\u0019{\u00d9pp\u0000sq\u0000~\u0000%\u0000\u0019{\u00ceppsr\u0000 com.sun.ms"
+"v.grammar.OneOrMoreExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001ccom.sun.msv.grammar.Una"
+"ryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0003expq\u0000~\u0000\u0002xq\u0000~\u0000\u0003\u0000\u0019{\u00c3sr\u0000\u0011java.lang.Boolean\u00cd "
+"r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psq\u0000~\u0000\t\u0000\u0019{\u00c0q\u0000~\u00000psr\u00002com.sun.msv.grammar"
+".Expression$AnyStringExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003\u0000\u0000\u0000\bsq\u0000~\u0000/\u0001q"
+"\u0000~\u00003sr\u0000 com.sun.msv.grammar.AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000!sr\u0000"
+"0com.sun.msv.grammar.Expression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000"
+"xq\u0000~\u0000\u0003\u0000\u0000\u0000\tq\u0000~\u00004psq\u0000~\u0000 t\u0000\u0017DDLSchema.ReferenceTypet\u0000+http://ja"
+"va.sun.com/jaxb/xjc/dummy-elementssq\u0000~\u0000 t\u0000\u0006rSolidt\u0000\u001ahttp://w"
+"ww.cern.ch/cms/DDLsq\u0000~\u0000\'\u0000\u0019{\u00d9pp\u0000sq\u0000~\u0000%\u0000\u0019{\u00ceppsq\u0000~\u0000,\u0000\u0019{\u00c3q\u0000~\u00000ps"
+"q\u0000~\u0000\t\u0000\u0019{\u00c0q\u0000~\u00000pq\u0000~\u00003q\u0000~\u00006q\u0000~\u00008sq\u0000~\u0000 t\u0000\u0010DDLSchema.RSolidq\u0000~\u0000;"
+"sq\u0000~\u0000%\u00002\u00f7\u00bfppsq\u0000~\u0000\'\u0000\u0019{\u00e4pp\u0000sq\u0000~\u0000\'\u0000\u0019{\u00d9pp\u0000sq\u0000~\u0000%\u0000\u0019{\u00ceppsq\u0000~\u0000,\u0000\u0019{\u00c3"
+"q\u0000~\u00000psq\u0000~\u0000\t\u0000\u0019{\u00c0q\u0000~\u00000pq\u0000~\u00003q\u0000~\u00006q\u0000~\u00008sq\u0000~\u0000 q\u0000~\u0000:q\u0000~\u0000;q\u0000~\u0000<sq"
+"\u0000~\u0000\'\u0000\u0019{\u00d9pp\u0000sq\u0000~\u0000%\u0000\u0019{\u00ceppsq\u0000~\u0000,\u0000\u0019{\u00c3q\u0000~\u00000psq\u0000~\u0000\t\u0000\u0019{\u00c0q\u0000~\u00000pq\u0000~\u00003"
+"q\u0000~\u00006q\u0000~\u00008sq\u0000~\u0000 q\u0000~\u0000Dq\u0000~\u0000;sq\u0000~\u0000%\u00002\u00f7\u00bfppsq\u0000~\u0000\'\u0000\u0019{\u00e4pp\u0000sq\u0000~\u0000\'\u0000\u0019{"
+"\u00d9pp\u0000sq\u0000~\u0000%\u0000\u0019{\u00ceppsq\u0000~\u0000,\u0000\u0019{\u00c3q\u0000~\u00000psq\u0000~\u0000\t\u0000\u0019{\u00c0q\u0000~\u00000pq\u0000~\u00003q\u0000~\u00006q\u0000"
+"~\u00008sq\u0000~\u0000 q\u0000~\u0000:q\u0000~\u0000;sq\u0000~\u0000 t\u0000\trRotationq\u0000~\u0000>sq\u0000~\u0000\'\u0000\u0019{\u00d9pp\u0000sq\u0000~\u0000"
+"%\u0000\u0019{\u00ceppsq\u0000~\u0000,\u0000\u0019{\u00c3q\u0000~\u00000psq\u0000~\u0000\t\u0000\u0019{\u00c0q\u0000~\u00000pq\u0000~\u00003q\u0000~\u00006q\u0000~\u00008sq\u0000~\u0000 "
+"t\u0000\u0013DDLSchema.RRotationq\u0000~\u0000;sq\u0000~\u0000%\u00002\u00f7\u00bfppsq\u0000~\u0000\'\u0000\u0019{\u00e4pp\u0000sq\u0000~\u0000\'\u0000\u0019"
+"{\u00d9pp\u0000sq\u0000~\u0000%\u0000\u0019{\u00ceppsq\u0000~\u0000,\u0000\u0019{\u00c3q\u0000~\u00000psq\u0000~\u0000\t\u0000\u0019{\u00c0q\u0000~\u00000pq\u0000~\u00003q\u0000~\u00006q"
+"\u0000~\u00008sq\u0000~\u0000 t\u0000\u0019DDLSchema.TranslationTypeq\u0000~\u0000;sq\u0000~\u0000 t\u0000\u000bTranslat"
+"ionq\u0000~\u0000>sq\u0000~\u0000\'\u0000\u0019{\u00d9pp\u0000sq\u0000~\u0000%\u0000\u0019{\u00ceppsq\u0000~\u0000,\u0000\u0019{\u00c3q\u0000~\u00000psq\u0000~\u0000\t\u0000\u0019{\u00c0q"
+"\u0000~\u00000pq\u0000~\u00003q\u0000~\u00006q\u0000~\u00008sq\u0000~\u0000 t\u0000\u0015DDLSchema.Translationq\u0000~\u0000;sr\u0000\"c"
+"om.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lc"
+"om/sun/msv/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.m"
+"sv.grammar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0002\u0000\u0004I\u0000\u0005countI\u0000\tth"
+"resholdL\u0000\u0006parentq\u0000~\u0000q[\u0000\u0005tablet\u0000![Lcom/sun/msv/grammar/Expres"
+"sion;xp\u0000\u0000\u0000\u0018\u0000\u0000\u00009pur\u0000![Lcom.sun.msv.grammar.Expression;\u00d68D\u00c3]\u00ad\u00a7"
+"\n\u0002\u0000\u0000xp\u0000\u0000\u0000\u00bfppq\u0000~\u0000\u0006ppppppppppppq\u0000~\u0000&q\u0000~\u0000Eq\u0000~\u0000Qq\u0000~\u0000`pppq\u0000~\u0000\u0005ppp"
+"pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp"
+"pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp"
+"pppppppq\u0000~\u0000\bppppppppppppppppq\u0000~\u0000.q\u0000~\u0000Aq\u0000~\u0000Iq\u0000~\u0000Nq\u0000~\u0000\u0007q\u0000~\u0000Uq\u0000"
+"~\u0000\\q\u0000~\u0000dq\u0000~\u0000lppq\u0000~\u0000+q\u0000~\u0000@q\u0000~\u0000Hq\u0000~\u0000Mq\u0000~\u0000Tq\u0000~\u0000[q\u0000~\u0000cq\u0000~\u0000kpp"));
        }
        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.BooleanSolidTypeImpl.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  8 :
                        attIdx = context.getAttribute("", "lengthUnit");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
                            return ;
                        }
                        attIdx = context.getAttribute("", "x");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
                            return ;
                        }
                        break;
                    case  2 :
                        attIdx = context.getAttribute("", "name");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
                            return ;
                        }
                        break;
                    case  7 :
                        if (("Translation" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            context.pushAttributes(__atts, false);
                            state = 8;
                            return ;
                        }
                        break;
                    case  5 :
                        attIdx = context.getAttribute("", "name");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
                            return ;
                        }
                        break;
                    case  4 :
                        if (("rSolid" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            context.pushAttributes(__atts, false);
                            state = 2;
                            return ;
                        }
                        if (("rRotation" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            context.pushAttributes(__atts, false);
                            state = 5;
                            return ;
                        }
                        break;
                    case  1 :
                        if (("rSolid" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            context.pushAttributes(__atts, false);
                            state = 2;
                            return ;
                        }
                        break;
                    case  10 :
                        revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
                        return ;
                    case  0 :
                        attIdx = context.getAttribute("", "name");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
                            return ;
                        }
                        break;
                }
                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  8 :
                        attIdx = context.getAttribute("", "lengthUnit");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
                            return ;
                        }
                        attIdx = context.getAttribute("", "x");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                    case  9 :
                        if (("Translation" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            context.popAttributes();
                            state = 10;
                            return ;
                        }
                        break;
                    case  2 :
                        attIdx = context.getAttribute("", "name");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                    case  6 :
                        if (("rRotation" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            context.popAttributes();
                            state = 7;
                            return ;
                        }
                        break;
                    case  3 :
                        if (("rSolid" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            context.popAttributes();
                            state = 4;
                            return ;
                        }
                        break;
                    case  5 :
                        attIdx = context.getAttribute("", "name");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                    case  10 :
                        revertToParentFromLeaveElement(___uri, ___local, ___qname);
                        return ;
                    case  0 :
                        attIdx = context.getAttribute("", "name");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                }
                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  8 :
                        if (("lengthUnit" == ___local)&&("" == ___uri)) {
                            _Translation = ((DDLSchema.impl.TranslationTypeImpl) spawnChildFromEnterAttribute((DDLSchema.impl.TranslationTypeImpl.class), 9, ___uri, ___local, ___qname));
                            return ;
                        }
                        if (("x" == ___local)&&("" == ___uri)) {
                            _Translation = ((DDLSchema.impl.TranslationTypeImpl) spawnChildFromEnterAttribute((DDLSchema.impl.TranslationTypeImpl.class), 9, ___uri, ___local, ___qname));
                            return ;
                        }
                        break;
                    case  2 :
                        if (("name" == ___local)&&("" == ___uri)) {
                            _RSolid.add(((DDLSchema.impl.ReferenceTypeImpl) spawnChildFromEnterAttribute((DDLSchema.impl.ReferenceTypeImpl.class), 3, ___uri, ___local, ___qname)));
                            return ;
                        }
                        break;
                    case  5 :
                        if (("name" == ___local)&&("" == ___uri)) {
                            _RRotation = ((DDLSchema.impl.ReferenceTypeImpl) spawnChildFromEnterAttribute((DDLSchema.impl.ReferenceTypeImpl.class), 6, ___uri, ___local, ___qname));
                            return ;
                        }
                        break;
                    case  10 :
                        revertToParentFromEnterAttribute(___uri, ___local, ___qname);
                        return ;
                    case  0 :
                        if (("name" == ___local)&&("" == ___uri)) {
                            spawnHandlerFromEnterAttribute((((DDLSchema.impl.SolidTypeImpl)DDLSchema.impl.BooleanSolidTypeImpl.this).new Unmarshaller(context)), 1, ___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                }
                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  8 :
                        attIdx = context.getAttribute("", "lengthUnit");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
                            return ;
                        }
                        attIdx = context.getAttribute("", "x");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                    case  2 :
                        attIdx = context.getAttribute("", "name");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                    case  5 :
                        attIdx = context.getAttribute("", "name");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                    case  10 :
                        revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
                        return ;
                    case  0 :
                        attIdx = context.getAttribute("", "name");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                }
                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  8 :
                            attIdx = context.getAttribute("", "lengthUnit");
                            if (attIdx >= 0) {
                                context.consumeAttribute(attIdx);
                                context.getCurrentHandler().text(value);
                                return ;
                            }
                            attIdx = context.getAttribute("", "x");
                            if (attIdx >= 0) {
                                context.consumeAttribute(attIdx);
                                context.getCurrentHandler().text(value);
                                return ;
                            }
                            break;
                        case  2 :
                            attIdx = context.getAttribute("", "name");
                            if (attIdx >= 0) {
                                context.consumeAttribute(attIdx);
                                context.getCurrentHandler().text(value);
                                return ;
                            }
                            break;
                        case  5 :
                            attIdx = context.getAttribute("", "name");
                            if (attIdx >= 0) {
                                context.consumeAttribute(attIdx);
                                context.getCurrentHandler().text(value);
                                return ;
                            }
                            break;
                        case  10 :
                            revertToParentFromText(value);
                            return ;
                        case  0 :
                            attIdx = context.getAttribute("", "name");
                            if (attIdx >= 0) {
                                context.consumeAttribute(attIdx);
                                context.getCurrentHandler().text(value);
                                return ;
                            }
                            break;
                    }
                } catch (java.lang.RuntimeException e) {
                    handleUnexpectedTextException(value, e);
                }
                break;
            }
        }

    }

}
