//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.2-b15-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.18 at 11:05:21 PDT 
//


package COJAC.DDLSchema.impl;

public class ElementaryMaterialTypeImpl
    extends COJAC.DDLSchema.impl.MaterialTypeImpl
    implements COJAC.DDLSchema.ElementaryMaterialType, com.sun.xml.bind.JAXBObject, COJAC.DDLSchema.impl.runtime.UnmarshallableObject, COJAC.DDLSchema.impl.runtime.XMLSerializable, COJAC.DDLSchema.impl.runtime.ValidatableObject
{

    protected java.lang.String _AtomicWeight;
    protected java.lang.String _Density;
    protected java.math.BigInteger _AtomicNumber;
    protected java.lang.String _DensityUnit;
    protected java.lang.String _WeightUnit;
    protected java.lang.String _LengthUnit;
    public final static java.lang.Class version = (COJAC.DDLSchema.impl.JAXBVersion.class);
    private static com.sun.msv.grammar.Grammar schemaFragment;

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

    public java.lang.String getAtomicWeight() {
        return _AtomicWeight;
    }

    public void setAtomicWeight(java.lang.String value) {
        _AtomicWeight = value;
    }

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

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

    public java.math.BigInteger getAtomicNumber() {
        return _AtomicNumber;
    }

    public void setAtomicNumber(java.math.BigInteger value) {
        _AtomicNumber = value;
    }

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

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

    public java.lang.String getWeightUnit() {
        return _WeightUnit;
    }

    public void setWeightUnit(java.lang.String value) {
        _WeightUnit = value;
    }

    public java.lang.String getLengthUnit() {
        return _LengthUnit;
    }

    public void setLengthUnit(java.lang.String value) {
        _LengthUnit = value;
    }

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

    public void serializeBody(COJAC.DDLSchema.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        super.serializeBody(context);
    }

    public void serializeAttributes(COJAC.DDLSchema.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        if (_WeightUnit!= null) {
            context.startAttribute("", "weightUnit");
            try {
                context.text(((java.lang.String) _WeightUnit), "WeightUnit");
            } catch (java.lang.Exception e) {
                COJAC.DDLSchema.impl.runtime.Util.handlePrintConversionException(this, e, context);
            }
            context.endAttribute();
        }
        if (_DensityUnit!= null) {
            context.startAttribute("", "densityUnit");
            try {
                context.text(((java.lang.String) _DensityUnit), "DensityUnit");
            } catch (java.lang.Exception e) {
                COJAC.DDLSchema.impl.runtime.Util.handlePrintConversionException(this, e, context);
            }
            context.endAttribute();
        }
        context.startAttribute("", "atomicNumber");
        try {
            context.text(javax.xml.bind.DatatypeConverter.printInteger(((java.math.BigInteger) _AtomicNumber)), "AtomicNumber");
        } catch (java.lang.Exception e) {
            COJAC.DDLSchema.impl.runtime.Util.handlePrintConversionException(this, e, context);
        }
        context.endAttribute();
        context.startAttribute("", "density");
        try {
            context.text(((java.lang.String) _Density), "Density");
        } catch (java.lang.Exception e) {
            COJAC.DDLSchema.impl.runtime.Util.handlePrintConversionException(this, e, context);
        }
        context.endAttribute();
        if (_LengthUnit!= null) {
            context.startAttribute("", "lengthUnit");
            try {
                context.text(((java.lang.String) _LengthUnit), "LengthUnit");
            } catch (java.lang.Exception e) {
                COJAC.DDLSchema.impl.runtime.Util.handlePrintConversionException(this, e, context);
            }
            context.endAttribute();
        }
        context.startAttribute("", "atomicWeight");
        try {
            context.text(((java.lang.String) _AtomicWeight), "AtomicWeight");
        } catch (java.lang.Exception e) {
            COJAC.DDLSchema.impl.runtime.Util.handlePrintConversionException(this, e, context);
        }
        context.endAttribute();
        super.serializeAttributes(context);
    }

    public void serializeURIs(COJAC.DDLSchema.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        super.serializeURIs(context);
    }

    public java.lang.Class getPrimaryInterface() {
        return (COJAC.DDLSchema.ElementaryMaterialType.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\u0010W\u008ehppsq\u0000~\u0000\u0000\r]\u00f4\u00fdppsq\u0000~\u0000\u0000\u000b"
+"b]\u0098ppsq\u0000~\u0000\u0000\b\u00c7-\u009appsq\u0000~\u0000\u0000\u0006Tv\'ppsq\u0000~\u0000\u0000\u0004w\u00bf0ppsq\u0000~\u0000\u0000\u0002\u009a>\u00ccppsr\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\u009e\u00aeOppsr\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\u0000\u00c2r\u00ccppsr\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\u0000\u00fb\u0090xpps"
+"q\u0000~\u0000\f\u0000\u00fb\u0090msr\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(\u0001\u00dd\u0080_ppsq\u0000~\u0000\f\u0001\u00dd\u0080"
+"Tq\u0000~\u0000,psq\u0000~\u0000\u000f\u0000\u0015\u008c\u00d6ppsr\u0000)com.sun.msv.datatype.xsd.EnumerationF"
+"acet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0006valuest\u0000\u000fLjava/util/Set;xr\u00009com.sun.msv.da"
+"tatype.xsd.DataTypeWithValueConstraintFacet\"\u00a7Ro\u00ca\u00c7\u008aT\u0002\u0000\u0000xr\u0000*co"
+"m.sun.msv.datatype.xsd.DataTypeWithFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0005Z\u0000\fisFace"
+"tFixedZ\u0000\u0012needValueCheckFlagL\u0000\bbaseTypet\u0000)Lcom/sun/msv/dataty"
+"pe/xsd/XSDatatypeImpl;L\u0000\fconcreteTypet\u0000\'Lcom/sun/msv/datatyp"
+"e/xsd/ConcreteType;L\u0000\tfacetNameq\u0000~\u0000\u0017xq\u0000~\u0000\u0016t\u0000\u001ahttp://www.cern"
+".ch/cms/DDLt\u0000\u000bweightUnitTq\u0000~\u0000\u001e\u0000\u0000q\u0000~\u0000\u0019q\u0000~\u0000\u0019t\u0000\u000benumerationsr\u0000\u0011"
+"java.util.HashSet\u00baD\u0085\u0095\u0096\u00b8\u00b74\u0003\u0000\u0000xpw\f\u0000\u0000\u0000\u0010?@\u0000\u0000\u0000\u0000\u0000\u0003t\u0000\u0002mgt\u0000\u0002kgt\u0000\u0001gxq"
+"\u0000~\u0000 sq\u0000~\u0000!q\u0000~\u0000=q\u0000~\u0000<sq\u0000~\u0000#t\u0000\nweightUnitq\u0000~\u0000\'q\u0000~\u00000sq\u0000~\u0000(\u0001\u00dc\u00b6\u00f2p"
+"psq\u0000~\u0000\f\u0001\u00dc\u00b6\u00e7q\u0000~\u0000,psq\u0000~\u0000\u000f\u0001\u009a\u000f\u00fbppsq\u0000~\u00005q\u0000~\u0000<t\u0000\fdensityUnitTq\u0000~\u0000\u001e"
+"\u0000\u0000q\u0000~\u0000\u0019q\u0000~\u0000\u0019q\u0000~\u0000>sq\u0000~\u0000?w\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~\u0000Kq\u0000~\u0000<sq\u0000~\u0000#t\u0000\u000bdensityUnitq\u0000~\u0000\'q\u0000~\u00000sq\u0000"
+"~\u0000\f\u0002r\u00b7nppsq\u0000~\u0000\u000f\u0000\u0095\u00f2\u00a0ppsr\u0000$com.sun.msv.datatype.xsd.IntegerTyp"
+"e\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000+com.sun.msv.datatype.xsd.IntegerDerivedType\u0099"
+"\u00f1]\u0090&6k\u00be\u0002\u0000\u0001L\u0000\nbaseFacetsq\u0000~\u00009xq\u0000~\u0000\u0014q\u0000~\u0000\u001at\u0000\u0007integersr\u00005com.sun"
+".msv.datatype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000"
+"~\u0000\u001dsr\u0000,com.sun.msv.datatype.xsd.FractionDigitsFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002"
+"\u0000\u0001I\u0000\u0005scalexr\u0000;com.sun.msv.datatype.xsd.DataTypeWithLexicalCo"
+"nstraintFacetT\u0090\u001c>\u001azb\u00ea\u0002\u0000\u0000xq\u0000~\u00008ppq\u0000~\u0000Z\u0001\u0000sr\u0000#com.sun.msv.datat"
+"ype.xsd.NumberType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0014q\u0000~\u0000\u001at\u0000\u0007decimalq\u0000~\u0000Zq\u0000~\u0000_"
+"t\u0000\u000efractionDigits\u0000\u0000\u0000\u0000q\u0000~\u0000 sq\u0000~\u0000!q\u0000~\u0000Xq\u0000~\u0000\u001asq\u0000~\u0000#t\u0000\fatomicNum"
+"berq\u0000~\u0000\'sq\u0000~\u0000\f\u0002\u009b/\u00f9ppsq\u0000~\u0000\u000f\u0001\u009e\u00a1\u0083ppsr\u0000\'com.sun.msv.datatype.xsd"
+".FinalComponent\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001I\u0000\nfinalValuexr\u0000\u001ecom.sun.msv.datat"
+"ype.xsd.Proxy\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bbaseTypeq\u0000~\u00009xq\u0000~\u0000\u0016q\u0000~\u0000<t\u0000\bdensit"
+"yTq\u0000~\u0000\u001eq\u0000~\u0000\u0019\u0000\u0000\u0000\u0000q\u0000~\u0000 sq\u0000~\u0000!q\u0000~\u0000\u001bq\u0000~\u0000<sq\u0000~\u0000#t\u0000\u0007densityq\u0000~\u0000\'sq"
+"\u0000~\u0000(\u0001\u00fb\u0097`ppsq\u0000~\u0000\f\u0001\u00fb\u0097Uq\u0000~\u0000,psq\u0000~\u0000\u000f\u0001\u000e\u00be(ppsq\u0000~\u00005q\u0000~\u0000<t\u0000\u000blengthUn"
+"itTq\u0000~\u0000\u001e\u0000\u0000q\u0000~\u0000\u0019q\u0000~\u0000\u0019q\u0000~\u0000>sq\u0000~\u0000?w\f\u0000\u0000\u0000\u0010?@\u0000\u0000\u0000\u0000\u0000\u0003t\u0000\u0001mt\u0000\u0002mmt\u0000\u0002cmx"
+"q\u0000~\u0000 sq\u0000~\u0000!q\u0000~\u0000rq\u0000~\u0000<sq\u0000~\u0000#t\u0000\nlengthUnitq\u0000~\u0000\'q\u0000~\u00000sq\u0000~\u0000\f\u0002\u00f9\u0099f"
+"ppsq\u0000~\u0000\u000f\u0001S\u00b2\u00dbppsq\u0000~\u0000gq\u0000~\u0000<t\u0000\u0007weightTq\u0000~\u0000\u001eq\u0000~\u0000\u0019\u0000\u0000\u0000\u0000q\u0000~\u0000 sq\u0000~\u0000!"
+"q\u0000~\u0000\u001bq\u0000~\u0000<sq\u0000~\u0000#t\u0000\fatomicWeightq\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$ClosedHash;xpsr\u0000-com.sun.msv.grammar.Expressi"
+"onPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0002\u0000\u0004I\u0000\u0005countI\u0000\tthresholdL\u0000\u0006parentq\u0000~"
+"\u0000\u0082[\u0000\u0005tablet\u0000![Lcom/sun/msv/grammar/Expression;xp\u0000\u0000\u0000\u000b\u0000\u0000\u00009pur\u0000"
+"![Lcom.sun.msv.grammar.Expression;\u00d68D\u00c3]\u00ad\u00a7\n\u0002\u0000\u0000xp\u0000\u0000\u0000\u00bfppppppppp"
+"pppppppppppppppppppppppppppppppppppppppppppppppppppq\u0000~\u0000\u0006pppp"
+"pq\u0000~\u0000\u0007pppq\u0000~\u0000\u000bpppppppppppppq\u0000~\u0000\tppppppppppq\u0000~\u00002ppppq\u0000~\u0000Gpppp"
+"ppppppq\u0000~\u0000\u0005ppppppppppppppppppppppq\u0000~\u0000\bpppppppppppppppppppppp"
+"pppppppq\u0000~\u0000)pppppq\u0000~\u0000\npppppppppq\u0000~\u0000npppppppppp"));
        }
        return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
    }

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


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

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

        public java.lang.Object owner() {
            return COJAC.DDLSchema.impl.ElementaryMaterialTypeImpl.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  12 :
                        attIdx = context.getAttribute("", "lengthUnit");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText1(v);
                            state = 15;
                            continue outer;
                        }
                        state = 15;
                        continue outer;
                    case  18 :
                        attIdx = context.getAttribute("", "name");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
                            return ;
                        }
                        break;
                    case  6 :
                        attIdx = context.getAttribute("", "atomicNumber");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText2(v);
                            state = 9;
                            continue outer;
                        }
                        break;
                    case  0 :
                        attIdx = context.getAttribute("", "weightUnit");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText3(v);
                            state = 3;
                            continue outer;
                        }
                        state = 3;
                        continue outer;
                    case  15 :
                        attIdx = context.getAttribute("", "atomicWeight");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText4(v);
                            state = 18;
                            continue outer;
                        }
                        break;
                    case  19 :
                        revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
                        return ;
                    case  9 :
                        attIdx = context.getAttribute("", "density");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText5(v);
                            state = 12;
                            continue outer;
                        }
                        break;
                    case  3 :
                        attIdx = context.getAttribute("", "densityUnit");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText6(v);
                            state = 6;
                            continue outer;
                        }
                        state = 6;
                        continue outer;
                }
                super.enterElement(___uri, ___local, ___qname, __atts);
                break;
            }
        }

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

        private void eatText2(final java.lang.String value)
            throws org.xml.sax.SAXException
        {
            try {
                _AtomicNumber = javax.xml.bind.DatatypeConverter.parseInteger(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value));
            } catch (java.lang.Exception e) {
                handleParseConversionException(e);
            }
        }

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

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

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

        private void eatText6(final java.lang.String value)
            throws org.xml.sax.SAXException
        {
            try {
                _DensityUnit = 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  12 :
                        attIdx = context.getAttribute("", "lengthUnit");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText1(v);
                            state = 15;
                            continue outer;
                        }
                        state = 15;
                        continue outer;
                    case  18 :
                        attIdx = context.getAttribute("", "name");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                    case  6 :
                        attIdx = context.getAttribute("", "atomicNumber");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText2(v);
                            state = 9;
                            continue outer;
                        }
                        break;
                    case  0 :
                        attIdx = context.getAttribute("", "weightUnit");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText3(v);
                            state = 3;
                            continue outer;
                        }
                        state = 3;
                        continue outer;
                    case  15 :
                        attIdx = context.getAttribute("", "atomicWeight");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText4(v);
                            state = 18;
                            continue outer;
                        }
                        break;
                    case  19 :
                        revertToParentFromLeaveElement(___uri, ___local, ___qname);
                        return ;
                    case  9 :
                        attIdx = context.getAttribute("", "density");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText5(v);
                            state = 12;
                            continue outer;
                        }
                        break;
                    case  3 :
                        attIdx = context.getAttribute("", "densityUnit");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText6(v);
                            state = 6;
                            continue outer;
                        }
                        state = 6;
                        continue outer;
                }
                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  12 :
                        if (("lengthUnit" == ___local)&&("" == ___uri)) {
                            state = 13;
                            return ;
                        }
                        state = 15;
                        continue outer;
                    case  18 :
                        if (("name" == ___local)&&("" == ___uri)) {
                            spawnHandlerFromEnterAttribute((((COJAC.DDLSchema.impl.MaterialTypeImpl)COJAC.DDLSchema.impl.ElementaryMaterialTypeImpl.this).new Unmarshaller(context)), 19, ___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                    case  6 :
                        if (("atomicNumber" == ___local)&&("" == ___uri)) {
                            state = 7;
                            return ;
                        }
                        break;
                    case  0 :
                        if (("weightUnit" == ___local)&&("" == ___uri)) {
                            state = 1;
                            return ;
                        }
                        state = 3;
                        continue outer;
                    case  15 :
                        if (("atomicWeight" == ___local)&&("" == ___uri)) {
                            state = 16;
                            return ;
                        }
                        break;
                    case  19 :
                        revertToParentFromEnterAttribute(___uri, ___local, ___qname);
                        return ;
                    case  9 :
                        if (("density" == ___local)&&("" == ___uri)) {
                            state = 10;
                            return ;
                        }
                        break;
                    case  3 :
                        if (("densityUnit" == ___local)&&("" == ___uri)) {
                            state = 4;
                            return ;
                        }
                        state = 6;
                        continue outer;
                }
                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  12 :
                        attIdx = context.getAttribute("", "lengthUnit");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText1(v);
                            state = 15;
                            continue outer;
                        }
                        state = 15;
                        continue outer;
                    case  2 :
                        if (("weightUnit" == ___local)&&("" == ___uri)) {
                            state = 3;
                            return ;
                        }
                        break;
                    case  14 :
                        if (("lengthUnit" == ___local)&&("" == ___uri)) {
                            state = 15;
                            return ;
                        }
                        break;
                    case  18 :
                        attIdx = context.getAttribute("", "name");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                    case  5 :
                        if (("densityUnit" == ___local)&&("" == ___uri)) {
                            state = 6;
                            return ;
                        }
                        break;
                    case  6 :
                        attIdx = context.getAttribute("", "atomicNumber");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText2(v);
                            state = 9;
                            continue outer;
                        }
                        break;
                    case  8 :
                        if (("atomicNumber" == ___local)&&("" == ___uri)) {
                            state = 9;
                            return ;
                        }
                        break;
                    case  17 :
                        if (("atomicWeight" == ___local)&&("" == ___uri)) {
                            state = 18;
                            return ;
                        }
                        break;
                    case  0 :
                        attIdx = context.getAttribute("", "weightUnit");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText3(v);
                            state = 3;
                            continue outer;
                        }
                        state = 3;
                        continue outer;
                    case  11 :
                        if (("density" == ___local)&&("" == ___uri)) {
                            state = 12;
                            return ;
                        }
                        break;
                    case  15 :
                        attIdx = context.getAttribute("", "atomicWeight");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText4(v);
                            state = 18;
                            continue outer;
                        }
                        break;
                    case  19 :
                        revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
                        return ;
                    case  9 :
                        attIdx = context.getAttribute("", "density");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText5(v);
                            state = 12;
                            continue outer;
                        }
                        break;
                    case  3 :
                        attIdx = context.getAttribute("", "densityUnit");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            eatText6(v);
                            state = 6;
                            continue outer;
                        }
                        state = 6;
                        continue outer;
                }
                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  12 :
                            attIdx = context.getAttribute("", "lengthUnit");
                            if (attIdx >= 0) {
                                final java.lang.String v = context.eatAttribute(attIdx);
                                eatText1(v);
                                state = 15;
                                continue outer;
                            }
                            state = 15;
                            continue outer;
                        case  16 :
                            eatText4(value);
                            state = 17;
                            return ;
                        case  7 :
                            eatText2(value);
                            state = 8;
                            return ;
                        case  18 :
                            attIdx = context.getAttribute("", "name");
                            if (attIdx >= 0) {
                                context.consumeAttribute(attIdx);
                                context.getCurrentHandler().text(value);
                                return ;
                            }
                            break;
                        case  6 :
                            attIdx = context.getAttribute("", "atomicNumber");
                            if (attIdx >= 0) {
                                final java.lang.String v = context.eatAttribute(attIdx);
                                eatText2(v);
                                state = 9;
                                continue outer;
                            }
                            break;
                        case  10 :
                            eatText5(value);
                            state = 11;
                            return ;
                        case  0 :
                            attIdx = context.getAttribute("", "weightUnit");
                            if (attIdx >= 0) {
                                final java.lang.String v = context.eatAttribute(attIdx);
                                eatText3(v);
                                state = 3;
                                continue outer;
                            }
                            state = 3;
                            continue outer;
                        case  1 :
                            eatText3(value);
                            state = 2;
                            return ;
                        case  15 :
                            attIdx = context.getAttribute("", "atomicWeight");
                            if (attIdx >= 0) {
                                final java.lang.String v = context.eatAttribute(attIdx);
                                eatText4(v);
                                state = 18;
                                continue outer;
                            }
                            break;
                        case  13 :
                            eatText1(value);
                            state = 14;
                            return ;
                        case  19 :
                            revertToParentFromText(value);
                            return ;
                        case  9 :
                            attIdx = context.getAttribute("", "density");
                            if (attIdx >= 0) {
                                final java.lang.String v = context.eatAttribute(attIdx);
                                eatText5(v);
                                state = 12;
                                continue outer;
                            }
                            break;
                        case  4 :
                            eatText6(value);
                            state = 5;
                            return ;
                        case  3 :
                            attIdx = context.getAttribute("", "densityUnit");
                            if (attIdx >= 0) {
                                final java.lang.String v = context.eatAttribute(attIdx);
                                eatText6(v);
                                state = 6;
                                continue outer;
                            }
                            state = 6;
                            continue outer;
                    }
                } catch (java.lang.RuntimeException e) {
                    handleUnexpectedTextException(value, e);
                }
                break;
            }
        }

    }

}
