Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.6-01/24/2006 06:15 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: 2007.03.26 at 04:39:11 PM CEST 
  //
  
  
  package org.jvnet.jaxbvalidation.tests.one.impl;
 
 public class ExternalAdepAdesAddressTypeImpl implements org.jvnet.jaxbvalidation.tests.one.ExternalAdepAdesAddressType, com.sun.xml.bind.JAXBObject, org.jvnet.jaxbvalidation.tests.one.impl.runtime.UnmarshallableObject, org.jvnet.jaxbvalidation.tests.one.impl.runtime.XMLSerializable, org.jvnet.jaxbvalidation.tests.one.impl.runtime.ValidatableObject
 {
 
     protected java.lang.String _Ades;
     protected java.lang.String _Adep;
     protected com.sun.xml.bind.util.ListImpl _Addresses;
     public final static java.lang.Class version = (org.jvnet.jaxbvalidation.tests.one.impl.JAXBVersion.class);
     private static com.sun.msv.grammar.Grammar schemaFragment;
 
     private final static java.lang.Class PRIMARY_INTERFACE_CLASS() {
         return (org.jvnet.jaxbvalidation.tests.one.ExternalAdepAdesAddressType.class);
     }
 
     public java.lang.String getAdes() {
         return ;
     }
 
     public void setAdes(java.lang.String value) {
          = value;
     }
 
     public boolean isSetAdes() {
         return (!= null);
     }
 
     public void unsetAdes() {
          = null;
     }
 
     public java.lang.String getAdep() {
         return ;
     }
 
     public void setAdep(java.lang.String value) {
          = value;
     }
 
     public boolean isSetAdep() {
         return (!= null);
     }
 
     public void unsetAdep() {
          = null;
     }
 
     protected com.sun.xml.bind.util.ListImpl _getAddresses() {
         if ( == null) {
              = new com.sun.xml.bind.util.ListImpl(new java.util.ArrayList());
         }
         return ;
     }
 
     public java.util.List getAddresses() {
         return _getAddresses();
     }
 
     public boolean isSetAddresses() {
         return (( == null)?false:.isModified());
     }
 
     public void unsetAddresses() {
         if (!= null) {
             .clear();
             .setModified(false);
         }
     }
 
     }
 
         throws org.xml.sax.SAXException
     {
         int idx3 = 0;
         final int len3 = (( == null)? 0 :.size());
         while (idx3 != len3) {
             context.startElement("""Addresses");
             int idx_0 = idx3;
             try {
                 idx_0 += 1;
             } catch (java.lang.Exception e) {
                 org.jvnet.jaxbvalidation.tests.one.impl.runtime.Util.handlePrintConversionException(thisecontext);
             }
             context.endNamespaceDecls();
             int idx_1 = idx3;
             try {
                 idx_1 += 1;
             } catch (java.lang.Exception e) {
                org.jvnet.jaxbvalidation.tests.one.impl.runtime.Util.handlePrintConversionException(thisecontext);
            }
            context.endAttributes();
            try {
                context.text(((java.lang.String.get(idx3 ++)), "Addresses");
            } catch (java.lang.Exception e) {
                org.jvnet.jaxbvalidation.tests.one.impl.runtime.Util.handlePrintConversionException(thisecontext);
            }
            context.endElement();
        }
    }
        throws org.xml.sax.SAXException
    {
        int idx3 = 0;
        final int len3 = (( == null)? 0 :.size());
        context.startAttribute("""adep");
        try {
            context.text(((java.lang.String), "Adep");
        } catch (java.lang.Exception e) {
            org.jvnet.jaxbvalidation.tests.one.impl.runtime.Util.handlePrintConversionException(thisecontext);
        }
        context.endAttribute();
        context.startAttribute("""ades");
        try {
            context.text(((java.lang.String), "Ades");
        } catch (java.lang.Exception e) {
            org.jvnet.jaxbvalidation.tests.one.impl.runtime.Util.handlePrintConversionException(thisecontext);
        }
        context.endAttribute();
        while (idx3 != len3) {
            try {
                idx3 += 1;
            } catch (java.lang.Exception e) {
                org.jvnet.jaxbvalidation.tests.one.impl.runtime.Util.handlePrintConversionException(thisecontext);
            }
        }
    }
        throws org.xml.sax.SAXException
    {
        int idx3 = 0;
        final int len3 = (( == null)? 0 :.size());
        while (idx3 != len3) {
            try {
                idx3 += 1;
            } catch (java.lang.Exception e) {
                org.jvnet.jaxbvalidation.tests.one.impl.runtime.Util.handlePrintConversionException(thisecontext);
            }
        }
    }
    public java.lang.Class getPrimaryInterface() {
    }
    public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
        if ( == null) {
             = 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\u0000ppsr\u0000 com.sun.msv.grammar.OneOrMor"
+"eExp\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.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\u001aignoreUndeclare"
+"dAttributesL\u0000\fcontentModelq\u0000~\u0000\u0002xq\u0000~\u0000\u0003pp\u0000sq\u0000~\u0000\u0000ppsr\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/StringPai"
+"r;xq\u0000~\u0000\u0003ppsr\u0000\'com.sun.msv.datatype.xsd.MaxLengthFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
+"\u0001\u0002\u0000\u0001I\u0000\tmaxLengthxr\u00009com.sun.msv.datatype.xsd.DataTypeWithVal"
+"ueConstraintFacet\"\u00a7Ro\u00ca\u00c7\u008aT\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.Dat"
+"aTypeWithFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0005Z\u0000\fisFacetFixedZ\u0000\u0012needValueCheckFla"
+"gL\u0000\bbaseTypet\u0000)Lcom/sun/msv/datatype/xsd/XSDatatypeImpl;L\u0000\fc"
+"oncreteTypet\u0000\'Lcom/sun/msv/datatype/xsd/ConcreteType;L\u0000\tface"
+"tNamet\u0000\u0012Ljava/lang/String;xr\u0000\'com.sun.msv.datatype.xsd.XSDat"
+"atypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000\u0018L\u0000\btypeNameq\u0000~\u0000\u0018L\u0000\nw"
+"hiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xp"
+"t\u0000\u0000t\u0000\u000fAFTNAddressTypesr\u00005com.sun.msv.datatype.xsd.WhiteSpace"
+"Processor$Preserve\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.Wh"
+"iteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0000\u0001sr\u0000\'com.sun.msv.datatype.xsd"
+".MinLengthFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001I\u0000\tminLengthxq\u0000~\u0000\u0014q\u0000~\u0000\u001cq\u0000~\u0000\u001dq\u0000~\u0000 \u0000"
+"\u0000sr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwa"
+"ysValidxr\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\u0000xq\u0000~"
+"\u0000\u0019t\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0006stringq\u0000~\u0000 \u0001q\u0000~\u0000&t\u0000\t"
+"minLength\u0000\u0000\u0000\u0001q\u0000~\u0000&t\u0000\tmaxLength\u0000\u0000\u0000\bsr\u00000com.sun.msv.grammar.Ex"
+"pression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003ppsr\u0000\u001bcom.sun.msv"
+".util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0018L\u0000\fnamespaceURIq"
+"\u0000~\u0000\u0018xpq\u0000~\u0000\u001dq\u0000~\u0000\u001csr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000"
+"xq\u0000~\u0000\u0001ppsr\u0000 com.sun.msv.grammar.AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003ex"
+"pq\u0000~\u0000\u0002L\u0000\tnameClassq\u0000~\u0000\u000bxq\u0000~\u0000\u0003sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000"
+"\u0001Z\u0000\u0005valuexp\u0000psq\u0000~\u0000\u000fppsr\u0000\"com.sun.msv.datatype.xsd.QnameType\u0000"
+"\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000$q\u0000~\u0000\'t\u0000\u0005QNamesr\u00005com.sun.msv.datatype.xsd.Wh"
+"iteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u001fq\u0000~\u0000,sq\u0000~\u0000-q\u0000~\u00008q"
+"\u0000~\u0000\'sr\u0000#com.sun.msv.grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tloc"
+"alNameq\u0000~\u0000\u0018L\u0000\fnamespaceURIq\u0000~\u0000\u0018xr\u0000\u001dcom.sun.msv.grammar.NameC"
+"lass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0004typet\u0000)http://www.w3.org/2001/XMLSchema-"
+"instancesr\u00000com.sun.msv.grammar.Expression$EpsilonExpression"
+"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003sq\u0000~\u00003\u0001q\u0000~\u0000Bsq\u0000~\u0000<t\u0000\tAddressesq\u0000~\u0000\u001csq\u0000~\u00001pp"
+"sq\u0000~\u0000\u000fppsr\u0000%com.sun.msv.datatype.xsd.PatternFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001"
+"[\u0000\bpatternst\u0000\u0013[Ljava/lang/String;xr\u0000;com.sun.msv.datatype.xs"
+"d.DataTypeWithLexicalConstraintFacetT\u0090\u001c>\u001azb\u00ea\u0002\u0000\u0000xq\u0000~\u0000\u0015q\u0000~\u0000\u001ct\u0000"
+"\u000fAirportAreaTypeq\u0000~\u0000 \u0000\u0001sr\u0000$com.sun.msv.datatype.xsd.LengthFa"
+"cet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001I\u0000\u0006lengthxq\u0000~\u0000\u0014q\u0000~\u0000\u001cq\u0000~\u0000Lq\u0000~\u0000 \u0000\u0000q\u0000~\u0000&q\u0000~\u0000&t\u0000\u0006l"
+"ength\u0000\u0000\u0000\u0004q\u0000~\u0000&t\u0000\u0007patternur\u0000\u0013[Ljava.lang.String;\u00ad\u00d2V\u00e7\u00e9\u001d{G\u0002\u0000\u0000xp"
+"\u0000\u0000\u0000\u0001t\u0000\u001d[A-Za-z][A-Za-z?][A-Za-z?][?]q\u0000~\u0000,sq\u0000~\u0000-q\u0000~\u0000Lq\u0000~\u0000\u001csq\u0000"
+"~\u0000<t\u0000\u0004adepq\u0000~\u0000\u001csq\u0000~\u00001ppq\u0000~\u0000Gsq\u0000~\u0000<t\u0000\u0004adesq\u0000~\u0000\u001csr\u0000\"com.sun.ms"
+"v.grammar.ExpressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/ms"
+"v/grammar/ExpressionPool$ClosedHash;xpsr\u0000-com.sun.msv.gramma"
+"r.ExpressionPool$ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersi"
+"onL\u0000\u0006parentt\u0000$Lcom/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\u0005\u0001pq\u0000"
+"~\u0000\u0006q\u0000~\u00000q\u0000~\u0000\tq\u0000~\u0000\u0005q\u0000~\u0000\u000ex"));
        }
        return new com.sun.msv.verifier.regexp.REDocumentDeclaration();
    }
    public class Unmarshaller
    {
            super(context"----------");
        }
        protected Unmarshaller(org.jvnet.jaxbvalidation.tests.one.impl.runtime.UnmarshallingContext contextint startState) {
            this(context);
             = startState;
        }
        public java.lang.Object owner() {
        }
        public void enterElement(java.lang.String ___urijava.lang.String ___localjava.lang.String ___qnameorg.xml.sax.Attributes __atts)
            throws org.xml.sax.SAXException
        {
            int attIdx;
            outer:
            while (true) {
                switch () {
                    case  0 :
                        attIdx = .getAttribute("""adep");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 3;
                            eatText1(v);
                            continue outer;
                        }
                        break;
                    case  6 :
                        if (("Addresses" == ___local)&&("" == ___uri)) {
                            .pushAttributes(__attstrue);
                             = 7;
                            return ;
                        }
                        break;
                    case  3 :
                        attIdx = .getAttribute("""ades");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 6;
                            eatText2(v);
                            continue outer;
                        }
                        break;
                    case  9 :
                        if (("Addresses" == ___local)&&("" == ___uri)) {
                            .pushAttributes(__attstrue);
                             = 7;
                            return ;
                        }
                        revertToParentFromEnterElement(___uri___local___qname__atts);
                        return ;
                }
                super.enterElement(___uri___local___qname__atts);
                break;
            }
        }
        private void eatText1(final java.lang.String value)
            throws org.xml.sax.SAXException
        {
            try {
                 = value;
            } catch (java.lang.Exception e) {
                handleParseConversionException(e);
            }
        }
        private void eatText2(final java.lang.String value)
            throws org.xml.sax.SAXException
        {
            try {
                 = value;
            } catch (java.lang.Exception e) {
                handleParseConversionException(e);
            }
        }
        public void leaveElement(java.lang.String ___urijava.lang.String ___localjava.lang.String ___qname)
            throws org.xml.sax.SAXException
        {
            int attIdx;
            outer:
            while (true) {
                switch () {
                    case  8 :
                        if (("Addresses" == ___local)&&("" == ___uri)) {
                            .popAttributes();
                             = 9;
                            return ;
                        }
                        break;
                    case  0 :
                        attIdx = .getAttribute("""adep");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 3;
                            eatText1(v);
                            continue outer;
                        }
                        break;
                    case  3 :
                        attIdx = .getAttribute("""ades");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 6;
                            eatText2(v);
                            continue outer;
                        }
                        break;
                    case  9 :
                        revertToParentFromLeaveElement(___uri___local___qname);
                        return ;
                }
                super.leaveElement(___uri___local___qname);
                break;
            }
        }
        public void enterAttribute(java.lang.String ___urijava.lang.String ___localjava.lang.String ___qname)
            throws org.xml.sax.SAXException
        {
            int attIdx;
            outer:
            while (true) {
                switch () {
                    case  0 :
                        if (("adep" == ___local)&&("" == ___uri)) {
                             = 1;
                            return ;
                        }
                        break;
                    case  3 :
                        if (("ades" == ___local)&&("" == ___uri)) {
                             = 4;
                            return ;
                        }
                        break;
                    case  9 :
                        revertToParentFromEnterAttribute(___uri___local___qname);
                        return ;
                }
                super.enterAttribute(___uri___local___qname);
                break;
            }
        }
        public void leaveAttribute(java.lang.String ___urijava.lang.String ___localjava.lang.String ___qname)
            throws org.xml.sax.SAXException
        {
            int attIdx;
            outer:
            while (true) {
                switch () {
                    case  2 :
                        if (("adep" == ___local)&&("" == ___uri)) {
                             = 3;
                            return ;
                        }
                        break;
                    case  5 :
                        if (("ades" == ___local)&&("" == ___uri)) {
                             = 6;
                            return ;
                        }
                        break;
                    case  0 :
                        attIdx = .getAttribute("""adep");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 3;
                            eatText1(v);
                            continue outer;
                        }
                        break;
                    case  3 :
                        attIdx = .getAttribute("""ades");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 6;
                            eatText2(v);
                            continue outer;
                        }
                        break;
                    case  9 :
                        revertToParentFromLeaveAttribute(___uri___local___qname);
                        return ;
                }
                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 () {
                        case  4 :
                             = 5;
                            eatText2(value);
                            return ;
                        case  7 :
                             = 8;
                            eatText3(value);
                            return ;
                        case  0 :
                            attIdx = .getAttribute("""adep");
                            if (attIdx >= 0) {
                                final java.lang.String v = .eatAttribute(attIdx);
                                 = 3;
                                eatText1(v);
                                continue outer;
                            }
                            break;
                        case  3 :
                            attIdx = .getAttribute("""ades");
                            if (attIdx >= 0) {
                                final java.lang.String v = .eatAttribute(attIdx);
                                 = 6;
                                eatText2(v);
                                continue outer;
                            }
                            break;
                        case  9 :
                            revertToParentFromText(value);
                            return ;
                        case  1 :
                             = 2;
                            eatText1(value);
                            return ;
                    }
                } catch (java.lang.RuntimeException e) {
                    handleUnexpectedTextException(valuee);
                }
                break;
            }
        }
        private void eatText3(final java.lang.String value)
            throws org.xml.sax.SAXException
        {
            try {
                _getAddresses().add(value);
            } catch (java.lang.Exception e) {
                handleParseConversionException(e);
            }
        }
    }
New to GrepCode? Check out our FAQ X