//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.6-01/24/2006 06:08 PM(kohsuke)-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: 2010.11.10 at 07:55:46 PM PST 
//


package org.infoml.jaxb.impl;

public class ContainerTypeImpl implements org.infoml.jaxb.ContainerType, com.sun.xml.bind.JAXBObject, org.infoml.jaxb.impl.runtime.UnmarshallableObject, org.infoml.jaxb.impl.runtime.XMLSerializable, org.infoml.jaxb.impl.runtime.ValidatableObject
{

    protected java.lang.String _Category;
    protected com.sun.xml.bind.util.ListImpl _ContainerNamePart;
    protected com.sun.xml.bind.util.ListImpl _Date;
    protected org.infoml.jaxb.SimpleRichTextWithSeparatorType _NameAppendedText;
    public final static java.lang.Class version = (org.infoml.jaxb.impl.JAXBVersion.class);
    private static com.sun.msv.grammar.Grammar schemaFragment;

    private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
        return (org.infoml.jaxb.ContainerType.class);
    }

    public java.lang.String getCategory() {
        return _Category;
    }

    public void setCategory(java.lang.String value) {
        _Category = value;
    }

    protected com.sun.xml.bind.util.ListImpl _getContainerNamePart() {
        if (_ContainerNamePart == null) {
            _ContainerNamePart = new com.sun.xml.bind.util.ListImpl(new java.util.ArrayList());
        }
        return _ContainerNamePart;
    }

    public java.util.List getContainerNamePart() {
        return _getContainerNamePart();
    }

    protected com.sun.xml.bind.util.ListImpl _getDate() {
        if (_Date == null) {
            _Date = new com.sun.xml.bind.util.ListImpl(new java.util.ArrayList());
        }
        return _Date;
    }

    public java.util.List getDate() {
        return _getDate();
    }

    public org.infoml.jaxb.SimpleRichTextWithSeparatorType getNameAppendedText() {
        return _NameAppendedText;
    }

    public void setNameAppendedText(org.infoml.jaxb.SimpleRichTextWithSeparatorType value) {
        _NameAppendedText = value;
    }

    public org.infoml.jaxb.impl.runtime.UnmarshallingEventHandler createUnmarshaller(org.infoml.jaxb.impl.runtime.UnmarshallingContext context) {
        return new org.infoml.jaxb.impl.ContainerTypeImpl.Unmarshaller(context);
    }

    public void serializeBody(org.infoml.jaxb.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        int idx2 = 0;
        final int len2 = ((_ContainerNamePart == null)? 0 :_ContainerNamePart.size());
        int idx3 = 0;
        final int len3 = ((_Date == null)? 0 :_Date.size());
        while (idx2 != len2) {
            context.startElement("http://infoml.org/infomlFile", "containerNamePart");
            int idx_0 = idx2;
            context.childAsURIs(((com.sun.xml.bind.JAXBObject) _ContainerNamePart.get(idx_0 ++)), "ContainerNamePart");
            context.endNamespaceDecls();
            int idx_1 = idx2;
            context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _ContainerNamePart.get(idx_1 ++)), "ContainerNamePart");
            context.endAttributes();
            context.childAsBody(((com.sun.xml.bind.JAXBObject) _ContainerNamePart.get(idx2 ++)), "ContainerNamePart");
            context.endElement();
        }
        while (idx3 != len3) {
            context.startElement("http://infoml.org/infomlFile", "date");
            int idx_2 = idx3;
            context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Date.get(idx_2 ++)), "Date");
            context.endNamespaceDecls();
            int idx_3 = idx3;
            context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Date.get(idx_3 ++)), "Date");
            context.endAttributes();
            context.childAsBody(((com.sun.xml.bind.JAXBObject) _Date.get(idx3 ++)), "Date");
            context.endElement();
        }
        if (_NameAppendedText!= null) {
            context.startElement("http://infoml.org/infomlFile", "nameAppendedText");
            context.childAsURIs(((com.sun.xml.bind.JAXBObject) _NameAppendedText), "NameAppendedText");
            context.endNamespaceDecls();
            context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _NameAppendedText), "NameAppendedText");
            context.endAttributes();
            context.childAsBody(((com.sun.xml.bind.JAXBObject) _NameAppendedText), "NameAppendedText");
            context.endElement();
        }
    }

    public void serializeAttributes(org.infoml.jaxb.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        int idx2 = 0;
        final int len2 = ((_ContainerNamePart == null)? 0 :_ContainerNamePart.size());
        int idx3 = 0;
        final int len3 = ((_Date == null)? 0 :_Date.size());
        if (_Category!= null) {
            context.startAttribute("", "category");
            try {
                context.text(((java.lang.String) _Category), "Category");
            } catch (java.lang.Exception e) {
                org.infoml.jaxb.impl.runtime.Util.handlePrintConversionException(this, e, context);
            }
            context.endAttribute();
        }
        while (idx2 != len2) {
            idx2 += 1;
        }
        while (idx3 != len3) {
            idx3 += 1;
        }
    }

    public void serializeURIs(org.infoml.jaxb.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        int idx2 = 0;
        final int len2 = ((_ContainerNamePart == null)? 0 :_ContainerNamePart.size());
        int idx3 = 0;
        final int len3 = ((_Date == null)? 0 :_Date.size());
        while (idx2 != len2) {
            idx2 += 1;
        }
        while (idx3 != len3) {
            idx3 += 1;
        }
    }

    public java.lang.Class getPrimaryInterface() {
        return (org.infoml.jaxb.ContainerType.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\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000b"
+"expandedExpq\u0000~\u0000\u0002xpppsq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0000ppsr\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\u0003ppsr\u0000\'com.sun.msv.grammar.trex.Elemen"
+"tPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameC"
+"lass;xr\u0000\u001ecom.sun.msv.grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreU"
+"ndeclaredAttributesL\u0000\fcontentModelq\u0000~\u0000\u0002xq\u0000~\u0000\u0003pp\u0000sq\u0000~\u0000\u0000ppsq\u0000~"
+"\u0000\u000bpp\u0000sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001ppsq\u0000"
+"~\u0000\bsr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000 com.sun.m"
+"sv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClassq\u0000~"
+"\u0000\fxq\u0000~\u0000\u0003q\u0000~\u0000\u0015psr\u00002com.sun.msv.grammar.Expression$AnyStringEx"
+"pression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003sq\u0000~\u0000\u0014\u0001q\u0000~\u0000\u0019sr\u0000 com.sun.msv.grammar"
+".AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000"
+"\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression$EpsilonExpressi"
+"on\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003q\u0000~\u0000\u001aq\u0000~\u0000\u001fsr\u0000#com.sun.msv.grammar.SimpleN"
+"ameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNamet\u0000\u0012Ljava/lang/String;L\u0000\fnames"
+"paceURIq\u0000~\u0000!xq\u0000~\u0000\u001ct\u0000/org.infoml.jaxb.SimpleRichTextWithSepar"
+"atorTypet\u0000+http://java.sun.com/jaxb/xjc/dummy-elementssq\u0000~\u0000\u0011"
+"ppsq\u0000~\u0000\u0016q\u0000~\u0000\u0015psr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002d"
+"tt\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dL"
+"com/sun/msv/util/StringPair;xq\u0000~\u0000\u0003ppsr\u0000\"com.sun.msv.datatype"
+".xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.Builti"
+"nAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.ConcreteT"
+"ype\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\fnamespaceUriq\u0000~\u0000!L\u0000\btypeNameq\u0000~\u0000!L\u0000\nwhiteSpacet\u0000."
+"Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http://ww"
+"w.w3.org/2001/XMLSchemat\u0000\u0005QNamesr\u00005com.sun.msv.datatype.xsd."
+"WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datat"
+"ype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.gram"
+"mar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003q\u0000~\u0000\u0015psr\u0000\u001bc"
+"om.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000!L\u0000\fnam"
+"espaceURIq\u0000~\u0000!xpq\u0000~\u00002q\u0000~\u00001sq\u0000~\u0000 t\u0000\u0004typet\u0000)http://www.w3.org/"
+"2001/XMLSchema-instanceq\u0000~\u0000\u001fsq\u0000~\u0000 t\u0000\u0011containerNamePartt\u0000\u001chtt"
+"p://infoml.org/infomlFilesq\u0000~\u0000\u0011ppsq\u0000~\u0000\bq\u0000~\u0000\u0015psq\u0000~\u0000\u000bq\u0000~\u0000\u0015p\u0000sq"
+"\u0000~\u0000\u0000ppsq\u0000~\u0000\u000bpp\u0000sq\u0000~\u0000\u0011ppsq\u0000~\u0000\bq\u0000~\u0000\u0015psq\u0000~\u0000\u0016q\u0000~\u0000\u0015pq\u0000~\u0000\u0019q\u0000~\u0000\u001dq\u0000~"
+"\u0000\u001fsq\u0000~\u0000 t\u0000 org.infoml.jaxb.DateWithRoleTypeq\u0000~\u0000$sq\u0000~\u0000\u0011ppsq\u0000~"
+"\u0000\u0016q\u0000~\u0000\u0015pq\u0000~\u0000*q\u0000~\u0000:q\u0000~\u0000\u001fsq\u0000~\u0000 t\u0000\u0004dateq\u0000~\u0000?q\u0000~\u0000\u001fsq\u0000~\u0000\u0011ppsq\u0000~\u0000\u000b"
+"q\u0000~\u0000\u0015p\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u000bpp\u0000sq\u0000~\u0000\u0011ppsq\u0000~\u0000\bq\u0000~\u0000\u0015psq\u0000~\u0000\u0016q\u0000~\u0000\u0015pq\u0000~\u0000"
+"\u0019q\u0000~\u0000\u001dq\u0000~\u0000\u001fsq\u0000~\u0000 q\u0000~\u0000#q\u0000~\u0000$sq\u0000~\u0000\u0011ppsq\u0000~\u0000\u0016q\u0000~\u0000\u0015pq\u0000~\u0000*q\u0000~\u0000:q\u0000~"
+"\u0000\u001fsq\u0000~\u0000 t\u0000\u0010nameAppendedTextq\u0000~\u0000?q\u0000~\u0000\u001fsq\u0000~\u0000\u0011ppsq\u0000~\u0000\u0016q\u0000~\u0000\u0015psq\u0000"
+"~\u0000\'ppsr\u0000%com.sun.msv.datatype.xsd.SimpleURType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000"
+"~\u0000,q\u0000~\u00001t\u0000\ranySimpleTypesr\u00005com.sun.msv.datatype.xsd.WhiteSp"
+"aceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u00004q\u0000~\u00007sq\u0000~\u00008q\u0000~\u0000_q\u0000~\u00001s"
+"q\u0000~\u0000 t\u0000\bcategoryt\u0000\u0000q\u0000~\u0000\u001fsr\u0000\"com.sun.msv.grammar.ExpressionPo"
+"ol\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/ExpressionPo"
+"ol$ClosedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$Close"
+"dHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/sun"
+"/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0014\u0001pq\u0000~\u0000\u0007q\u0000~\u0000%q\u0000~\u0000Jq\u0000~\u0000Vq\u0000~\u0000"
+"\nq\u0000~\u0000Aq\u0000~\u0000\u0006q\u0000~\u0000\u0013q\u0000~\u0000Fq\u0000~\u0000Sq\u0000~\u0000Zq\u0000~\u0000@q\u0000~\u0000\u000fq\u0000~\u0000Cq\u0000~\u0000Pq\u0000~\u0000\u0005q\u0000~\u0000"
+"\u0012q\u0000~\u0000Eq\u0000~\u0000Rq\u0000~\u0000Nx"));
        }
        return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
    }

    public class Unmarshaller
        extends org.infoml.jaxb.impl.runtime.AbstractUnmarshallingEventHandlerImpl
    {


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

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

        public java.lang.Object owner() {
            return org.infoml.jaxb.impl.ContainerTypeImpl.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  6 :
                        if (("containerNamePart" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.pushAttributes(__atts, true);
                            state = 4;
                            return ;
                        }
                        if (("date" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.pushAttributes(__atts, true);
                            state = 7;
                            return ;
                        }
                        state = 9;
                        continue outer;
                    case  12 :
                        revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
                        return ;
                    case  0 :
                        attIdx = context.getAttribute("", "category");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            state = 3;
                            eatText1(v);
                            continue outer;
                        }
                        state = 3;
                        continue outer;
                    case  7 :
                        attIdx = context.getAttribute("", "role");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
                            return ;
                        }
                        break;
                    case  4 :
                        attIdx = context.getAttribute("", "preSeparator");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
                            return ;
                        }
                        if (("em" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _getContainerNamePart().add(((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 5, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("strong" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _getContainerNamePart().add(((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 5, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("code" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _getContainerNamePart().add(((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 5, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("a" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _getContainerNamePart().add(((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 5, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("pre" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _getContainerNamePart().add(((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 5, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        _getContainerNamePart().add(((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 5, ___uri, ___local, ___qname, __atts)));
                        return ;
                    case  10 :
                        attIdx = context.getAttribute("", "preSeparator");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
                            return ;
                        }
                        if (("em" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _NameAppendedText = ((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 11, ___uri, ___local, ___qname, __atts));
                            return ;
                        }
                        if (("strong" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _NameAppendedText = ((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 11, ___uri, ___local, ___qname, __atts));
                            return ;
                        }
                        if (("code" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _NameAppendedText = ((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 11, ___uri, ___local, ___qname, __atts));
                            return ;
                        }
                        if (("a" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _NameAppendedText = ((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 11, ___uri, ___local, ___qname, __atts));
                            return ;
                        }
                        if (("pre" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _NameAppendedText = ((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 11, ___uri, ___local, ___qname, __atts));
                            return ;
                        }
                        _NameAppendedText = ((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 11, ___uri, ___local, ___qname, __atts));
                        return ;
                    case  3 :
                        if (("containerNamePart" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.pushAttributes(__atts, true);
                            state = 4;
                            return ;
                        }
                        break;
                    case  9 :
                        if (("date" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.pushAttributes(__atts, true);
                            state = 7;
                            return ;
                        }
                        if (("nameAppendedText" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.pushAttributes(__atts, true);
                            state = 10;
                            return ;
                        }
                        state = 12;
                        continue outer;
                }
                super.enterElement(___uri, ___local, ___qname, __atts);
                break;
            }
        }

        private void eatText1(final java.lang.String value)
            throws org.xml.sax.SAXException
        {
            try {
                _Category = 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  6 :
                        state = 9;
                        continue outer;
                    case  11 :
                        if (("nameAppendedText" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.popAttributes();
                            state = 12;
                            return ;
                        }
                        break;
                    case  12 :
                        revertToParentFromLeaveElement(___uri, ___local, ___qname);
                        return ;
                    case  5 :
                        if (("containerNamePart" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.popAttributes();
                            state = 6;
                            return ;
                        }
                        break;
                    case  0 :
                        attIdx = context.getAttribute("", "category");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            state = 3;
                            eatText1(v);
                            continue outer;
                        }
                        state = 3;
                        continue outer;
                    case  8 :
                        if (("date" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.popAttributes();
                            state = 9;
                            return ;
                        }
                        break;
                    case  7 :
                        attIdx = context.getAttribute("", "role");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                    case  4 :
                        attIdx = context.getAttribute("", "preSeparator");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
                            return ;
                        }
                        _getContainerNamePart().add(((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromLeaveElement((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 5, ___uri, ___local, ___qname)));
                        return ;
                    case  10 :
                        attIdx = context.getAttribute("", "preSeparator");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
                            return ;
                        }
                        _NameAppendedText = ((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromLeaveElement((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 11, ___uri, ___local, ___qname));
                        return ;
                    case  9 :
                        state = 12;
                        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  6 :
                        state = 9;
                        continue outer;
                    case  12 :
                        revertToParentFromEnterAttribute(___uri, ___local, ___qname);
                        return ;
                    case  0 :
                        if (("category" == ___local)&&("" == ___uri)) {
                            state = 1;
                            return ;
                        }
                        state = 3;
                        continue outer;
                    case  7 :
                        if (("role" == ___local)&&("" == ___uri)) {
                            _getDate().add(((org.infoml.jaxb.impl.DateWithRoleTypeImpl) spawnChildFromEnterAttribute((org.infoml.jaxb.impl.DateWithRoleTypeImpl.class), 8, ___uri, ___local, ___qname)));
                            return ;
                        }
                        break;
                    case  4 :
                        if (("preSeparator" == ___local)&&("" == ___uri)) {
                            _getContainerNamePart().add(((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromEnterAttribute((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 5, ___uri, ___local, ___qname)));
                            return ;
                        }
                        _getContainerNamePart().add(((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromEnterAttribute((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 5, ___uri, ___local, ___qname)));
                        return ;
                    case  10 :
                        if (("preSeparator" == ___local)&&("" == ___uri)) {
                            _NameAppendedText = ((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromEnterAttribute((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 11, ___uri, ___local, ___qname));
                            return ;
                        }
                        _NameAppendedText = ((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromEnterAttribute((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 11, ___uri, ___local, ___qname));
                        return ;
                    case  9 :
                        state = 12;
                        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  6 :
                        state = 9;
                        continue outer;
                    case  12 :
                        revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
                        return ;
                    case  0 :
                        attIdx = context.getAttribute("", "category");
                        if (attIdx >= 0) {
                            final java.lang.String v = context.eatAttribute(attIdx);
                            state = 3;
                            eatText1(v);
                            continue outer;
                        }
                        state = 3;
                        continue outer;
                    case  7 :
                        attIdx = context.getAttribute("", "role");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                    case  4 :
                        attIdx = context.getAttribute("", "preSeparator");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
                            return ;
                        }
                        _getContainerNamePart().add(((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromLeaveAttribute((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 5, ___uri, ___local, ___qname)));
                        return ;
                    case  10 :
                        attIdx = context.getAttribute("", "preSeparator");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
                            return ;
                        }
                        _NameAppendedText = ((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromLeaveAttribute((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 11, ___uri, ___local, ___qname));
                        return ;
                    case  2 :
                        if (("category" == ___local)&&("" == ___uri)) {
                            state = 3;
                            return ;
                        }
                        break;
                    case  9 :
                        state = 12;
                        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  6 :
                            state = 9;
                            continue outer;
                        case  12 :
                            revertToParentFromText(value);
                            return ;
                        case  0 :
                            attIdx = context.getAttribute("", "category");
                            if (attIdx >= 0) {
                                final java.lang.String v = context.eatAttribute(attIdx);
                                state = 3;
                                eatText1(v);
                                continue outer;
                            }
                            state = 3;
                            continue outer;
                        case  7 :
                            attIdx = context.getAttribute("", "role");
                            if (attIdx >= 0) {
                                context.consumeAttribute(attIdx);
                                context.getCurrentHandler().text(value);
                                return ;
                            }
                            break;
                        case  4 :
                            attIdx = context.getAttribute("", "preSeparator");
                            if (attIdx >= 0) {
                                context.consumeAttribute(attIdx);
                                context.getCurrentHandler().text(value);
                                return ;
                            }
                            _getContainerNamePart().add(((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromText((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 5, value)));
                            return ;
                        case  10 :
                            attIdx = context.getAttribute("", "preSeparator");
                            if (attIdx >= 0) {
                                context.consumeAttribute(attIdx);
                                context.getCurrentHandler().text(value);
                                return ;
                            }
                            _NameAppendedText = ((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl) spawnChildFromText((org.infoml.jaxb.impl.SimpleRichTextWithSeparatorTypeImpl.class), 11, value));
                            return ;
                        case  9 :
                            state = 12;
                            continue outer;
                        case  1 :
                            state = 2;
                            eatText1(value);
                            return ;
                    }
                } catch (java.lang.RuntimeException e) {
                    handleUnexpectedTextException(value, e);
                }
                break;
            }
        }

    }

}
