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

    protected java.lang.String _Density;
    protected java.lang.String _Method;
    protected java.lang.String _DensityUnit;
    protected com.sun.xml.bind.util.ListImpl _MaterialFraction = 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.CompositeMaterialType.class);
    }

    public java.lang.String getDensity() {
        return _Density;
    }

    public void setDensity(java.lang.String value) {
        _Density = value;
    }

    public java.lang.String getMethod() {
        return _Method;
    }

    public void setMethod(java.lang.String value) {
        _Method = value;
    }

    public java.lang.String getDensityUnit() {
        return _DensityUnit;
    }

    public void setDensityUnit(java.lang.String value) {
        _DensityUnit = value;
    }

    public java.util.List getMaterialFraction() {
        return _MaterialFraction;
    }

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

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

    public void serializeAttributes(DDLSchema.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        int idx4 = 0;
        final int len4 = _MaterialFraction.size();
        context.startAttribute("", "density");
        try {
            context.text(((java.lang.String) _Density));
        } catch (java.lang.Exception e) {
            DDLSchema.impl.runtime.Util.handlePrintConversionException(this, e, context);
        }
        context.endAttribute();
        if (_DensityUnit!= null) {
            context.startAttribute("", "densityUnit");
            try {
                context.text(((java.lang.String) _DensityUnit));
            } catch (java.lang.Exception e) {
                DDLSchema.impl.runtime.Util.handlePrintConversionException(this, e, context);
            }
            context.endAttribute();
        }
        context.startAttribute("", "method");
        try {
            context.text(((java.lang.String) _Method));
        } catch (java.lang.Exception e) {
            DDLSchema.impl.runtime.Util.handlePrintConversionException(this, e, context);
        }
        context.endAttribute();
        super.serializeAttributes(context);
    }

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

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

    public java.lang.Class getPrimaryInterface() {
        return (DDLSchema.CompositeMaterialType.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\n\u0016W}ppsq\u0000~\u0000\u0000\bn\u0080Dppsq\u0000~\u0000\u0000\u0005"
+"\u0018\u00b1\u0001ppsq\u0000~\u0000\u0000\u0004\u00c6\u0011\u00e9ppsq\u0000~\u0000\u0000\u0004\u0093\u001a\u0017ppsq\u0000~\u0000\u0000\u0004`\"Sppsq\u0000~\u0000\u0000\u0004-*\u008fppsr\u0000 com"
+".sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameCl"
+"asst\u0000\u001fLcom/sun/msv/grammar/NameClass;xq\u0000~\u0000\u0003\u0001\u0096\u0015fppsr\u0000\u001bcom.sun"
+".msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype"
+"/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPa"
+"ir;xq\u0000~\u0000\u0003\u0001.|zppsr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000"
+"\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxr\u0000*com.sun.msv.datatype.xsd.BuiltinAto"
+"micType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteType\u0000"
+"\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
+"\u0001\u0002\u0000\u0003L\u0000\fnamespaceUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\u0017L\u0000\nw"
+"hiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xp"
+"t\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0006stringsr\u00005com.sun.msv."
+"datatype.xsd.WhiteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com."
+"sun.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000co"
+"m.sun.msv.grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000"
+"~\u0000\u0003\u0000\u0000\u0000\nppsr\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalN"
+"ameq\u0000~\u0000\u0017L\u0000\fnamespaceURIq\u0000~\u0000\u0017xpq\u0000~\u0000\u001bq\u0000~\u0000\u001asr\u0000#com.sun.msv.gram"
+"mar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0017L\u0000\fnamespaceU"
+"RIq\u0000~\u0000\u0017xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0004name"
+"t\u0000\u0000sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001\u0002\u0097\u0015$pps"
+"q\u0000~\u0000\f\u0002\u0097\u0015\u0019sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000pq\u0000~\u0000\u0012sq"
+"\u0000~\u0000#t\u0000\u0006symbolq\u0000~\u0000\'sr\u00000com.sun.msv.grammar.Expression$Epsilon"
+"Expression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003\u0000\u0000\u0000\tsq\u0000~\u0000+\u0001psq\u0000~\u0000(\u00002\u00f7\u00bfppsr\u0000\'com.s"
+"un.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tnameClassq\u0000~"
+"\u0000\rxr\u0000\u001ecom.sun.msv.grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUnde"
+"claredAttributesL\u0000\fcontentModelq\u0000~\u0000\u0002xq\u0000~\u0000\u0003\u0000\u0019{\u00e4pp\u0000sq\u0000~\u00003\u0000\u0019{\u00d9p"
+"p\u0000sq\u0000~\u0000(\u0000\u0019{\u00ceppsr\u0000 com.sun.msv.grammar.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\u0019{\u00c3q\u0000~\u0000,psq\u0000~\u0000\f\u0000\u0019{\u00c0q\u0000~\u0000,psr\u00002com.sun.msv.grammar.Expressio"
+"n$AnyStringExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003\u0000\u0000\u0000\bq\u0000~\u00001q\u0000~\u0000=sr\u0000 com."
+"sun.msv.grammar.AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000$q\u0000~\u00000sq\u0000~\u0000#t\u0000\u001eD"
+"DLSchema.MaterialFractionTypet\u0000+http://java.sun.com/jaxb/xjc"
+"/dummy-elementssq\u0000~\u0000#t\u0000\u0010MaterialFractiont\u0000\u001ahttp://www.cern.c"
+"h/cms/DDLsq\u0000~\u00003\u0000\u0019{\u00d9pp\u0000sq\u0000~\u0000(\u0000\u0019{\u00ceppsq\u0000~\u00008\u0000\u0019{\u00c3q\u0000~\u0000,psq\u0000~\u0000\f\u0000\u0019{\u00c0"
+"q\u0000~\u0000,pq\u0000~\u0000=q\u0000~\u0000?q\u0000~\u00000sq\u0000~\u0000#t\u0000\u001aDDLSchema.MaterialFractionq\u0000~\u0000"
+"Bsq\u0000~\u0000(\u00002\u00f7\u00bfppsq\u0000~\u00003\u0000\u0019{\u00e4pp\u0000sq\u0000~\u00003\u0000\u0019{\u00d9pp\u0000sq\u0000~\u0000(\u0000\u0019{\u00ceppsq\u0000~\u00008\u0000\u0019{"
+"\u00c3q\u0000~\u0000,psq\u0000~\u0000\f\u0000\u0019{\u00c0q\u0000~\u0000,pq\u0000~\u0000=q\u0000~\u0000?q\u0000~\u00000sq\u0000~\u0000#q\u0000~\u0000Aq\u0000~\u0000Bq\u0000~\u0000Cs"
+"q\u0000~\u00003\u0000\u0019{\u00d9pp\u0000sq\u0000~\u0000(\u0000\u0019{\u00ceppsq\u0000~\u00008\u0000\u0019{\u00c3q\u0000~\u0000,psq\u0000~\u0000\f\u0000\u0019{\u00c0q\u0000~\u0000,pq\u0000~\u0000"
+"=q\u0000~\u0000?q\u0000~\u00000sq\u0000~\u0000#q\u0000~\u0000Kq\u0000~\u0000Bsq\u0000~\u0000(\u00002\u00f7\u00cdppsq\u0000~\u00008\u00002\u00f7\u00c2q\u0000~\u0000,psq\u0000~\u0000"
+"(\u00002\u00f7\u00bfq\u0000~\u0000,psq\u0000~\u00003\u0000\u0019{\u00e4q\u0000~\u0000,p\u0000sq\u0000~\u00003\u0000\u0019{\u00d9pp\u0000sq\u0000~\u0000(\u0000\u0019{\u00ceppsq\u0000~\u00008\u0000"
+"\u0019{\u00c3q\u0000~\u0000,psq\u0000~\u0000\f\u0000\u0019{\u00c0q\u0000~\u0000,pq\u0000~\u0000=q\u0000~\u0000?q\u0000~\u00000sq\u0000~\u0000#q\u0000~\u0000Aq\u0000~\u0000Bq\u0000~\u0000"
+"Csq\u0000~\u00003\u0000\u0019{\u00d9q\u0000~\u0000,p\u0000sq\u0000~\u0000(\u0000\u0019{\u00ceppsq\u0000~\u00008\u0000\u0019{\u00c3q\u0000~\u0000,psq\u0000~\u0000\f\u0000\u0019{\u00c0q\u0000~\u0000"
+",pq\u0000~\u0000=q\u0000~\u0000?q\u0000~\u00000sq\u0000~\u0000#q\u0000~\u0000Kq\u0000~\u0000Bq\u0000~\u00000sq\u0000~\u0000\f\u0000R\u009f\u0013ppsq\u0000~\u0000\u000f\u0000@qv"
+"ppsr\u0000\'com.sun.msv.datatype.xsd.FinalComponent\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001I\u0000\nf"
+"inalValuexr\u0000\u001ecom.sun.msv.datatype.xsd.Proxy\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bbas"
+"eTypet\u0000)Lcom/sun/msv/datatype/xsd/XSDatatypeImpl;xq\u0000~\u0000\u0016q\u0000~\u0000E"
+"t\u0000\bdensityTq\u0000~\u0000\u001eq\u0000~\u0000\u0019\u0000\u0000\u0000\u0000q\u0000~\u0000 sq\u0000~\u0000!q\u0000~\u0000\u001bq\u0000~\u0000Esq\u0000~\u0000#t\u0000\u0007densi"
+"tyq\u0000~\u0000\'sq\u0000~\u0000(\u0003U\u00cf>ppsq\u0000~\u0000\f\u0003U\u00cf3q\u0000~\u0000,psq\u0000~\u0000\u000f\u0001\u00e56\u00e6ppsr\u0000)com.sun.m"
+"sv.datatype.xsd.EnumerationFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0006valuest\u0000\u000fLjava"
+"/util/Set;xr\u00009com.sun.msv.datatype.xsd.DataTypeWithValueCons"
+"traintFacet\"\u00a7Ro\u00ca\u00c7\u008aT\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.DataTypeW"
+"ithFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0005Z\u0000\fisFacetFixedZ\u0000\u0012needValueCheckFlagL\u0000\bba"
+"seTypeq\u0000~\u0000jL\u0000\fconcreteTypet\u0000\'Lcom/sun/msv/datatype/xsd/Concr"
+"eteType;L\u0000\tfacetNameq\u0000~\u0000\u0017xq\u0000~\u0000\u0016q\u0000~\u0000Et\u0000\fdensityUnitTq\u0000~\u0000\u001e\u0000\u0000q\u0000"
+"~\u0000\u0019q\u0000~\u0000\u0019t\u0000\u000benumerationsr\u0000\u0011java.util.HashSet\u00baD\u0085\u0095\u0096\u00b8\u00b74\u0003\u0000\u0000xpw\f\u0000\u0000"
+"\u0000\u0010?@\u0000\u0000\u0000\u0000\u0000\u0003t\u0000\u0006kg/m^3t\u0000\u0006g/cm^3t\u0000\u0007mg/cm^3xq\u0000~\u0000 sq\u0000~\u0000!q\u0000~\u0000yq\u0000~\u0000E"
+"sq\u0000~\u0000#t\u0000\u000bdensityUnitq\u0000~\u0000\'q\u0000~\u00000sq\u0000~\u0000\f\u0001\u00a7\u00d74ppsq\u0000~\u0000\u000f\u0000\u0089\u0005\u00cdppsq\u0000~\u0000s"
+"q\u0000~\u0000Epq\u0000~\u0000\u001e\u0000\u0000q\u0000~\u0000\u0019q\u0000~\u0000\u0019q\u0000~\u0000zsq\u0000~\u0000{w\f\u0000\u0000\u0000\u0010?@\u0000\u0000\u0000\u0000\u0000\u0003t\u0000\u001dcompound "
+"by atomic proportiont\u0000\u0011mixture by volumet\u0000\u0011mixture by weight"
+"xq\u0000~\u0000 sq\u0000~\u0000!t\u0000\u000estring-derivedq\u0000~\u0000Esq\u0000~\u0000#t\u0000\u0006methodq\u0000~\u0000\'sr\u0000\"co"
+"m.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lco"
+"m/sun/msv/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.ms"
+"v.grammar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0002\u0000\u0004I\u0000\u0005countI\u0000\tthr"
+"esholdL\u0000\u0006parentq\u0000~\u0000\u008f[\u0000\u0005tablet\u0000![Lcom/sun/msv/grammar/Express"
+"ion;xp\u0000\u0000\u0000\u001a\u0000\u0000\u00009pur\u0000![Lcom.sun.msv.grammar.Expression;\u00d68D\u00c3]\u00ad\u00a7\n"
+"\u0002\u0000\u0000xp\u0000\u0000\u0000\u00bfpppppppppppppppq\u0000~\u00002q\u0000~\u0000Lq\u0000~\u0000Zq\u0000~\u0000Yppppppppppq\u0000~\u0000Xq"
+"\u0000~\u0000\bppq\u0000~\u0000)pq\u0000~\u0000\u0005pppppppppppppppq\u0000~\u0000\u0007ppppppppppppppppppppppp"
+"ppppppppppppppppppq\u0000~\u0000pppppppppppppppppppppppppppppppppppppp"
+"ppppppppppppppppq\u0000~\u0000\u000bpq\u0000~\u0000\u0006pppppppppppppppppq\u0000~\u0000\nppq\u0000~\u0000:q\u0000~\u0000"
+"Hq\u0000~\u0000Pq\u0000~\u0000Uq\u0000~\u0000^q\u0000~\u0000cpppppq\u0000~\u00007q\u0000~\u0000Gq\u0000~\u0000Oq\u0000~\u0000Tq\u0000~\u0000]q\u0000~\u0000bq\u0000~\u0000"
+"\tppp"));
        }
        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.CompositeMaterialTypeImpl.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  10 :
                        if (("MaterialFraction" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            context.pushAttributes(__atts, false);
                            state = 11;
                            return ;
                        }
                        break;
                    case  3 :
                        attIdx = context.getAttribute("", "densityUnit");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText0(v);
                            state = 6;
                            continue outer;
                        }
                        state = 6;
                        continue outer;
                    case  13 :
                        if (("MaterialFraction" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            context.pushAttributes(__atts, false);
                            state = 11;
                            return ;
                        }
                        revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
                        return ;
                    case  0 :
                        attIdx = context.getAttribute("", "density");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText1(v);
                            state = 3;
                            continue outer;
                        }
                        break;
                    case  11 :
                        attIdx = context.getAttribute("", "fraction");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
                            return ;
                        }
                        break;
                    case  6 :
                        attIdx = context.getAttribute("", "method");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText2(v);
                            state = 9;
                            continue outer;
                        }
                        break;
                    case  9 :
                        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;
            }
        }

        private void eatText0(final java.lang.String value)
            throws org.xml.sax.SAXException
        {
            try {
                _DensityUnit = value;
            } catch (java.lang.Exception e) {
                handleParseConversionException(e);
            }
        }

        private void eatText1(final java.lang.String value)
            throws org.xml.sax.SAXException
        {
            try {
                _Density = value;
            } catch (java.lang.Exception e) {
                handleParseConversionException(e);
            }
        }

        private void eatText2(final java.lang.String value)
            throws org.xml.sax.SAXException
        {
            try {
                _Method = value;
            } catch (java.lang.Exception e) {
                handleParseConversionException(e);
            }
        }

        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  3 :
                        attIdx = context.getAttribute("", "densityUnit");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText0(v);
                            state = 6;
                            continue outer;
                        }
                        state = 6;
                        continue outer;
                    case  13 :
                        revertToParentFromLeaveElement(___uri, ___local, ___qname);
                        return ;
                    case  0 :
                        attIdx = context.getAttribute("", "density");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText1(v);
                            state = 3;
                            continue outer;
                        }
                        break;
                    case  11 :
                        attIdx = context.getAttribute("", "fraction");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                    case  6 :
                        attIdx = context.getAttribute("", "method");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText2(v);
                            state = 9;
                            continue outer;
                        }
                        break;
                    case  12 :
                        if (("MaterialFraction" == ___local)&&("http://www.cern.ch/cms/DDL" == ___uri)) {
                            context.popAttributes();
                            state = 13;
                            return ;
                        }
                        break;
                    case  9 :
                        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  3 :
                        if (("densityUnit" == ___local)&&("" == ___uri)) {
                            state = 4;
                            return ;
                        }
                        state = 6;
                        continue outer;
                    case  13 :
                        revertToParentFromEnterAttribute(___uri, ___local, ___qname);
                        return ;
                    case  0 :
                        if (("density" == ___local)&&("" == ___uri)) {
                            state = 1;
                            return ;
                        }
                        break;
                    case  11 :
                        if (("fraction" == ___local)&&("" == ___uri)) {
                            _MaterialFraction.add(((DDLSchema.impl.MaterialFractionTypeImpl) spawnChildFromEnterAttribute((DDLSchema.impl.MaterialFractionTypeImpl.class), 12, ___uri, ___local, ___qname)));
                            return ;
                        }
                        break;
                    case  6 :
                        if (("method" == ___local)&&("" == ___uri)) {
                            state = 7;
                            return ;
                        }
                        break;
                    case  9 :
                        if (("name" == ___local)&&("" == ___uri)) {
                            spawnHandlerFromEnterAttribute((((DDLSchema.impl.MaterialTypeImpl)DDLSchema.impl.CompositeMaterialTypeImpl.this).new Unmarshaller(context)), 10, ___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 :
                        if (("method" == ___local)&&("" == ___uri)) {
                            state = 9;
                            return ;
                        }
                        break;
                    case  3 :
                        attIdx = context.getAttribute("", "densityUnit");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText0(v);
                            state = 6;
                            continue outer;
                        }
                        state = 6;
                        continue outer;
                    case  13 :
                        revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
                        return ;
                    case  0 :
                        attIdx = context.getAttribute("", "density");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText1(v);
                            state = 3;
                            continue outer;
                        }
                        break;
                    case  11 :
                        attIdx = context.getAttribute("", "fraction");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                    case  6 :
                        attIdx = context.getAttribute("", "method");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText2(v);
                            state = 9;
                            continue outer;
                        }
                        break;
                    case  9 :
                        attIdx = context.getAttribute("", "name");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                    case  2 :
                        if (("density" == ___local)&&("" == ___uri)) {
                            state = 3;
                            return ;
                        }
                        break;
                    case  5 :
                        if (("densityUnit" == ___local)&&("" == ___uri)) {
                            state = 6;
                            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  3 :
                            attIdx = context.getAttribute("", "densityUnit");
                            if (attIdx >= 0) {
                                final java.lang.String v = context.eatAttribute(attIdx);
                                eatText0(v);
                                state = 6;
                                continue outer;
                            }
                            state = 6;
                            continue outer;
                        case  13 :
                            revertToParentFromText(value);
                            return ;
                        case  0 :
                            attIdx = context.getAttribute("", "density");
                            if (attIdx >= 0) {
                                final java.lang.String v = context.eatAttribute(attIdx);
                                eatText1(v);
                                state = 3;
                                continue outer;
                            }
                            break;
                        case  4 :
                            eatText0(value);
                            state = 5;
                            return ;
                        case  11 :
                            attIdx = context.getAttribute("", "fraction");
                            if (attIdx >= 0) {
                                context.consumeAttribute(attIdx);
                                context.getCurrentHandler().text(value);
                                return ;
                            }
                            break;
                        case  6 :
                            attIdx = context.getAttribute("", "method");
                            if (attIdx >= 0) {
                                final java.lang.String v = context.eatAttribute(attIdx);
                                eatText2(v);
                                state = 9;
                                continue outer;
                            }
                            break;
                        case  9 :
                            attIdx = context.getAttribute("", "name");
                            if (attIdx >= 0) {
                                context.consumeAttribute(attIdx);
                                context.getCurrentHandler().text(value);
                                return ;
                            }
                            break;
                        case  7 :
                            eatText2(value);
                            state = 8;
                            return ;
                        case  1 :
                            eatText1(value);
                            state = 2;
                            return ;
                    }
                } catch (java.lang.RuntimeException e) {
                    handleUnexpectedTextException(value, e);
                }
                break;
            }
        }

    }

}
