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;
 
     implements org.jvnet.jaxbvalidation.tests.one.ATCConstraintOnCharacteristicPointType, 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 _RefCharacteristicPoint;
     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() {
     }
 
     protected com.sun.xml.bind.util.ListImpl _getRefCharacteristicPoint() {
         if ( == null) {
              = new com.sun.xml.bind.util.ListImpl(new java.util.ArrayList());
         }
         return ;
     }
 
     public java.util.List getRefCharacteristicPoint() {
         return _getRefCharacteristicPoint();
     }
 
     public boolean isSetRefCharacteristicPoint() {
         return (( == null)?false:.isModified());
     }
 
     public void unsetRefCharacteristicPoint() {
         if (!= null) {
             .clear();
             .setModified(false);
         }
     }
 
     }
 
         throws org.xml.sax.SAXException
     {
         int idx1 = 0;
         final int len1 = (( == null)? 0 :.size());
         super.serializeBody(context);
         while (idx1 != len1) {
             context.startElement("""ref-CharacteristicPoint");
             int idx_0 = idx1;
             context.childAsURIs(((com.sun.xml.bind.JAXBObject) .get(idx_0 ++)), "RefCharacteristicPoint");
             context.endNamespaceDecls();
             int idx_1 = idx1;
             context.childAsAttributes(((com.sun.xml.bind.JAXBObject) .get(idx_1 ++)), "RefCharacteristicPoint");
             context.endAttributes();
             context.childAsBody(((com.sun.xml.bind.JAXBObject) .get(idx1 ++)), "RefCharacteristicPoint");
             context.endElement();
         }
     }
 
         throws org.xml.sax.SAXException
     {
         int idx1 = 0;
         final int len1 = (( == null)? 0 :.size());
         super.serializeAttributes(context);
         while (idx1 != len1) {
             idx1 += 1;
         }
     }
 
         throws org.xml.sax.SAXException
     {
         int idx1 = 0;
         final int len1 = (( == null)? 0 :.size());
         super.serializeURIs(context);
         while (idx1 != len1) {
             idx1 += 1;
         }
     }
 
     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\u0000ppsq\u0000~\u0000\u0000ppsr\u0000\u001dcom.sun.msv.grammar."
+"ChoiceExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0001ppsr\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\u0003sr\u0000\u0011java.lang.Boolean\u00cd r\u0080\u00d5\u009c\u00fa\u00ee\u0002\u0000\u0001Z\u0000\u0005valuexp\u0000ps"
+"r\u0000\'com.sun.msv.grammar.trex.ElementPattern\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\tname"
+"Classt\u0000\u001fLcom/sun/msv/grammar/NameClass;xr\u0000\u001ecom.sun.msv.gramm"
+"ar.ElementExp\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0002Z\u0000\u001aignoreUndeclaredAttributesL\u0000\fcont"
+"entModelq\u0000~\u0000\u0002xq\u0000~\u0000\u0003q\u0000~\u0000\u000ep\u0000sq\u0000~\u0000\u0000ppsq\u0000~\u0000\u000fpp\u0000sq\u0000~\u0000\bppsq\u0000~\u0000\nq\u0000~"
+"\u0000\u000epsr\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\u0010xq\u0000~\u0000\u0003q\u0000~\u0000\u000epsr\u00002com.sun.msv.grammar.Expres"
+"sion$AnyStringExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003sq\u0000~\u0000\r\u0001q\u0000~\u0000\u001asr\u0000 com"
+".sun.msv.grammar.AnyNameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000\u001dcom.sun.msv.gram"
+"mar.NameClass\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xpsr\u00000com.sun.msv.grammar.Expression"
+"$EpsilonExpression\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u0000\u0003q\u0000~\u0000\u001bq\u0000~\u0000 sr\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\"xq\u0000~\u0000\u001dt\u00009org.jvnet.jaxbvalidatio"
+"n.tests.one.CharacteristicPointReft\u0000+http://java.sun.com/jax"
+"b/xjc/dummy-elementssq\u0000~\u0000\bppsq\u0000~\u0000\u0017q\u0000~\u0000\u000epsr\u0000\u001bcom.sun.msv.gram"
+"mar.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\u0003"
+"ppsr\u0000\"com.sun.msv.datatype.xsd.QnameType\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xr\u0000*com.s"
+"un.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.data"
+"type.xsd.XSDatatypeImpl\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0003L\u0000\fnamespaceUriq\u0000~\u0000\"L\u0000\btyp"
+"eNameq\u0000~\u0000\"L\u0000\nwhiteSpacet\u0000.Lcom/sun/msv/datatype/xsd/WhiteSpa"
+"ceProcessor;xpt\u0000 http://www.w3.org/2001/XMLSchemat\u0000\u0005QNamesr\u0000"
+"5com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Collapse\u0000\u0000\u0000\u0000\u0000\u0000"
+"\u0000\u0001\u0002\u0000\u0000xr\u0000,com.sun.msv.datatype.xsd.WhiteSpaceProcessor\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
+"\u0001\u0002\u0000\u0000xpsr\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\tlocalNameq\u0000~\u0000\"L\u0000\fnamespaceURIq\u0000~\u0000\"xpq\u0000~\u00003q\u0000~\u00002sq\u0000~\u0000!t\u0000\u0004typ"
+"et\u0000)http://www.w3.org/2001/XMLSchema-instanceq\u0000~\u0000 sq\u0000~\u0000!t\u0000\u0017r"
+"ef-CharacteristicPointt\u0000\u0000q\u0000~\u0000 sq\u0000~\u0000\u0017ppsq\u0000~\u0000(ppsr\u0000\'com.sun.ms"
+"v.datatype.xsd.FinalComponent\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001I\u0000\nfinalValuexr\u0000\u001ecom"
+".sun.msv.datatype.xsd.Proxy\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bbaseTypet\u0000)Lcom/sun"
+"/msv/datatype/xsd/XSDatatypeImpl;xq\u0000~\u0000/q\u0000~\u0000@t\u0000\u0010AtcConditionT"
+"ypesr\u00005com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Preserve"
+"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0000xq\u0000~\u00005sr\u0000#com.sun.msv.datatype.xsd.StringType\u0000\u0000\u0000\u0000"
+"\u0000\u0000\u0000\u0001\u0002\u0000\u0001Z\u0000\risAlwaysValidxq\u0000~\u0000-q\u0000~\u00002t\u0000\u0006stringq\u0000~\u0000I\u0001\u0000\u0000\u0000\u0000q\u0000~\u00008sq"
+"\u0000~\u00009q\u0000~\u0000Lq\u0000~\u0000@sq\u0000~\u0000!t\u0000\tconditionq\u0000~\u0000@sq\u0000~\u0000\u0017ppsq\u0000~\u0000(ppsq\u0000~\u0000Cq"
+"\u0000~\u0000@t\u0000\u0016AtcLevelConstraintTypeq\u0000~\u0000Iq\u0000~\u0000K\u0000\u0000\u0000\u0000q\u0000~\u00008sq\u0000~\u00009q\u0000~\u0000Lq"
+"\u0000~\u0000@sq\u0000~\u0000!t\u0000\u000flevelConstraintq\u0000~\u0000@sq\u0000~\u0000\u0017ppsq\u0000~\u0000(ppsq\u0000~\u0000Cq\u0000~\u0000@"
+"t\u0000\u0016AtcSpeedConstraintTypeq\u0000~\u0000Iq\u0000~\u0000K\u0000\u0000\u0000\u0000q\u0000~\u00008sq\u0000~\u00009q\u0000~\u0000Lq\u0000~\u0000@"
+"sq\u0000~\u0000!t\u0000\u000fspeedConstraintq\u0000~\u0000@sr\u0000\"com.sun.msv.grammar.Express"
+"ionPool\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0002\u0000\u0001L\u0000\bexpTablet\u0000/Lcom/sun/msv/grammar/Express"
+"ionPool$ClosedHash;xpsr\u0000-com.sun.msv.grammar.ExpressionPool$"
+"ClosedHash\u00d7j\u00d0N\u00ef\u00e8\u00ed\u001c\u0003\u0000\u0003I\u0000\u0005countB\u0000\rstreamVersionL\u0000\u0006parentt\u0000$Lco"
+"m/sun/msv/grammar/ExpressionPool;xp\u0000\u0000\u0000\t\u0001pq\u0000~\u0000\u0007q\u0000~\u0000\u0006q\u0000~\u0000&q\u0000~\u0000"
+"\u0013q\u0000~\u0000\fq\u0000~\u0000\u0016q\u0000~\u0000\tq\u0000~\u0000\u0005q\u0000~\u0000\u0015x"));
        }
        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  1 :
                        if (("ref-CharacteristicPoint" == ___local)&&("" == ___uri)) {
                            .pushAttributes(__attsfalse);
                             = 2;
                            return ;
                        }
                         = 4;
                        continue outer;
                    case  4 :
                        if (("ref-CharacteristicPoint" == ___local)&&("" == ___uri)) {
                            .pushAttributes(__attsfalse);
                             = 2;
                            return ;
                        }
                        revertToParentFromEnterElement(___uri___local___qname__atts);
                        return ;
                    case  2 :
                        if (("number" == ___local)&&("" == ___uri)) {
                            _getRefCharacteristicPoint().add(((org.jvnet.jaxbvalidation.tests.one.impl.CharacteristicPointRefImplspawnChildFromEnterElement((org.jvnet.jaxbvalidation.tests.one.impl.CharacteristicPointRefImpl.class), 3, ___uri___local___qname__atts)));
                            return ;
                        }
                        break;
                    case  0 :
                        attIdx = .getAttribute("""condition");
                        if (attIdx >= 0) {
                            .consumeAttribute(attIdx);
                            .getCurrentHandler().enterElement(___uri___local___qname__atts);
                            return ;
                        }
                        break;
                }
                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  1 :
                         = 4;
                        continue outer;
                    case  4 :
                        revertToParentFromLeaveElement(___uri___local___qname);
                        return ;
                    case  3 :
                        if (("ref-CharacteristicPoint" == ___local)&&("" == ___uri)) {
                            .popAttributes();
                             = 4;
                            return ;
                        }
                        break;
                    case  0 :
                        attIdx = .getAttribute("""condition");
                        if (attIdx >= 0) {
                            .consumeAttribute(attIdx);
                            .getCurrentHandler().leaveElement(___uri___local___qname);
                            return ;
                        }
                        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  1 :
                         = 4;
                        continue outer;
                    case  4 :
                        revertToParentFromEnterAttribute(___uri___local___qname);
                        return ;
                    case  0 :
                        if (("condition" == ___local)&&("" == ___uri)) {
                            spawnHandlerFromEnterAttribute((((org.jvnet.jaxbvalidation.tests.one.impl.ATCConstraintTypeImpl)org.jvnet.jaxbvalidation.tests.one.impl.ATCConstraintOnCharacteristicPointTypeImpl.this).new Unmarshaller()), 1, ___uri___local___qname);
                            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  1 :
                         = 4;
                        continue outer;
                    case  4 :
                        revertToParentFromLeaveAttribute(___uri___local___qname);
                        return ;
                    case  0 :
                        attIdx = .getAttribute("""condition");
                        if (attIdx >= 0) {
                            .consumeAttribute(attIdx);
                            .getCurrentHandler().leaveAttribute(___uri___local___qname);
                            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  1 :
                             = 4;
                            continue outer;
                        case  4 :
                            revertToParentFromText(value);
                            return ;
                        case  0 :
                            attIdx = .getAttribute("""condition");
                            if (attIdx >= 0) {
                                .consumeAttribute(attIdx);
                                .getCurrentHandler().text(value);
                                return ;
                            }
                            break;
                    }
                } catch (java.lang.RuntimeException e) {
                    handleUnexpectedTextException(valuee);
                }
                break;
            }
        }
    }
New to GrepCode? Check out our FAQ X