< prev index next >

jaxws/src/jdk.xml.bind/share/classes/com/sun/xml/internal/xsom/impl/parser/state/complexType.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -23,24 +23,21 @@
  * questions.
  */
 
 /* this file is generated by RelaxNGCC */
 package com.sun.xml.internal.xsom.impl.parser.state;
-import org.xml.sax.SAXException;
-import org.xml.sax.XMLReader;
-import org.xml.sax.Attributes;
-import com.sun.xml.internal.xsom.impl.parser.NGCCRuntimeEx;
 
-    import com.sun.xml.internal.xsom.*;
-    import com.sun.xml.internal.xsom.parser.*;
-    import com.sun.xml.internal.xsom.impl.*;
-    import com.sun.xml.internal.xsom.impl.parser.*;
-    import org.xml.sax.Locator;
-    import org.xml.sax.ContentHandler;
-    import org.xml.sax.helpers.*;
-    import java.util.*;
-    import java.math.BigInteger;
+import com.sun.xml.internal.bind.WhiteSpaceProcessor;
+import com.sun.xml.internal.xsom.*;
+import com.sun.xml.internal.xsom.impl.*;
+import com.sun.xml.internal.xsom.impl.parser.*;
+import com.sun.xml.internal.xsom.parser.*;
+
+import java.util.*;
+import org.xml.sax.Attributes;
+import org.xml.sax.Locator;
+import org.xml.sax.SAXException;
 
 
 
 class complexType extends NGCCHandler {
     private Integer finalValue;

@@ -1479,12 +1476,14 @@
     public void text(String $value) throws SAXException {
         int $ai;
         switch($_ngcc_current_state) {
         case 58:
             {
+                // <xs:complexType> -> <xs:simpleContent> -> <xs:restriction> with
+                // attribute 'base' = $value
                 NGCCHandler h = new qname(this, super._source, $runtime, 621);
-                spawnChildFromText(h, $value);
+                spawnChildFromText(h, WhiteSpaceProcessor.collapse($value));
             }
             break;
         case 54:
             {
                 $_ngcc_current_state = 52;

@@ -1643,12 +1642,14 @@
                 }
             }
             break;
         case 43:
             {
+                // <xs:complexType> -> <xs:simpleContent> -> <xs:extension> with
+                // attribute 'base' = $value
                 NGCCHandler h = new qname(this, super._source, $runtime, 601);
-                spawnChildFromText(h, $value);
+                spawnChildFromText(h, WhiteSpaceProcessor.collapse($value));
             }
             break;
         case 39:
             {
                 $_ngcc_current_state = 38;

@@ -1663,12 +1664,14 @@
                 }
             }
             break;
         case 23:
             {
+                // <xs:complexType> -> <xs:complexContent> -> <xs:restriction> with
+                //  attribute 'base' = $value
                 NGCCHandler h = new qname(this, super._source, $runtime, 577);
-                spawnChildFromText(h, $value);
+                spawnChildFromText(h, WhiteSpaceProcessor.collapse($value));
             }
             break;
         case 52:
             {
                 $_ngcc_current_state = 51;

@@ -1681,11 +1684,12 @@
                 spawnChildFromText(h, $value);
             }
             break;
         case 70:
             {
-                name = $value;
+                // <xs:complexType> with attribute 'name' = $value
+                name = WhiteSpaceProcessor.collapse($value);
                 $_ngcc_current_state = 69;
             }
             break;
         case 82:
             {

@@ -1717,12 +1721,14 @@
                 $_ngcc_current_state = 73;
             }
             break;
         case 14:
             {
+                // <xs:complexType> -> <xs:complexContent> -> <xs:extension> with
+                // attribute 'base' = $value
                 NGCCHandler h = new qname(this, super._source, $runtime, 566);
-                spawnChildFromText(h, $value);
+                spawnChildFromText(h, WhiteSpaceProcessor.collapse($value));
             }
             break;
         }
     }
 
< prev index next >