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 FilterLevelTypeImpl implements org.jvnet.jaxbvalidation.tests.one.FilterLevelType, 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 boolean has_UnderShoot;
     protected int _UnderShoot;
     protected boolean has_OverShoot;
     protected int _OverShoot;
     protected boolean has_Level;
     protected int _Level;
     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.FilterLevelType.class);
     }
 
     public int getUnderShoot() {
         return ;
     }
 
     public void setUnderShoot(int value) {
          = value;
          = true;
     }
 
     public boolean isSetUnderShoot() {
         return ;
     }
 
     public void unsetUnderShoot() {
          = false;
     }
 
     public int getOverShoot() {
         return ;
     }
 
     public void setOverShoot(int value) {
          = value;
          = true;
     }
 
     public boolean isSetOverShoot() {
         return ;
     }
 
     public void unsetOverShoot() {
          = false;
     }
 
     public int getLevel() {
         return ;
     }
 
     public void setLevel(int value) {
          = value;
          = true;
     }
 
     public boolean isSetLevel() {
         return ;
     }
 
     public void unsetLevel() {
          = false;
     }
 
         return new org.jvnet.jaxbvalidation.tests.one.impl.FilterLevelTypeImpl.Unmarshaller(context);
     }
 
         throws org.xml.sax.SAXException
     {
         if (!) {
             context.reportError(com.sun.xml.bind.serializer.Util.createMissingObjectError(this"UnderShoot"));
         }
         if (!) {
             context.reportError(com.sun.xml.bind.serializer.Util.createMissingObjectError(this"OverShoot"));
         }
         if (!) {
             context.reportError(com.sun.xml.bind.serializer.Util.createMissingObjectError(this"Level"));
         }
     }
 
         throws org.xml.sax.SAXException
     {
         if (!) {
            context.reportError(com.sun.xml.bind.serializer.Util.createMissingObjectError(this"UnderShoot"));
        }
        if (!) {
            context.reportError(com.sun.xml.bind.serializer.Util.createMissingObjectError(this"OverShoot"));
        }
        if (!) {
            context.reportError(com.sun.xml.bind.serializer.Util.createMissingObjectError(this"Level"));
        }
        context.startAttribute("""level");
        try {
            context.text(javax.xml.bind.DatatypeConverter.printInt(((int)), "Level");
        } catch (java.lang.Exception e) {
            org.jvnet.jaxbvalidation.tests.one.impl.runtime.Util.handlePrintConversionException(thisecontext);
        }
        context.endAttribute();
        context.startAttribute("""overShoot");
        try {
            context.text(javax.xml.bind.DatatypeConverter.printInt(((int)), "OverShoot");
        } catch (java.lang.Exception e) {
            org.jvnet.jaxbvalidation.tests.one.impl.runtime.Util.handlePrintConversionException(thisecontext);
        }
        context.endAttribute();
        context.startAttribute("""underShoot");
        try {
            context.text(javax.xml.bind.DatatypeConverter.printInt(((int)), "UnderShoot");
        } catch (java.lang.Exception e) {
            org.jvnet.jaxbvalidation.tests.one.impl.runtime.Util.handlePrintConversionException(thisecontext);
        }
        context.endAttribute();
    }
        throws org.xml.sax.SAXException
    {
        if (!) {
            context.reportError(com.sun.xml.bind.serializer.Util.createMissingObjectError(this"UnderShoot"));
        }
        if (!) {
            context.reportError(com.sun.xml.bind.serializer.Util.createMissingObjectError(this"OverShoot"));
        }
        if (!) {
            context.reportError(com.sun.xml.bind.serializer.Util.createMissingObjectError(this"Level"));
        }
    }
    public java.lang.Class getPrimaryInterface() {
        return (org.jvnet.jaxbvalidation.tests.one.FilterLevelType.class);
    }
    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.Attribut"
+"eExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClasst\u0000\u001fLcom/sun/msv/gramma"
+"r/NameClass;xq\u0000~\u0000\u0003ppsr\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\u0004na"
+"met\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003ppsr\u0000%com.sun.msv.da"
+"tatype.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.xsd.DataTypeWithLexicalConst"
+"raintFacetT\u0090\u001c>\u001azb\u00ea\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.DataTypeWi"
+"thFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0005Z\u0000\fisFacetFixedZ\u0000\u0012needValueCheckFlagL\u0000\bbas"
+"eTypet\u0000)Lcom/sun/msv/datatype/xsd/XSDatatypeImpl;L\u0000\fconcrete"
+"Typet\u0000\'Lcom/sun/msv/datatype/xsd/ConcreteType;L\u0000\tfacetNamet\u0000"
+"\u0012Ljava/lang/String;xr\u0000\'com.sun.msv.datatype.xsd.XSDatatypeIm"
+"pl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000\u0014L\u0000\btypeNameq\u0000~\u0000\u0014L\u0000\nwhiteSpa"
+"cet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000\u0000t\u0000\u000fF"
+"lightLevelTypesr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcess"
+"or$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpac"
+"eProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xp\u0000\u0000sr\u0000 com.sun.msv.datatype.xsd.IntTyp"
+"e\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000+com.sun.msv.datatype.xsd.IntegerDerivedType\u0099"
+"\u00f1]\u0090&6k\u00be\u0002\u0000\u0001L\u0000\nbaseFacetsq\u0000~\u0000\u0012xr\u0000*com.sun.msv.datatype.xsd.Bui"
+"ltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xsd.Concre"
+"teType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0015t\u0000 http://www.w3.org/2001/XMLSchemat\u0000"
+"\u0003intq\u0000~\u0000\u001csr\u0000*com.sun.msv.datatype.xsd.MaxInclusiveFacet\u0000\u0000\u0000\u0000\u0000"
+"\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000#com.sun.msv.datatype.xsd.RangeFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\nl"
+"imitValuet\u0000\u0012Ljava/lang/Object;xr\u00009com.sun.msv.datatype.xsd.D"
+"ataTypeWithValueConstraintFacet\"\u00a7Ro\u00ca\u00c7\u008aT\u0002\u0000\u0000xq\u0000~\u0000\u0011ppq\u0000~\u0000\u001c\u0000\u0001sr\u0000"
+"*com.sun.msv.datatype.xsd.MinInclusiveFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000%"
+"ppq\u0000~\u0000\u001c\u0000\u0000sr\u0000!com.sun.msv.datatype.xsd.LongType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000"
+"~\u0000\u001eq\u0000~\u0000\"t\u0000\u0004longq\u0000~\u0000\u001csq\u0000~\u0000$ppq\u0000~\u0000\u001c\u0000\u0001sq\u0000~\u0000)ppq\u0000~\u0000\u001c\u0000\u0000sr\u0000$com.su"
+"n.msv.datatype.xsd.IntegerType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u001eq\u0000~\u0000\"t\u0000\u0007integ"
+"erq\u0000~\u0000\u001csr\u0000,com.sun.msv.datatype.xsd.FractionDigitsFacet\u0000\u0000\u0000\u0000\u0000"
+"\u0000\u0000\u0001\u0002\u0000\u0001I\u0000\u0005scalexq\u0000~\u0000\u0010ppq\u0000~\u0000\u001c\u0001\u0000sr\u0000#com.sun.msv.datatype.xsd.Nu"
+"mberType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u001fq\u0000~\u0000\"t\u0000\u0007decimalq\u0000~\u0000\u001cq\u0000~\u00006t\u0000\u000efractio"
+"nDigits\u0000\u0000\u0000\u0000q\u0000~\u00001t\u0000\fminInclusivesr\u0000\u000ejava.lang.Long;\u008b\u00e4\u0090\u00cc\u008f#\u00df\u0002\u0000\u0001"
+"J\u0000\u0005valuexr\u0000\u0010java.lang.Number\u0086\u00ac\u0095\u001d\u000b\u0094\u00e0\u008b\u0002\u0000\u0000xp\u0080\u0000\u0000\u0000\u0000\u0000\u0000\u0000q\u0000~\u00001t\u0000\fmax"
+"Inclusivesq\u0000~\u0000:\u007f\u00ff\u00ff\u00ff\u00ff\u00ff\u00ff\u00ffq\u0000~\u0000,q\u0000~\u00009sr\u0000\u0011java.lang.Integer\u0012\u00e2\u00a0\u00a4\u00f7\u0081"
+"\u00878\u0002\u0000\u0001I\u0000\u0005valuexq\u0000~\u0000;\u0080\u0000\u0000\u0000q\u0000~\u0000,q\u0000~\u0000=sq\u0000~\u0000?\u007f\u00ff\u00ff\u00ffq\u0000~\u0000!t\u0000\u0007patternur"
+"\u0000\u0013[Ljava.lang.String;\u00ad\u00d2V\u00e7\u00e9\u001d{G\u0002\u0000\u0000xp\u0000\u0000\u0000\u0001t\u0000\u0015\\d[0-9]\\d[0-9]\\d[0-"
+"9]sr\u00000com.sun.msv.grammar.Expression$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\tlo"
+"calNameq\u0000~\u0000\u0014L\u0000\fnamespaceURIq\u0000~\u0000\u0014xpq\u0000~\u0000\u0019q\u0000~\u0000\u0018sr\u0000#com.sun.msv."
+"grammar.SimpleNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0014L\u0000\fnamesp"
+"aceURIq\u0000~\u0000\u0014xr\u0000\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\u0005"
+"levelq\u0000~\u0000\u0018sq\u0000~\u0000\u0007ppq\u0000~\u0000\rsq\u0000~\u0000Jt\u0000\toverShootq\u0000~\u0000\u0018sq\u0000~\u0000\u0007ppq\u0000~\u0000\rs"
+"q\u0000~\u0000Jt\u0000\nunderShootq\u0000~\u0000\u0018sr\u0000\"com.sun.msv.grammar.ExpressionPoo"
+"l\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/ExpressionPoo"
+"l$ClosedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$Closed"
+"Hash\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\u0002\u0001pq\u0000~\u0000\u0005q\u0000~\u0000\u0006x"));
        }
        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.FilterLevelTypeImpl.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  9 :
                        revertToParentFromEnterElement(___uri___local___qname__atts);
                        return ;
                    case  6 :
                        attIdx = .getAttribute("""underShoot");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 9;
                            eatText1(v);
                            continue outer;
                        }
                        break;
                    case  3 :
                        attIdx = .getAttribute("""overShoot");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 6;
                            eatText2(v);
                            continue outer;
                        }
                        break;
                    case  0 :
                        attIdx = .getAttribute("""level");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 3;
                            eatText3(v);
                            continue outer;
                        }
                        break;
                }
                super.enterElement(___uri___local___qname__atts);
                break;
            }
        }
        private void eatText1(final java.lang.String value)
            throws org.xml.sax.SAXException
        {
            try {
                 = javax.xml.bind.DatatypeConverter.parseInt(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value));
                 = true;
            } catch (java.lang.Exception e) {
                handleParseConversionException(e);
            }
        }
        private void eatText2(final java.lang.String value)
            throws org.xml.sax.SAXException
        {
            try {
                 = javax.xml.bind.DatatypeConverter.parseInt(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value));
                 = true;
            } catch (java.lang.Exception e) {
                handleParseConversionException(e);
            }
        }
        private void eatText3(final java.lang.String value)
            throws org.xml.sax.SAXException
        {
            try {
                 = javax.xml.bind.DatatypeConverter.parseInt(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value));
                 = true;
            } 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  9 :
                        revertToParentFromLeaveElement(___uri___local___qname);
                        return ;
                    case  6 :
                        attIdx = .getAttribute("""underShoot");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 9;
                            eatText1(v);
                            continue outer;
                        }
                        break;
                    case  3 :
                        attIdx = .getAttribute("""overShoot");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 6;
                            eatText2(v);
                            continue outer;
                        }
                        break;
                    case  0 :
                        attIdx = .getAttribute("""level");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 3;
                            eatText3(v);
                            continue outer;
                        }
                        break;
                }
                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  9 :
                        revertToParentFromEnterAttribute(___uri___local___qname);
                        return ;
                    case  6 :
                        if (("underShoot" == ___local)&&("" == ___uri)) {
                             = 7;
                            return ;
                        }
                        break;
                    case  3 :
                        if (("overShoot" == ___local)&&("" == ___uri)) {
                             = 4;
                            return ;
                        }
                        break;
                    case  0 :
                        if (("level" == ___local)&&("" == ___uri)) {
                             = 1;
                            return ;
                        }
                        break;
                }
                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 (("level" == ___local)&&("" == ___uri)) {
                             = 3;
                            return ;
                        }
                        break;
                    case  9 :
                        revertToParentFromLeaveAttribute(___uri___local___qname);
                        return ;
                    case  6 :
                        attIdx = .getAttribute("""underShoot");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 9;
                            eatText1(v);
                            continue outer;
                        }
                        break;
                    case  3 :
                        attIdx = .getAttribute("""overShoot");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 6;
                            eatText2(v);
                            continue outer;
                        }
                        break;
                    case  8 :
                        if (("underShoot" == ___local)&&("" == ___uri)) {
                             = 9;
                            return ;
                        }
                        break;
                    case  0 :
                        attIdx = .getAttribute("""level");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 3;
                            eatText3(v);
                            continue outer;
                        }
                        break;
                    case  5 :
                        if (("overShoot" == ___local)&&("" == ___uri)) {
                             = 6;
                            return ;
                        }
                        break;
                }
                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  9 :
                            revertToParentFromText(value);
                            return ;
                        case  6 :
                            attIdx = .getAttribute("""underShoot");
                            if (attIdx >= 0) {
                                final java.lang.String v = .eatAttribute(attIdx);
                                 = 9;
                                eatText1(v);
                                continue outer;
                            }
                            break;
                        case  3 :
                            attIdx = .getAttribute("""overShoot");
                            if (attIdx >= 0) {
                                final java.lang.String v = .eatAttribute(attIdx);
                                 = 6;
                                eatText2(v);
                                continue outer;
                            }
                            break;
                        case  7 :
                             = 8;
                            eatText1(value);
                            return ;
                        case  0 :
                            attIdx = .getAttribute("""level");
                            if (attIdx >= 0) {
                                final java.lang.String v = .eatAttribute(attIdx);
                                 = 3;
                                eatText3(v);
                                continue outer;
                            }
                            break;
                        case  1 :
                             = 2;
                            eatText3(value);
                            return ;
                    }
                } catch (java.lang.RuntimeException e) {
                    handleUnexpectedTextException(valuee);
                }
                break;
            }
        }
    }
New to GrepCode? Check out our FAQ X