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 WindsTypeImpl implements org.jvnet.jaxbvalidation.tests.one.WindsType, 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 com.sun.xml.bind.util.ListImpl _Winds;
     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.WindsType.class);
     }
 
     protected com.sun.xml.bind.util.ListImpl _getWinds() {
         if ( == null) {
              = new com.sun.xml.bind.util.ListImpl(new java.util.ArrayList());
         }
         return ;
     }
 
     public java.util.List getWinds() {
         return _getWinds();
     }
 
     public boolean isSetWinds() {
         return (( == null)?false:.isModified());
     }
 
     public void unsetWinds() {
         if (!= null) {
             .clear();
             .setModified(false);
         }
     }
 
         return new org.jvnet.jaxbvalidation.tests.one.impl.WindsTypeImpl.Unmarshaller(context);
     }
 
         throws org.xml.sax.SAXException
     {
         int idx1 = 0;
         final int len1 = (( == null)? 0 :.size());
         while (idx1 != len1) {
             context.startElement("""Winds");
             int idx_0 = idx1;
             context.childAsURIs(((com.sun.xml.bind.JAXBObject) .get(idx_0 ++)), "Winds");
             context.endNamespaceDecls();
             int idx_1 = idx1;
             context.childAsAttributes(((com.sun.xml.bind.JAXBObject) .get(idx_1 ++)), "Winds");
             context.endAttributes();
             context.childAsBody(((com.sun.xml.bind.JAXBObject) .get(idx1 ++)), "Winds");
             context.endElement();
         }
     }
 
         throws org.xml.sax.SAXException
     {
         int idx1 = 0;
         final int len1 = (( == null)? 0 :.size());
         while (idx1 != len1) {
             idx1 += 1;
         }
     }
 
         throws org.xml.sax.SAXException
     {
         int idx1 = 0;
         final int len1 = (( == null)? 0 :.size());
         while (idx1 != len1) {
             idx1 += 1;
         }
     }
 
     public java.lang.Class getPrimaryInterface() {
         return (org.jvnet.jaxbvalidation.tests.one.WindsType.class);
     }
 
     public com.sun.msv.verifier.DocumentDeclaration createRawValidator() {
         if ( == null) {
              = com.sun.xml.bind.validator.SchemaDeserializer.deserialize((
  "\u00ac\u00ed\u0000\u0005sr\u0000\u001dcom.sun.msv.grammar.ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun."
 +"msv.grammar.BinaryExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0004exp1t\u0000 Lcom/sun/msv/gramm"
 +"ar/Expression;L\u0000\u0004exp2q\u0000~\u0000\u0002xr\u0000\u001ecom.sun.msv.grammar.Expression"
 +"\u00f8\u0018\u0082\u00e8N5~O\u0002\u0000\u0002L\u0000\u0013epsilonReducibilityt\u0000\u0013Ljava/lang/Boolean;L\u0000\u000bex"
 +"pandedExpq\u0000~\u0000\u0002xpppsr\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\u0002x"
 +"q\u0000~\u0000\u0003sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000psr\u0000\'com.sun"
+".msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tnameClasst\u0000\u001fLc"
+"om/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv.grammar.Element"
+"Exp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000\fcontentModelq\u0000"
+"~\u0000\u0002xq\u0000~\u0000\u0003q\u0000~\u0000\np\u0000sr\u0000\u001fcom.sun.msv.grammar.SequenceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002"
+"\u0000\u0000xq\u0000~\u0000\u0001ppsq\u0000~\u0000\u000bpp\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0006q\u0000~\u0000\npsr\u0000 com.sun.msv.gramm"
+"ar.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"
+"q\u0000~\u0000\npsr\u00002com.sun.msv.grammar.Expression$AnyStringExpression"
+"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003sq\u0000~\u0000\t\u0001q\u0000~\u0000\u0017sr\u0000 com.sun.msv.grammar.AnyName"
+"Class\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\u0000"
+"xpsr\u00000com.sun.msv.grammar.Expression$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000"
+"\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003q\u0000~\u0000\u0018q\u0000~\u0000\u001dsr\u0000#com.sun.msv.grammar.SimpleNameClass"
+"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNamet\u0000\u0012Ljava/lang/String;L\u0000\fnamespaceURIq"
+"\u0000~\u0000\u001fxq\u0000~\u0000\u001at\u0000+org.jvnet.jaxbvalidation.tests.one.WindTypet\u0000+h"
+"ttp://java.sun.com/jaxb/xjc/dummy-elementssq\u0000~\u0000\u0000ppsq\u0000~\u0000\u0014q\u0000~\u0000"
+"\npsr\u0000\u001bcom.sun.msv.grammar.DataExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\u0002dtt\u0000\u001fLorg/rel"
+"axng/datatype/Datatype;L\u0000\u0006exceptq\u0000~\u0000\u0002L\u0000\u0004namet\u0000\u001dLcom/sun/msv/"
+"util/StringPair;xq\u0000~\u0000\u0003ppsr\u0000\"com.sun.msv.datatype.xsd.QnameTy"
+"pe\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\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\'com.sun.msv.datatype.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fn"
+"amespaceUriq\u0000~\u0000\u001fL\u0000\btypeNameq\u0000~\u0000\u001fL\u0000\nwhiteSpacet\u0000.Lcom/sun/msv"
+"/datatype/xsd/WhiteSpaceProcessor;xpt\u0000 http://www.w3.org/200"
+"1/XMLSchemat\u0000\u0005QNamesr\u00005com.sun.msv.datatype.xsd.WhiteSpacePr"
+"ocessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.Whit"
+"eSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expressi"
+"on$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\u001fL\u0000\fnamespaceURIq\u0000~\u0000\u001fxp"
+"q\u0000~\u00000q\u0000~\u0000/sq\u0000~\u0000\u001et\u0000\u0004typet\u0000)http://www.w3.org/2001/XMLSchema-i"
+"nstanceq\u0000~\u0000\u001dsq\u0000~\u0000\u001et\u0000\u0005Windst\u0000\u0000q\u0000~\u0000\u001dsr\u0000\"com.sun.msv.grammar.Ex"
+"pressionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/Ex"
+"pressionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.Expression"
+"Pool$ClosedHash\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\u0006\u0001pq\u0000~\u0000#q\u0000~\u0000\u0010q\u0000~\u0000"
+"\bq\u0000~\u0000\u0013q\u0000~\u0000\u0005q\u0000~\u0000\u0012x"));
        }
        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() {
            return org.jvnet.jaxbvalidation.tests.one.impl.WindsTypeImpl.this;
        }
        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  1 :
                        if (("WindInSectors" == ___local)&&("" == ___uri)) {
                            _getWinds().add(((org.jvnet.jaxbvalidation.tests.one.impl.WindTypeImplspawnChildFromEnterElement((org.jvnet.jaxbvalidation.tests.one.impl.WindTypeImpl.class), 2, ___uri___local___qname__atts)));
                            return ;
                        }
                        break;
                    case  3 :
                        if (("Winds" == ___local)&&("" == ___uri)) {
                            .pushAttributes(__attsfalse);
                             = 1;
                            return ;
                        }
                        revertToParentFromEnterElement(___uri___local___qname__atts);
                        return ;
                    case  0 :
                        if (("Winds" == ___local)&&("" == ___uri)) {
                            .pushAttributes(__attsfalse);
                             = 1;
                            return ;
                        }
                         = 3;
                        continue outer;
                }
                super.enterElement(___uri___local___qname__atts);
                break;
            }
        }
        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  2 :
                        if (("Winds" == ___local)&&("" == ___uri)) {
                            .popAttributes();
                             = 3;
                            return ;
                        }
                        break;
                    case  3 :
                        revertToParentFromLeaveElement(___uri___local___qname);
                        return ;
                    case  0 :
                         = 3;
                        continue outer;
                }
                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  3 :
                        revertToParentFromEnterAttribute(___uri___local___qname);
                        return ;
                    case  0 :
                         = 3;
                        continue outer;
                }
                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  3 :
                        revertToParentFromLeaveAttribute(___uri___local___qname);
                        return ;
                    case  0 :
                         = 3;
                        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 () {
                        case  3 :
                            revertToParentFromText(value);
                            return ;
                        case  0 :
                             = 3;
                            continue outer;
                    }
                } catch (java.lang.RuntimeException e) {
                    handleUnexpectedTextException(valuee);
                }
                break;
            }
        }
    }
New to GrepCode? Check out our FAQ X