jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/reader/internalizer/DOMForest.java
changeset 33547 e4c76ac38b12
parent 27837 86d4f46e622a
child 45678 65fdff10664d
equal deleted inserted replaced
33390:d131f4b8433a 33547:e4c76ac38b12
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    28 import com.sun.istack.internal.NotNull;
    28 import com.sun.istack.internal.NotNull;
    29 import com.sun.istack.internal.XMLStreamReaderToContentHandler;
    29 import com.sun.istack.internal.XMLStreamReaderToContentHandler;
    30 import com.sun.tools.internal.xjc.ErrorReceiver;
    30 import com.sun.tools.internal.xjc.ErrorReceiver;
    31 import com.sun.tools.internal.xjc.Options;
    31 import com.sun.tools.internal.xjc.Options;
    32 import com.sun.tools.internal.xjc.reader.Const;
    32 import com.sun.tools.internal.xjc.reader.Const;
       
    33 import com.sun.tools.internal.xjc.reader.xmlschema.parser.SchemaConstraintChecker;
    33 import com.sun.tools.internal.xjc.util.ErrorReceiverFilter;
    34 import com.sun.tools.internal.xjc.util.ErrorReceiverFilter;
    34 import com.sun.xml.internal.bind.marshaller.DataWriter;
    35 import com.sun.xml.internal.bind.marshaller.DataWriter;
    35 import com.sun.xml.internal.bind.v2.util.XmlFactory;
    36 import com.sun.xml.internal.bind.v2.util.XmlFactory;
    36 import com.sun.xml.internal.xsom.parser.JAXPParser;
    37 import com.sun.xml.internal.xsom.parser.JAXPParser;
    37 import com.sun.xml.internal.xsom.parser.XMLParser;
    38 import com.sun.xml.internal.xsom.parser.XMLParser;
    81  *
    82  *
    82  * @author
    83  * @author
    83  *     Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
    84  *     Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
    84  */
    85  */
    85 public final class DOMForest {
    86 public final class DOMForest {
    86     /** actual data storage map<SystemId,Document>. */
    87     /** actual data storage {@code map<SystemId,Document>}. */
    87     private final Map<String,Document> core = new HashMap<String,Document>();
    88     private final Map<String,Document> core = new HashMap<String,Document>();
    88 
    89 
    89     /**
    90     /**
    90      * To correctly feed documents to a schema parser, we need to remember
    91      * To correctly feed documents to a schema parser, we need to remember
    91      * which documents (of the forest) were given as the root
    92      * which documents (of the forest) were given as the root
    98     private final Set<String> rootDocuments = new LinkedHashSet<String>();
    99     private final Set<String> rootDocuments = new LinkedHashSet<String>();
    99 
   100 
   100     /** Stores location information for all the trees in this forest. */
   101     /** Stores location information for all the trees in this forest. */
   101     public final LocatorTable locatorTable = new LocatorTable();
   102     public final LocatorTable locatorTable = new LocatorTable();
   102 
   103 
   103     /** Stores all the outer-most &lt;jaxb:bindings> customizations. */
   104     /** Stores all the outer-most {@code <jaxb:bindings>} customizations. */
   104     public final Set<Element> outerMostBindings = new HashSet<Element>();
   105     public final Set<Element> outerMostBindings = new HashSet<Element>();
   105 
   106 
   106     /** Used to resolve references to other schema documents. */
   107     /** Used to resolve references to other schema documents. */
   107     private EntityResolver entityResolver = null;
   108     private EntityResolver entityResolver = null;
   108 
   109