//
// 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 EnclosingSourceTypeImpl implements org.infoml.jaxb.EnclosingSourceType, 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 org.infoml.jaxb.ComplexPointType _ComplexLocation;
    protected com.sun.xml.bind.util.ListImpl _Agent;
    protected org.infoml.jaxb.LocationType _Location;
    protected org.infoml.jaxb.ContainerType _Container;
    protected org.infoml.jaxb.EnclosingSourceType _EnclosingSource;
    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.EnclosingSourceType.class);
    }

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

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

    public org.infoml.jaxb.ComplexPointType getComplexLocation() {
        return _ComplexLocation;
    }

    public void setComplexLocation(org.infoml.jaxb.ComplexPointType value) {
        _ComplexLocation = value;
    }

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

    public java.util.List getAgent() {
        return _getAgent();
    }

    public org.infoml.jaxb.LocationType getLocation() {
        return _Location;
    }

    public void setLocation(org.infoml.jaxb.LocationType value) {
        _Location = value;
    }

    public org.infoml.jaxb.ContainerType getContainer() {
        return _Container;
    }

    public void setContainer(org.infoml.jaxb.ContainerType value) {
        _Container = value;
    }

    public org.infoml.jaxb.EnclosingSourceType getEnclosingSource() {
        return _EnclosingSource;
    }

    public void setEnclosingSource(org.infoml.jaxb.EnclosingSourceType value) {
        _EnclosingSource = value;
    }

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

    public void serializeBody(org.infoml.jaxb.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        int idx3 = 0;
        final int len3 = ((_Agent == null)? 0 :_Agent.size());
        while (idx3 != len3) {
            context.startElement("http://infoml.org/infomlFile", "agent");
            int idx_0 = idx3;
            context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Agent.get(idx_0 ++)), "Agent");
            context.endNamespaceDecls();
            int idx_1 = idx3;
            context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Agent.get(idx_1 ++)), "Agent");
            context.endAttributes();
            context.childAsBody(((com.sun.xml.bind.JAXBObject) _Agent.get(idx3 ++)), "Agent");
            context.endElement();
        }
        if (_Container!= null) {
            context.startElement("http://infoml.org/infomlFile", "container");
            context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Container), "Container");
            context.endNamespaceDecls();
            context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Container), "Container");
            context.endAttributes();
            context.childAsBody(((com.sun.xml.bind.JAXBObject) _Container), "Container");
            context.endElement();
        }
        if ((_ComplexLocation == null)&&(_Location!= null)) {
            context.startElement("http://infoml.org/infomlFile", "location");
            context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Location), "Location");
            context.endNamespaceDecls();
            context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Location), "Location");
            context.endAttributes();
            context.childAsBody(((com.sun.xml.bind.JAXBObject) _Location), "Location");
            context.endElement();
        } else {
            if ((_ComplexLocation!= null)&&(_Location == null)) {
                context.startElement("http://infoml.org/infomlFile", "complexLocation");
                context.childAsURIs(((com.sun.xml.bind.JAXBObject) _ComplexLocation), "ComplexLocation");
                context.endNamespaceDecls();
                context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _ComplexLocation), "ComplexLocation");
                context.endAttributes();
                context.childAsBody(((com.sun.xml.bind.JAXBObject) _ComplexLocation), "ComplexLocation");
                context.endElement();
            }
        }
        if (_EnclosingSource!= null) {
            context.startElement("http://infoml.org/infomlFile", "enclosingSource");
            context.childAsURIs(((com.sun.xml.bind.JAXBObject) _EnclosingSource), "EnclosingSource");
            context.endNamespaceDecls();
            context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _EnclosingSource), "EnclosingSource");
            context.endAttributes();
            context.childAsBody(((com.sun.xml.bind.JAXBObject) _EnclosingSource), "EnclosingSource");
            context.endElement();
        }
    }

    public void serializeAttributes(org.infoml.jaxb.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        int idx3 = 0;
        final int len3 = ((_Agent == null)? 0 :_Agent.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 (idx3 != len3) {
            idx3 += 1;
        }
    }

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

    public java.lang.Class getPrimaryInterface() {
        return (org.infoml.jaxb.EnclosingSourceType.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\u0000ppsq\u0000~\u0000\u0000ppsr\u0000\u001dcom.sun.msv."
+"grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001ppsr\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\u0003sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005va"
+"luexp\u0000psr\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000"
+"\u0001L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.m"
+"sv.grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttribute"
+"sL\u0000\fcontentModelq\u0000~\u0000\u0002xq\u0000~\u0000\u0003q\u0000~\u0000\u000fp\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0010pp\u0000sq\u0000~\u0000\tpps"
+"q\u0000~\u0000\u000bq\u0000~\u0000\u000fpsr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000"
+"\u0003expq\u0000~\u0000\u0002L\u0000\tnameClassq\u0000~\u0000\u0011xq\u0000~\u0000\u0003q\u0000~\u0000\u000fpsr\u00002com.sun.msv.gramma"
+"r.Expression$AnyStringExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003sq\u0000~\u0000\u000e\u0001q\u0000~\u0000"
+"\u001bsr\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.Ex"
+"pression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003q\u0000~\u0000\u001cq\u0000~\u0000!sr\u0000#com"
+".sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNamet\u0000\u0012Lj"
+"ava/lang/String;L\u0000\fnamespaceURIq\u0000~\u0000#xq\u0000~\u0000\u001et\u0000\u0019org.infoml.jaxb"
+".AgentTypet\u0000+http://java.sun.com/jaxb/xjc/dummy-elementssq\u0000~"
+"\u0000\tppsq\u0000~\u0000\u0018q\u0000~\u0000\u000fpsr\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/StringPair;xq\u0000~\u0000\u0003ppsr\u0000\"com.sun.msv.dataty"
+"pe.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.Buil"
+"tinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.Concret"
+"eType\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://"
+"www.w3.org/2001/XMLSchemat\u0000\u0005QNamesr\u00005com.sun.msv.datatype.xs"
+"d.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.dat"
+"atype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.gr"
+"ammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003q\u0000~\u0000\u000fpsr\u0000"
+"\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000#L\u0000\fn"
+"amespaceURIq\u0000~\u0000#xpq\u0000~\u00004q\u0000~\u00003sq\u0000~\u0000\"t\u0000\u0004typet\u0000)http://www.w3.or"
+"g/2001/XMLSchema-instanceq\u0000~\u0000!sq\u0000~\u0000\"t\u0000\u0005agentt\u0000\u001chttp://infoml"
+".org/infomlFileq\u0000~\u0000!sq\u0000~\u0000\tppsq\u0000~\u0000\u0010q\u0000~\u0000\u000fp\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0010pp\u0000sq"
+"\u0000~\u0000\tppsq\u0000~\u0000\u000bq\u0000~\u0000\u000fpsq\u0000~\u0000\u0018q\u0000~\u0000\u000fpq\u0000~\u0000\u001bq\u0000~\u0000\u001fq\u0000~\u0000!sq\u0000~\u0000\"t\u0000\u001dorg.in"
+"foml.jaxb.ContainerTypeq\u0000~\u0000&sq\u0000~\u0000\tppsq\u0000~\u0000\u0018q\u0000~\u0000\u000fpq\u0000~\u0000,q\u0000~\u0000<q\u0000"
+"~\u0000!sq\u0000~\u0000\"t\u0000\tcontainerq\u0000~\u0000Aq\u0000~\u0000!sq\u0000~\u0000\tppsq\u0000~\u0000\tppsq\u0000~\u0000\u0010q\u0000~\u0000\u000fp\u0000"
+"sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0010pp\u0000sq\u0000~\u0000\tppsq\u0000~\u0000\u000bq\u0000~\u0000\u000fpsq\u0000~\u0000\u0018q\u0000~\u0000\u000fpq\u0000~\u0000\u001bq\u0000~\u0000\u001fq"
+"\u0000~\u0000!sq\u0000~\u0000\"t\u0000\u001corg.infoml.jaxb.LocationTypeq\u0000~\u0000&sq\u0000~\u0000\tppsq\u0000~\u0000\u0018"
+"q\u0000~\u0000\u000fpq\u0000~\u0000,q\u0000~\u0000<q\u0000~\u0000!sq\u0000~\u0000\"t\u0000\blocationq\u0000~\u0000Aq\u0000~\u0000!sq\u0000~\u0000\u0010pp\u0000sq\u0000"
+"~\u0000\u0000ppsq\u0000~\u0000\u0010pp\u0000sq\u0000~\u0000\tppsq\u0000~\u0000\u000bq\u0000~\u0000\u000fpsq\u0000~\u0000\u0018q\u0000~\u0000\u000fpq\u0000~\u0000\u001bq\u0000~\u0000\u001fq\u0000~\u0000"
+"!sq\u0000~\u0000\"t\u0000 org.infoml.jaxb.ComplexPointTypeq\u0000~\u0000&sq\u0000~\u0000\tppsq\u0000~\u0000"
+"\u0018q\u0000~\u0000\u000fpq\u0000~\u0000,q\u0000~\u0000<q\u0000~\u0000!sq\u0000~\u0000\"t\u0000\u000fcomplexLocationq\u0000~\u0000Asq\u0000~\u0000\tpps"
+"q\u0000~\u0000\u0010q\u0000~\u0000\u000fp\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0010pp\u0000sq\u0000~\u0000\tppsq\u0000~\u0000\u000bq\u0000~\u0000\u000fpsq\u0000~\u0000\u0018q\u0000~\u0000\u000f"
+"pq\u0000~\u0000\u001bq\u0000~\u0000\u001fq\u0000~\u0000!sq\u0000~\u0000\"t\u0000#org.infoml.jaxb.EnclosingSourceType"
+"q\u0000~\u0000&sq\u0000~\u0000\tppsq\u0000~\u0000\u0018q\u0000~\u0000\u000fpq\u0000~\u0000,q\u0000~\u0000<q\u0000~\u0000!sq\u0000~\u0000\"t\u0000\u000fenclosingSo"
+"urceq\u0000~\u0000Aq\u0000~\u0000!sq\u0000~\u0000\tppsq\u0000~\u0000\u0018q\u0000~\u0000\u000fpsq\u0000~\u0000)ppsr\u0000%com.sun.msv.da"
+"tatype.xsd.SimpleURType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000.q\u0000~\u00003t\u0000\ranySimpleTyp"
+"esr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Preserve\u0000\u0000"
+"\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u00006q\u0000~\u00009sq\u0000~\u0000:q\u0000~\u0000{q\u0000~\u00003sq\u0000~\u0000\"t\u0000\bcategoryt\u0000\u0000q\u0000~\u0000"
+"!sr\u0000\"com.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTabl"
+"et\u0000/Lcom/sun/msv/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com"
+".sun.msv.grammar.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005coun"
+"tB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lcom/sun/msv/grammar/Expression"
+"Pool;xp\u0000\u0000\u0000\u001f\u0001pq\u0000~\u0000\u0006q\u0000~\u0000\u0007q\u0000~\u0000\'q\u0000~\u0000Kq\u0000~\u0000Yq\u0000~\u0000eq\u0000~\u0000rq\u0000~\u0000Oq\u0000~\u0000\bq\u0000"
+"~\u0000vq\u0000~\u0000\rq\u0000~\u0000\u0017q\u0000~\u0000Gq\u0000~\u0000Uq\u0000~\u0000aq\u0000~\u0000nq\u0000~\u0000\u0005q\u0000~\u0000\nq\u0000~\u0000\u0014q\u0000~\u0000Dq\u0000~\u0000Rq\u0000"
+"~\u0000^q\u0000~\u0000kq\u0000~\u0000\u0016q\u0000~\u0000Fq\u0000~\u0000Tq\u0000~\u0000`q\u0000~\u0000mq\u0000~\u0000Bq\u0000~\u0000Pq\u0000~\u0000ix"));
        }
        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.EnclosingSourceTypeImpl.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  9 :
                        if (("location" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.pushAttributes(__atts, false);
                            state = 10;
                            return ;
                        }
                        if (("complexLocation" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.pushAttributes(__atts, false);
                            state = 16;
                            return ;
                        }
                        state = 12;
                        continue outer;
                    case  10 :
                        if (("range" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _Location = ((org.infoml.jaxb.impl.LocationTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.LocationTypeImpl.class), 11, ___uri, ___local, ___qname, __atts));
                            return ;
                        }
                        if (("point" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _Location = ((org.infoml.jaxb.impl.LocationTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.LocationTypeImpl.class), 11, ___uri, ___local, ___qname, __atts));
                            return ;
                        }
                        if (("complexRange" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _Location = ((org.infoml.jaxb.impl.LocationTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.LocationTypeImpl.class), 11, ___uri, ___local, ___qname, __atts));
                            return ;
                        }
                        if (("complexPoint" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _Location = ((org.infoml.jaxb.impl.LocationTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.LocationTypeImpl.class), 11, ___uri, ___local, ___qname, __atts));
                            return ;
                        }
                        break;
                    case  7 :
                        attIdx = context.getAttribute("", "category");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
                            return ;
                        }
                        if (("containerNamePart" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _Container = ((org.infoml.jaxb.impl.ContainerTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.ContainerTypeImpl.class), 8, ___uri, ___local, ___qname, __atts));
                            return ;
                        }
                        break;
                    case  13 :
                        attIdx = context.getAttribute("", "category");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
                            return ;
                        }
                        if (("agent" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _EnclosingSource = ((org.infoml.jaxb.impl.EnclosingSourceTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.EnclosingSourceTypeImpl.class), 14, ___uri, ___local, ___qname, __atts));
                            return ;
                        }
                        if (("container" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _EnclosingSource = ((org.infoml.jaxb.impl.EnclosingSourceTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.EnclosingSourceTypeImpl.class), 14, ___uri, ___local, ___qname, __atts));
                            return ;
                        }
                        if (("location" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _EnclosingSource = ((org.infoml.jaxb.impl.EnclosingSourceTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.EnclosingSourceTypeImpl.class), 14, ___uri, ___local, ___qname, __atts));
                            return ;
                        }
                        if (("complexLocation" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _EnclosingSource = ((org.infoml.jaxb.impl.EnclosingSourceTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.EnclosingSourceTypeImpl.class), 14, ___uri, ___local, ___qname, __atts));
                            return ;
                        }
                        if (("enclosingSource" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _EnclosingSource = ((org.infoml.jaxb.impl.EnclosingSourceTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.EnclosingSourceTypeImpl.class), 14, ___uri, ___local, ___qname, __atts));
                            return ;
                        }
                        _EnclosingSource = ((org.infoml.jaxb.impl.EnclosingSourceTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.EnclosingSourceTypeImpl.class), 14, ___uri, ___local, ___qname, __atts));
                        return ;
                    case  16 :
                        if (("axis" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _ComplexLocation = ((org.infoml.jaxb.impl.ComplexPointTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.ComplexPointTypeImpl.class), 17, ___uri, ___local, ___qname, __atts));
                            return ;
                        }
                        break;
                    case  15 :
                        revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
                        return ;
                    case  4 :
                        attIdx = context.getAttribute("", "customRole");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
                            return ;
                        }
                        attIdx = context.getAttribute("", "role");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().enterElement(___uri, ___local, ___qname, __atts);
                            return ;
                        }
                        if (("prefix" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _getAgent().add(((org.infoml.jaxb.impl.AgentTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.AgentTypeImpl.class), 5, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("first" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _getAgent().add(((org.infoml.jaxb.impl.AgentTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.AgentTypeImpl.class), 5, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("middle" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _getAgent().add(((org.infoml.jaxb.impl.AgentTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.AgentTypeImpl.class), 5, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("surname" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _getAgent().add(((org.infoml.jaxb.impl.AgentTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.AgentTypeImpl.class), 5, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        if (("corporateName" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            _getAgent().add(((org.infoml.jaxb.impl.AgentTypeImpl) spawnChildFromEnterElement((org.infoml.jaxb.impl.AgentTypeImpl.class), 5, ___uri, ___local, ___qname, __atts)));
                            return ;
                        }
                        break;
                    case  3 :
                        if (("agent" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.pushAttributes(__atts, false);
                            state = 4;
                            return ;
                        }
                        state = 6;
                        continue outer;
                    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  12 :
                        if (("enclosingSource" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.pushAttributes(__atts, false);
                            state = 13;
                            return ;
                        }
                        state = 15;
                        continue outer;
                    case  6 :
                        if (("agent" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.pushAttributes(__atts, false);
                            state = 4;
                            return ;
                        }
                        if (("container" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.pushAttributes(__atts, false);
                            state = 7;
                            return ;
                        }
                        state = 9;
                        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  9 :
                        state = 12;
                        continue outer;
                    case  7 :
                        attIdx = context.getAttribute("", "category");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                    case  13 :
                        attIdx = context.getAttribute("", "category");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
                            return ;
                        }
                        _EnclosingSource = ((org.infoml.jaxb.impl.EnclosingSourceTypeImpl) spawnChildFromLeaveElement((org.infoml.jaxb.impl.EnclosingSourceTypeImpl.class), 14, ___uri, ___local, ___qname));
                        return ;
                    case  11 :
                        if (("location" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.popAttributes();
                            state = 12;
                            return ;
                        }
                        break;
                    case  15 :
                        revertToParentFromLeaveElement(___uri, ___local, ___qname);
                        return ;
                    case  14 :
                        if (("enclosingSource" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.popAttributes();
                            state = 15;
                            return ;
                        }
                        break;
                    case  17 :
                        if (("complexLocation" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.popAttributes();
                            state = 12;
                            return ;
                        }
                        break;
                    case  8 :
                        if (("container" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.popAttributes();
                            state = 9;
                            return ;
                        }
                        break;
                    case  4 :
                        attIdx = context.getAttribute("", "customRole");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
                            return ;
                        }
                        attIdx = context.getAttribute("", "role");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveElement(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                    case  3 :
                        state = 6;
                        continue outer;
                    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  5 :
                        if (("agent" == ___local)&&("http://infoml.org/infomlFile" == ___uri)) {
                            context.popAttributes();
                            state = 6;
                            return ;
                        }
                        break;
                    case  12 :
                        state = 15;
                        continue outer;
                    case  6 :
                        state = 9;
                        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  9 :
                        state = 12;
                        continue outer;
                    case  7 :
                        if (("category" == ___local)&&("" == ___uri)) {
                            _Container = ((org.infoml.jaxb.impl.ContainerTypeImpl) spawnChildFromEnterAttribute((org.infoml.jaxb.impl.ContainerTypeImpl.class), 8, ___uri, ___local, ___qname));
                            return ;
                        }
                        break;
                    case  13 :
                        if (("category" == ___local)&&("" == ___uri)) {
                            _EnclosingSource = ((org.infoml.jaxb.impl.EnclosingSourceTypeImpl) spawnChildFromEnterAttribute((org.infoml.jaxb.impl.EnclosingSourceTypeImpl.class), 14, ___uri, ___local, ___qname));
                            return ;
                        }
                        _EnclosingSource = ((org.infoml.jaxb.impl.EnclosingSourceTypeImpl) spawnChildFromEnterAttribute((org.infoml.jaxb.impl.EnclosingSourceTypeImpl.class), 14, ___uri, ___local, ___qname));
                        return ;
                    case  15 :
                        revertToParentFromEnterAttribute(___uri, ___local, ___qname);
                        return ;
                    case  4 :
                        if (("customRole" == ___local)&&("" == ___uri)) {
                            _getAgent().add(((org.infoml.jaxb.impl.AgentTypeImpl) spawnChildFromEnterAttribute((org.infoml.jaxb.impl.AgentTypeImpl.class), 5, ___uri, ___local, ___qname)));
                            return ;
                        }
                        if (("role" == ___local)&&("" == ___uri)) {
                            _getAgent().add(((org.infoml.jaxb.impl.AgentTypeImpl) spawnChildFromEnterAttribute((org.infoml.jaxb.impl.AgentTypeImpl.class), 5, ___uri, ___local, ___qname)));
                            return ;
                        }
                        break;
                    case  3 :
                        state = 6;
                        continue outer;
                    case  0 :
                        if (("category" == ___local)&&("" == ___uri)) {
                            state = 1;
                            return ;
                        }
                        state = 3;
                        continue outer;
                    case  12 :
                        state = 15;
                        continue outer;
                    case  6 :
                        state = 9;
                        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  9 :
                        state = 12;
                        continue outer;
                    case  7 :
                        attIdx = context.getAttribute("", "category");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                    case  13 :
                        attIdx = context.getAttribute("", "category");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
                            return ;
                        }
                        _EnclosingSource = ((org.infoml.jaxb.impl.EnclosingSourceTypeImpl) spawnChildFromLeaveAttribute((org.infoml.jaxb.impl.EnclosingSourceTypeImpl.class), 14, ___uri, ___local, ___qname));
                        return ;
                    case  15 :
                        revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
                        return ;
                    case  2 :
                        if (("category" == ___local)&&("" == ___uri)) {
                            state = 3;
                            return ;
                        }
                        break;
                    case  4 :
                        attIdx = context.getAttribute("", "customRole");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
                            return ;
                        }
                        attIdx = context.getAttribute("", "role");
                        if (attIdx >= 0) {
                            context.consumeAttribute(attIdx);
                            context.getCurrentHandler().leaveAttribute(___uri, ___local, ___qname);
                            return ;
                        }
                        break;
                    case  3 :
                        state = 6;
                        continue outer;
                    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  12 :
                        state = 15;
                        continue outer;
                    case  6 :
                        state = 9;
                        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  9 :
                            state = 12;
                            continue outer;
                        case  7 :
                            attIdx = context.getAttribute("", "category");
                            if (attIdx >= 0) {
                                context.consumeAttribute(attIdx);
                                context.getCurrentHandler().text(value);
                                return ;
                            }
                            break;
                        case  1 :
                            state = 2;
                            eatText1(value);
                            return ;
                        case  13 :
                            attIdx = context.getAttribute("", "category");
                            if (attIdx >= 0) {
                                context.consumeAttribute(attIdx);
                                context.getCurrentHandler().text(value);
                                return ;
                            }
                            _EnclosingSource = ((org.infoml.jaxb.impl.EnclosingSourceTypeImpl) spawnChildFromText((org.infoml.jaxb.impl.EnclosingSourceTypeImpl.class), 14, value));
                            return ;
                        case  15 :
                            revertToParentFromText(value);
                            return ;
                        case  4 :
                            attIdx = context.getAttribute("", "customRole");
                            if (attIdx >= 0) {
                                context.consumeAttribute(attIdx);
                                context.getCurrentHandler().text(value);
                                return ;
                            }
                            attIdx = context.getAttribute("", "role");
                            if (attIdx >= 0) {
                                context.consumeAttribute(attIdx);
                                context.getCurrentHandler().text(value);
                                return ;
                            }
                            break;
                        case  3 :
                            state = 6;
                            continue outer;
                        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  12 :
                            state = 15;
                            continue outer;
                        case  6 :
                            state = 9;
                            continue outer;
                    }
                } catch (java.lang.RuntimeException e) {
                    handleUnexpectedTextException(value, e);
                }
                break;
            }
        }

    }

}
