//
// 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: 2003.12.02 at 10:59:30 CET 
//


package com.uvigo.mhp.xml.menu.impl;

public class MenuElementTypeImpl implements com.uvigo.mhp.xml.menu.MenuElementType, com.sun.xml.bind.JAXBObject, com.uvigo.mhp.xml.menu.impl.runtime.UnmarshallableObject, com.uvigo.mhp.xml.menu.impl.runtime.XMLSerializable, com.uvigo.mhp.xml.menu.impl.runtime.ValidatableObject
{

    protected java.lang.String _Comment;
    protected java.lang.String _NotSelectedImage;
    protected java.lang.String _ContextName;
    protected java.lang.String _Label;
    protected java.lang.String _SelectedImage;
    public final static java.lang.Class version = (com.uvigo.mhp.xml.menu.impl.JAXBVersion.class);
    private static com.sun.msv.grammar.Grammar schemaFragment;

    private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
        return (com.uvigo.mhp.xml.menu.MenuElementType.class);
    }

    public java.lang.String getComment() {
        return _Comment;
    }

    public void setComment(java.lang.String value) {
        _Comment = value;
    }

    public java.lang.String getNotSelectedImage() {
        return _NotSelectedImage;
    }

    public void setNotSelectedImage(java.lang.String value) {
        _NotSelectedImage = value;
    }

    public java.lang.String getContextName() {
        return _ContextName;
    }

    public void setContextName(java.lang.String value) {
        _ContextName = value;
    }

    public java.lang.String getLabel() {
        return _Label;
    }

    public void setLabel(java.lang.String value) {
        _Label = value;
    }

    public java.lang.String getSelectedImage() {
        return _SelectedImage;
    }

    public void setSelectedImage(java.lang.String value) {
        _SelectedImage = value;
    }

    public com.uvigo.mhp.xml.menu.impl.runtime.UnmarshallingEventHandler createUnmarshaller(com.uvigo.mhp.xml.menu.impl.runtime.UnmarshallingContext context) {
        return new com.uvigo.mhp.xml.menu.impl.MenuElementTypeImpl.Unmarshaller(context);
    }

    public void serializeBody(com.uvigo.mhp.xml.menu.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
        if (_Label!= null) {
            context.startElement("", "label");
            context.endNamespaceDecls();
            context.endAttributes();
            try {
                context.text(((java.lang.String) _Label), "Label");
            } catch (java.lang.Exception e) {
                com.uvigo.mhp.xml.menu.impl.runtime.Util.handlePrintConversionException(this, e, context);
            }
            context.endElement();
        }
        if (_ContextName!= null) {
            context.startElement("", "contextName");
            context.endNamespaceDecls();
            context.endAttributes();
            try {
                context.text(((java.lang.String) _ContextName), "ContextName");
            } catch (java.lang.Exception e) {
                com.uvigo.mhp.xml.menu.impl.runtime.Util.handlePrintConversionException(this, e, context);
            }
            context.endElement();
        }
        if (_Comment!= null) {
            context.startElement("", "comment");
            context.endNamespaceDecls();
            context.endAttributes();
            try {
                context.text(((java.lang.String) _Comment), "Comment");
            } catch (java.lang.Exception e) {
                com.uvigo.mhp.xml.menu.impl.runtime.Util.handlePrintConversionException(this, e, context);
            }
            context.endElement();
        }
        if (_SelectedImage!= null) {
            context.startElement("", "selectedImage");
            context.endNamespaceDecls();
            context.endAttributes();
            try {
                context.text(((java.lang.String) _SelectedImage), "SelectedImage");
            } catch (java.lang.Exception e) {
                com.uvigo.mhp.xml.menu.impl.runtime.Util.handlePrintConversionException(this, e, context);
            }
            context.endElement();
        }
        if (_NotSelectedImage!= null) {
            context.startElement("", "notSelectedImage");
            context.endNamespaceDecls();
            context.endAttributes();
            try {
                context.text(((java.lang.String) _NotSelectedImage), "NotSelectedImage");
            } catch (java.lang.Exception e) {
                com.uvigo.mhp.xml.menu.impl.runtime.Util.handlePrintConversionException(this, e, context);
            }
            context.endElement();
        }
    }

    public void serializeAttributes(com.uvigo.mhp.xml.menu.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
    }

    public void serializeURIs(com.uvigo.mhp.xml.menu.impl.runtime.XMLSerializer context)
        throws org.xml.sax.SAXException
    {
    }

    public java.lang.Class getPrimaryInterface() {
        return (com.uvigo.mhp.xml.menu.MenuElementType.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\u0013\u001f\u00a6\u0088ppsq\u0000~\u0000\u0000\u000e\u008a\u00ee\u0083ppsq\u0000~\u0000\u0000\u000b"
+"\u00c3q\u00d4ppsq\u0000~\u0000\u0000\u0007\u00ec\u00ffsppsr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000"
+"\u0000xq\u0000~\u0000\u0001\u0003FkGppsr\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.msv.grammar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAtt"
+"ributesL\u0000\fcontentModelq\u0000~\u0000\u0002xq\u0000~\u0000\u0003\u0003Fk<sr\u0000\u0011java.lang.Boolean\u00cd "
+"r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000p\u0000sq\u0000~\u0000\u0000\u0003Fk1ppsr\u0000\u001bcom.sun.msv.grammar.Da"
+"taExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/relaxng/datatype/Datatype;L\u0000\u0006ex"
+"ceptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003\u0001\u00e8\b\u00dapp"
+"sr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlway"
+"sValidxr\u0000*com.sun.msv.datatype.xsd.BuiltinAtomicType\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\'c"
+"om.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespac"
+"eUrit\u0000\u0012Ljava/lang/String;L\u0000\btypeNameq\u0000~\u0000\u001aL\u0000\nwhiteSpacet\u0000.Lco"
+"m/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http://www.w"
+"3.org/2001/XMLSchemat\u0000\u0006stringsr\u00005com.sun.msv.datatype.xsd.Wh"
+"iteSpaceProcessor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatyp"
+"e.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0001sr\u00000com.sun.msv.gramm"
+"ar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003\u0000\u0000\u0000\nppsr\u0000\u001bco"
+"m.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u001aL\u0000\fname"
+"spaceURIq\u0000~\u0000\u001axpq\u0000~\u0000\u001eq\u0000~\u0000\u001dsq\u0000~\u0000\t\u0001^bRppsr\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\fxq\u0000~\u0000\u0003\u0001^"
+"bGq\u0000~\u0000\u0010psq\u0000~\u0000\u0012\u0000\u00dc\u00b0Kppsr\u0000\"com.sun.msv.datatype.xsd.QnameType\u0000\u0000"
+"\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0017q\u0000~\u0000\u001dt\u0000\u0005QNamesr\u00005com.sun.msv.datatype.xsd.Whi"
+"teSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000 q\u0000~\u0000#sq\u0000~\u0000$q\u0000~\u0000,q\u0000"
+"~\u0000\u001dsr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tloca"
+"lNameq\u0000~\u0000\u001aL\u0000\fnamespaceURIq\u0000~\u0000\u001axr\u0000\u001dcom.sun.msv.grammar.NameCl"
+"ass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0004typet\u0000)http://www.w3.org/2001/XMLSchema-i"
+"nstancesr\u00000com.sun.msv.grammar.Expression$EpsilonExpression\u0000"
+"\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003\u0000\u0000\u0000\tsq\u0000~\u0000\u000f\u0001psq\u0000~\u00000t\u0000\u0005labelt\u0000\u0000q\u0000~\u00006sq\u0000~\u0000\t\u0004\u00a6\u0094\'"
+"ppsq\u0000~\u0000\u000b\u0004\u00a6\u0094\u001cq\u0000~\u0000\u0010p\u0000sq\u0000~\u0000\u0000\u0004\u00a6\u0094\u0011ppq\u0000~\u0000\u0015sq\u0000~\u0000\t\u0002\u00be\u008b2ppsq\u0000~\u0000\'\u0002\u00be\u008b\'q\u0000"
+"~\u0000\u0010pq\u0000~\u0000)sq\u0000~\u00000q\u0000~\u00003q\u0000~\u00004q\u0000~\u00006sq\u0000~\u00000t\u0000\u000bcontextNameq\u0000~\u0000:q\u0000~\u00006"
+"sq\u0000~\u0000\t\u0003\u00d6r\\ppsq\u0000~\u0000\u000b\u0003\u00d6rQq\u0000~\u0000\u0010p\u0000sq\u0000~\u0000\u0000\u0003\u00d6rFppq\u0000~\u0000\u0015sq\u0000~\u0000\t\u0001\u00eeigppsq"
+"\u0000~\u0000\'\u0001\u00eei\\q\u0000~\u0000\u0010pq\u0000~\u0000)sq\u0000~\u00000q\u0000~\u00003q\u0000~\u00004q\u0000~\u00006sq\u0000~\u00000t\u0000\u0007commentq\u0000~\u0000"
+":q\u0000~\u00006sq\u0000~\u0000\t\u0002\u00c7|\u00aappsq\u0000~\u0000\u000b\u0002\u00c7|\u009fq\u0000~\u0000\u0010p\u0000sq\u0000~\u0000\u0000\u0002\u00c7|\u0094ppq\u0000~\u0000\u0015sq\u0000~\u0000\t\u0000\u00df"
+"s\u00b5ppsq\u0000~\u0000\'\u0000\u00dfs\u00aaq\u0000~\u0000\u0010pq\u0000~\u0000)sq\u0000~\u00000q\u0000~\u00003q\u0000~\u00004q\u0000~\u00006sq\u0000~\u00000t\u0000\rselec"
+"tedImageq\u0000~\u0000:q\u0000~\u00006sq\u0000~\u0000\t\u0004\u0094\u00b8\u0000ppsq\u0000~\u0000\u000b\u0004\u0094\u00b7\u00f5q\u0000~\u0000\u0010p\u0000sq\u0000~\u0000\u0000\u0004\u0094\u00b7\u00eappq"
+"\u0000~\u0000\u0015sq\u0000~\u0000\t\u0002\u00ac\u00af\u000bppsq\u0000~\u0000\'\u0002\u00ac\u00af\u0000q\u0000~\u0000\u0010pq\u0000~\u0000)sq\u0000~\u00000q\u0000~\u00003q\u0000~\u00004q\u0000~\u00006sq"
+"\u0000~\u00000t\u0000\u0010notSelectedImageq\u0000~\u0000:q\u0000~\u00006sr\u0000\"com.sun.msv.grammar.Exp"
+"ressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/Exp"
+"ressionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionP"
+"ool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0002\u0000\u0004I\u0000\u0005countI\u0000\tthresholdL\u0000\u0006parentq\u0000~\u0000\\["
+"\u0000\u0005tablet\u0000![Lcom/sun/msv/grammar/Expression;xp\u0000\u0000\u0000\u0013\u0000\u0000\u00009pur\u0000![L"
+"com.sun.msv.grammar.Expression;\u00d68D\u00c3]\u00ad\u00a7\n\u0002\u0000\u0000xp\u0000\u0000\u0000\u00bfpppppppppppp"
+"pppppppq\u0000~\u0000>ppppppppq\u0000~\u0000\u0007ppppppppppppppppppppppppppppppppppp"
+"pppppppppppppppq\u0000~\u0000Epppppppppppppppppppppq\u0000~\u0000Cpppppppppq\u0000~\u0000\u0011"
+"pq\u0000~\u0000\bq\u0000~\u0000Mppppppq\u0000~\u0000Upppq\u0000~\u0000\u0005pppppppq\u0000~\u0000\npq\u0000~\u0000Kpppppppq\u0000~\u0000S"
+"q\u0000~\u0000=q\u0000~\u0000Fppppppppppppppppppppq\u0000~\u0000;pq\u0000~\u0000\u0006ppppppppq\u0000~\u0000&pq\u0000~\u0000N"
+"pppppppq\u0000~\u0000Vppp"));
        }
        return new com.sun.msv.verifier.regexp.REDocumentDeclaration(schemaFragment);
    }

    public class Unmarshaller
        extends com.uvigo.mhp.xml.menu.impl.runtime.AbstractUnmarshallingEventHandlerImpl
    {


        public Unmarshaller(com.uvigo.mhp.xml.menu.impl.runtime.UnmarshallingContext context) {
            super(context, "----------------");
        }

        protected Unmarshaller(com.uvigo.mhp.xml.menu.impl.runtime.UnmarshallingContext context, int startState) {
            this(context);
            state = startState;
        }

        public java.lang.Object owner() {
            return com.uvigo.mhp.xml.menu.impl.MenuElementTypeImpl.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  0 :
                        if (("label" == ___local)&&("" == ___uri)) {
                            context.pushAttributes(__atts, true);
                            state = 1;
                            return ;
                        }
                        state = 3;
                        continue outer;
                    case  15 :
                        revertToParentFromEnterElement(___uri, ___local, ___qname, __atts);
                        return ;
                    case  6 :
                        if (("comment" == ___local)&&("" == ___uri)) {
                            context.pushAttributes(__atts, true);
                            state = 7;
                            return ;
                        }
                        state = 9;
                        continue outer;
                    case  3 :
                        if (("contextName" == ___local)&&("" == ___uri)) {
                            context.pushAttributes(__atts, true);
                            state = 4;
                            return ;
                        }
                        state = 6;
                        continue outer;
                    case  12 :
                        if (("notSelectedImage" == ___local)&&("" == ___uri)) {
                            context.pushAttributes(__atts, true);
                            state = 13;
                            return ;
                        }
                        state = 15;
                        continue outer;
                    case  9 :
                        if (("selectedImage" == ___local)&&("" == ___uri)) {
                            context.pushAttributes(__atts, true);
                            state = 10;
                            return ;
                        }
                        state = 12;
                        continue outer;
                }
                super.enterElement(___uri, ___local, ___qname, __atts);
                break;
            }
        }

        public void leaveElement(java.lang.String ___uri, java.lang.String ___local, java.lang.String ___qname)
            throws org.xml.sax.SAXException
        {
            int attIdx;
            outer:
            while (true) {
                switch (state) {
                    case  0 :
                        state = 3;
                        continue outer;
                    case  15 :
                        revertToParentFromLeaveElement(___uri, ___local, ___qname);
                        return ;
                    case  6 :
                        state = 9;
                        continue outer;
                    case  5 :
                        if (("contextName" == ___local)&&("" == ___uri)) {
                            context.popAttributes();
                            state = 6;
                            return ;
                        }
                        break;
                    case  2 :
                        if (("label" == ___local)&&("" == ___uri)) {
                            context.popAttributes();
                            state = 3;
                            return ;
                        }
                        break;
                    case  14 :
                        if (("notSelectedImage" == ___local)&&("" == ___uri)) {
                            context.popAttributes();
                            state = 15;
                            return ;
                        }
                        break;
                    case  3 :
                        state = 6;
                        continue outer;
                    case  8 :
                        if (("comment" == ___local)&&("" == ___uri)) {
                            context.popAttributes();
                            state = 9;
                            return ;
                        }
                        break;
                    case  12 :
                        state = 15;
                        continue outer;
                    case  11 :
                        if (("selectedImage" == ___local)&&("" == ___uri)) {
                            context.popAttributes();
                            state = 12;
                            return ;
                        }
                        break;
                    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  0 :
                        state = 3;
                        continue outer;
                    case  15 :
                        revertToParentFromEnterAttribute(___uri, ___local, ___qname);
                        return ;
                    case  6 :
                        state = 9;
                        continue outer;
                    case  3 :
                        state = 6;
                        continue outer;
                    case  12 :
                        state = 15;
                        continue outer;
                    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  0 :
                        state = 3;
                        continue outer;
                    case  15 :
                        revertToParentFromLeaveAttribute(___uri, ___local, ___qname);
                        return ;
                    case  6 :
                        state = 9;
                        continue outer;
                    case  3 :
                        state = 6;
                        continue outer;
                    case  12 :
                        state = 15;
                        continue outer;
                    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  0 :
                            state = 3;
                            continue outer;
                        case  15 :
                            revertToParentFromText(value);
                            return ;
                        case  4 :
                            eatText1(value);
                            state = 5;
                            return ;
                        case  6 :
                            state = 9;
                            continue outer;
                        case  13 :
                            eatText2(value);
                            state = 14;
                            return ;
                        case  3 :
                            state = 6;
                            continue outer;
                        case  12 :
                            state = 15;
                            continue outer;
                        case  7 :
                            eatText3(value);
                            state = 8;
                            return ;
                        case  10 :
                            eatText4(value);
                            state = 11;
                            return ;
                        case  9 :
                            state = 12;
                            continue outer;
                        case  1 :
                            eatText5(value);
                            state = 2;
                            return ;
                    }
                } catch (java.lang.RuntimeException e) {
                    handleUnexpectedTextException(value, e);
                }
                break;
            }
        }

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

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

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

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

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

    }

}
