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 SSRCriterionOffsetTypeImpl implements org.jvnet.jaxbvalidation.tests.one.SSRCriterionOffsetType, com.sun.xml.bind.JAXBObject, org.jvnet.jaxbvalidation.tests.one.impl.runtime.UnmarshallableObjectorg.jvnet.jaxbvalidation.tests.one.impl.runtime.XMLSerializable, org.jvnet.jaxbvalidation.tests.one.impl.runtime.ValidatableObject
 {
 
     protected java.lang.String _Track2Code;
     protected boolean has_Offset;
     protected float _Offset;
     protected java.lang.String _CodeMatch;
     protected java.lang.String _Track1Code;
     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.SSRCriterionOffsetType.class);
     }
 
     public java.lang.String getTrack2Code() {
         return ;
     }
 
     public void setTrack2Code(java.lang.String value) {
          = value;
     }
 
     public boolean isSetTrack2Code() {
         return (!= null);
     }
 
     public void unsetTrack2Code() {
          = null;
     }
 
     public float getOffset() {
         return ;
     }
 
     public void setOffset(float value) {
          = value;
          = true;
     }
 
     public boolean isSetOffset() {
         return ;
     }
 
     public void unsetOffset() {
          = false;
     }
 
     public java.lang.String getCodeMatch() {
         return ;
     }
 
     public void setCodeMatch(java.lang.String value) {
          = value;
     }
 
     public boolean isSetCodeMatch() {
         return (!= null);
     }
 
     public void unsetCodeMatch() {
          = null;
     }
 
     public java.lang.String getTrack1Code() {
         return ;
     }
 
     public void setTrack1Code(java.lang.String value) {
          = value;
     }
 
     public boolean isSetTrack1Code() {
         return (!= null);
     }
 
     public void unsetTrack1Code() {
          = null;
     }
 
     }
 
         throws org.xml.sax.SAXException
     {
         if (!) {
             context.reportError(com.sun.xml.bind.serializer.Util.createMissingObjectError(this"Offset"));
        }
    }
        throws org.xml.sax.SAXException
    {
        if (!) {
            context.reportError(com.sun.xml.bind.serializer.Util.createMissingObjectError(this"Offset"));
        }
        context.startAttribute("""codeMatch");
        try {
            context.text(((java.lang.String), "CodeMatch");
        } catch (java.lang.Exception e) {
            org.jvnet.jaxbvalidation.tests.one.impl.runtime.Util.handlePrintConversionException(thisecontext);
        }
        context.endAttribute();
        context.startAttribute("""offset");
        try {
            context.text(javax.xml.bind.DatatypeConverter.printFloat(((float)), "Offset");
        } catch (java.lang.Exception e) {
            org.jvnet.jaxbvalidation.tests.one.impl.runtime.Util.handlePrintConversionException(thisecontext);
        }
        context.endAttribute();
        context.startAttribute("""track1Code");
        try {
            context.text(((java.lang.String), "Track1Code");
        } catch (java.lang.Exception e) {
            org.jvnet.jaxbvalidation.tests.one.impl.runtime.Util.handlePrintConversionException(thisecontext);
        }
        context.endAttribute();
        context.startAttribute("""track2Code");
        try {
            context.text(((java.lang.String), "Track2Code");
        } 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"Offset"));
        }
    }
    public java.lang.Class getPrimaryInterface() {
        return (org.jvnet.jaxbvalidation.tests.one.SSRCriterionOffsetType.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\u0000ppsq\u0000~\u0000\u0000ppsr\u0000 com.sun.msv.grammar."
+"AttributeExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\u0003expq\u0000~\u0000\u0002L\u0000\tnameClasst\u0000\u001fLcom/sun/ms"
+"v/grammar/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\u0004namet\u0000\u001dLcom/sun/msv/util/StringPair;xq\u0000~\u0000\u0003ppsr\u0000)com.su"
+"n.msv.datatype.xsd.EnumerationFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\u0006valuest\u0000\u000fLj"
+"ava/util/Set;xr\u00009com.sun.msv.datatype.xsd.DataTypeWithValueC"
+"onstraintFacet\"\u00a7Ro\u00ca\u00c7\u008aT\u0002\u0000\u0000xr\u0000*com.sun.msv.datatype.xsd.DataTy"
+"peWithFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0005Z\u0000\fisFacetFixedZ\u0000\u0012needValueCheckFlagL\u0000"
+"\bbaseTypet\u0000)Lcom/sun/msv/datatype/xsd/XSDatatypeImpl;L\u0000\fconc"
+"reteTypet\u0000\'Lcom/sun/msv/datatype/xsd/ConcreteType;L\u0000\tfacetNa"
+"met\u0000\u0012Ljava/lang/String;xr\u0000\'com.sun.msv.datatype.xsd.XSDataty"
+"peImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000\u0015L\u0000\btypeNameq\u0000~\u0000\u0015L\u0000\nwhit"
+"eSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpaceProcessor;xpt\u0000\u0000"
+"t\u0000\u0010SSRCodeMatchTypesr\u00005com.sun.msv.datatype.xsd.WhiteSpacePr"
+"ocessor$Preserve\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\u0000xp\u0000\u0000sr\u0000#com.sun.msv.datatype.xsd.S"
+"tringType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxr\u0000*com.sun.msv.datatype"
+".xsd.BuiltinAtomicType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000%com.sun.msv.datatype.xs"
+"d.ConcreteType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0016t\u0000 http://www.w3.org/2001/XML"
+"Schemat\u0000\u0006stringq\u0000~\u0000\u001d\u0001q\u0000~\u0000!t\u0000\u000benumerationsr\u0000\u0011java.util.HashSe"
+"t\u00baD\u0085\u0095\u0096\u00b8\u00b74\u0003\u0000\u0000xpw\f\u0000\u0000\u0000\u0010?@\u0000\u0000\u0000\u0000\u0000\u0002t\u0000\u0005MATCHt\u0000\bMISMATCHxsr\u00000com.sun."
+"msv.grammar.Expression$NullSetExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003pps"
+"r\u0000\u001bcom.sun.msv.util.StringPair\u00d0t\u001ejB\u008f\u008d\u00a0\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0015L\u0000"
+"\fnamespaceURIq\u0000~\u0000\u0015xpq\u0000~\u0000\u001aq\u0000~\u0000\u0019sr\u0000#com.sun.msv.grammar.Simple"
+"NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002L\u0000\tlocalNameq\u0000~\u0000\u0015L\u0000\fnamespaceURIq\u0000~\u0000\u0015xr\u0000"
+"\u001dcom.sun.msv.grammar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpt\u0000\tcodeMatchq\u0000~\u0000\u0019"
+"sq\u0000~\u0000\bppsq\u0000~\u0000\u000bppsr\u0000*com.sun.msv.datatype.xsd.MaxInclusiveFac"
+"et\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\nlimitValuet\u0000\u0012Ljava/lang/Object;xq\u0000~\u0000\u0011q\u0000~\u0000\u0019t\u0000\u0018Percentag"
+"eRealSignedTypesr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProces"
+"sor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u001c\u0000\u0001sr\u0000*com.sun.msv.datatype.xsd."
+"MinInclusiveFacet\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u00004q\u0000~\u0000\u0019q\u0000~\u00007q\u0000~\u00009\u0000\u0000sr\u0000\"com.s"
+"un.msv.datatype.xsd.FloatType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000+com.sun.msv.data"
+"type.xsd.FloatingNumberType\u00fc\u00e3\u00b6\u0087\u008c\u00a8|\u00e0\u0002\u0000\u0000xq\u0000~\u0000\u001fq\u0000~\u0000\"t\u0000\u0005floatq\u0000~"
+"\u00009q\u0000~\u0000>t\u0000\fminInclusivesr\u0000\u000fjava.lang.Float\u00da\u00ed\u00c9\u00a2\u00db<\u00f0\u00ec\u0002\u0000\u0001F\u0000\u0005value"
+"xr\u0000\u0010java.lang.Number\u0086\u00ac\u0095\u001d\u000b\u0094\u00e0\u008b\u0002\u0000\u0000xp\u00c2\u00c8\u0000\u0000q\u0000~\u0000>t\u0000\fmaxInclusivesq\u0000"
+"~\u0000AB\u00c8\u0000\u0000q\u0000~\u0000*sq\u0000~\u0000+q\u0000~\u00007q\u0000~\u0000\u0019sq\u0000~\u0000-t\u0000\u0006offsetq\u0000~\u0000\u0019sq\u0000~\u0000\bppsq\u0000~"
+"\u0000\u000bppsq\u0000~\u0000\u000fq\u0000~\u0000\u0019t\u0000\u0014TrackSSRCodeTypeTypeq\u0000~\u0000\u001d\u0000\u0000q\u0000~\u0000!q\u0000~\u0000!q\u0000~\u0000$"
+"sq\u0000~\u0000%w\f\u0000\u0000\u0000\u0010?@\u0000\u0000\u0000\u0000\u0000\u0003t\u0000\u0007SPECIALt\u0000\bDISCRETEt\u0000\fNON_DISCRETExq\u0000~"
+"\u0000*sq\u0000~\u0000+q\u0000~\u0000Lq\u0000~\u0000\u0019sq\u0000~\u0000-t\u0000\ntrack1Codeq\u0000~\u0000\u0019sq\u0000~\u0000\bppq\u0000~\u0000Jsq\u0000~\u0000"
+"-t\u0000\ntrack2Codeq\u0000~\u0000\u0019sr\u0000\"com.sun.msv.grammar.ExpressionPool\u0000\u0000\u0000"
+"\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/ExpressionPool$Cl"
+"osedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$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\u0003\u0001pq\u0000~\u0000\u0005q\u0000~\u0000\u0006q\u0000~\u0000\u0007x"));
        }
        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.SSRCriterionOffsetTypeImpl.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  6 :
                        attIdx = .getAttribute("""track1Code");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 9;
                            eatText1(v);
                            continue outer;
                        }
                        break;
                    case  9 :
                        attIdx = .getAttribute("""track2Code");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 12;
                            eatText2(v);
                            continue outer;
                        }
                        break;
                    case  3 :
                        attIdx = .getAttribute("""offset");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 6;
                            eatText3(v);
                            continue outer;
                        }
                        break;
                    case  12 :
                        revertToParentFromEnterElement(___uri___local___qname__atts);
                        return ;
                    case  0 :
                        attIdx = .getAttribute("""codeMatch");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 3;
                            eatText4(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 {
                 = 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);
            }
        }
        private void eatText3(final java.lang.String value)
            throws org.xml.sax.SAXException
        {
            try {
                 = javax.xml.bind.DatatypeConverter.parseFloat(com.sun.xml.bind.WhiteSpaceProcessor.collapse(value));
                 = true;
            } catch (java.lang.Exception e) {
                handleParseConversionException(e);
            }
        }
        private void eatText4(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  6 :
                        attIdx = .getAttribute("""track1Code");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 9;
                            eatText1(v);
                            continue outer;
                        }
                        break;
                    case  9 :
                        attIdx = .getAttribute("""track2Code");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 12;
                            eatText2(v);
                            continue outer;
                        }
                        break;
                    case  3 :
                        attIdx = .getAttribute("""offset");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 6;
                            eatText3(v);
                            continue outer;
                        }
                        break;
                    case  12 :
                        revertToParentFromLeaveElement(___uri___local___qname);
                        return ;
                    case  0 :
                        attIdx = .getAttribute("""codeMatch");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 3;
                            eatText4(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  6 :
                        if (("track1Code" == ___local)&&("" == ___uri)) {
                             = 7;
                            return ;
                        }
                        break;
                    case  9 :
                        if (("track2Code" == ___local)&&("" == ___uri)) {
                             = 10;
                            return ;
                        }
                        break;
                    case  3 :
                        if (("offset" == ___local)&&("" == ___uri)) {
                             = 4;
                            return ;
                        }
                        break;
                    case  12 :
                        revertToParentFromEnterAttribute(___uri___local___qname);
                        return ;
                    case  0 :
                        if (("codeMatch" == ___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  5 :
                        if (("offset" == ___local)&&("" == ___uri)) {
                             = 6;
                            return ;
                        }
                        break;
                    case  8 :
                        if (("track1Code" == ___local)&&("" == ___uri)) {
                             = 9;
                            return ;
                        }
                        break;
                    case  2 :
                        if (("codeMatch" == ___local)&&("" == ___uri)) {
                             = 3;
                            return ;
                        }
                        break;
                    case  6 :
                        attIdx = .getAttribute("""track1Code");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 9;
                            eatText1(v);
                            continue outer;
                        }
                        break;
                    case  9 :
                        attIdx = .getAttribute("""track2Code");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 12;
                            eatText2(v);
                            continue outer;
                        }
                        break;
                    case  11 :
                        if (("track2Code" == ___local)&&("" == ___uri)) {
                             = 12;
                            return ;
                        }
                        break;
                    case  3 :
                        attIdx = .getAttribute("""offset");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 6;
                            eatText3(v);
                            continue outer;
                        }
                        break;
                    case  12 :
                        revertToParentFromLeaveAttribute(___uri___local___qname);
                        return ;
                    case  0 :
                        attIdx = .getAttribute("""codeMatch");
                        if (attIdx >= 0) {
                            final java.lang.String v = .eatAttribute(attIdx);
                             = 3;
                            eatText4(v);
                            continue outer;
                        }
                        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;
                            eatText3(value);
                            return ;
                        case  1 :
                             = 2;
                            eatText4(value);
                            return ;
                        case  6 :
                            attIdx = .getAttribute("""track1Code");
                            if (attIdx >= 0) {
                                final java.lang.String v = .eatAttribute(attIdx);
                                 = 9;
                                eatText1(v);
                                continue outer;
                            }
                            break;
                        case  9 :
                            attIdx = .getAttribute("""track2Code");
                            if (attIdx >= 0) {
                                final java.lang.String v = .eatAttribute(attIdx);
                                 = 12;
                                eatText2(v);
                                continue outer;
                            }
                            break;
                        case  3 :
                            attIdx = .getAttribute("""offset");
                            if (attIdx >= 0) {
                                final java.lang.String v = .eatAttribute(attIdx);
                                 = 6;
                                eatText3(v);
                                continue outer;
                            }
                            break;
                        case  12 :
                            revertToParentFromText(value);
                            return ;
                        case  10 :
                             = 11;
                            eatText2(value);
                            return ;
                        case  0 :
                            attIdx = .getAttribute("""codeMatch");
                            if (attIdx >= 0) {
                                final java.lang.String v = .eatAttribute(attIdx);
                                 = 3;
                                eatText4(v);
                                continue outer;
                            }
                            break;
                        case  7 :
                             = 8;
                            eatText1(value);
                            return ;
                    }
                } catch (java.lang.RuntimeException e) {
                    handleUnexpectedTextException(valuee);
                }
                break;
            }
        }
    }
New to GrepCode? Check out our FAQ X