1 /*
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
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
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
49 import javax.xml.namespace.NamespaceContext;
50 import javax.xml.namespace.QName;
51
52 import com.sun.istack.internal.NotNull;
53 import com.sun.istack.internal.Nullable;
54 import com.sun.istack.internal.SAXParseException2;
55 import com.sun.xml.internal.bind.IDResolver;
56 import com.sun.xml.internal.bind.Util;
57 import com.sun.xml.internal.bind.api.AccessorException;
58 import com.sun.xml.internal.bind.api.ClassResolver;
59 import com.sun.xml.internal.bind.unmarshaller.InfosetScanner;
60 import com.sun.xml.internal.bind.v2.ClassFactory;
61 import com.sun.xml.internal.bind.v2.runtime.AssociationMap;
62 import com.sun.xml.internal.bind.v2.runtime.Coordinator;
63 import com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl;
64 import com.sun.xml.internal.bind.v2.runtime.JaxBeanInfo;
65 import java.util.logging.Level;
66 import java.util.logging.Logger;
67
68 import org.xml.sax.ErrorHandler;
69 import org.xml.sax.SAXException;
70 import org.xml.sax.helpers.LocatorImpl;
71
72 /**
73 * Center of the unmarshalling.
74 *
75 * <p>
76 * This object is responsible for coordinating {@link Loader}s to
77 * perform the whole unmarshalling.
78 *
79 * @author Kohsuke Kawaguchi
80 */
81 public final class UnmarshallingContext extends Coordinator
82 implements NamespaceContext, ValidationEventHandler, ErrorHandler, XmlVisitor, XmlVisitor.TextPredictor {
83
84 private static final Logger logger = Logger.getLogger(UnmarshallingContext.class.getName());
85
86 /**
87 * Root state.
88 */
|
1 /*
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.
4 *
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
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
49 import javax.xml.namespace.NamespaceContext;
50 import javax.xml.namespace.QName;
51
52 import com.sun.istack.internal.NotNull;
53 import com.sun.istack.internal.Nullable;
54 import com.sun.istack.internal.SAXParseException2;
55 import com.sun.xml.internal.bind.IDResolver;
56 import com.sun.xml.internal.bind.Util;
57 import com.sun.xml.internal.bind.api.AccessorException;
58 import com.sun.xml.internal.bind.api.ClassResolver;
59 import com.sun.xml.internal.bind.unmarshaller.InfosetScanner;
60 import com.sun.xml.internal.bind.v2.ClassFactory;
61 import com.sun.xml.internal.bind.v2.runtime.AssociationMap;
62 import com.sun.xml.internal.bind.v2.runtime.Coordinator;
63 import com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl;
64 import com.sun.xml.internal.bind.v2.runtime.JaxBeanInfo;
65 import java.util.logging.Level;
66 import java.util.logging.Logger;
67
68 import org.xml.sax.ErrorHandler;
69 import org.xml.sax.Locator;
70 import org.xml.sax.SAXException;
71 import org.xml.sax.helpers.LocatorImpl;
72
73 /**
74 * Center of the unmarshalling.
75 *
76 * <p>
77 * This object is responsible for coordinating {@link Loader}s to
78 * perform the whole unmarshalling.
79 *
80 * @author Kohsuke Kawaguchi
81 */
82 public final class UnmarshallingContext extends Coordinator
83 implements NamespaceContext, ValidationEventHandler, ErrorHandler, XmlVisitor, XmlVisitor.TextPredictor {
84
85 private static final Logger logger = Logger.getLogger(UnmarshallingContext.class.getName());
86
87 /**
88 * Root state.
89 */
|