1 /* |
1 /* |
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. |
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. |
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 |
53 } |
53 } |
54 |
54 |
55 |
55 |
56 @Override |
56 @Override |
57 public void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { |
57 public void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { |
58 state.loader = selectLoader(state, ea); |
58 final Loader loader = selectLoader(state, ea); |
59 |
59 state.setLoader(loader); |
60 state.loader.startElement(state, ea); |
60 loader.startElement(state, ea); |
61 } |
61 } |
62 |
62 |
63 protected Loader selectLoader(UnmarshallingContext.State state, TagName ea) throws SAXException { |
63 protected Loader selectLoader(UnmarshallingContext.State state, TagName ea) throws SAXException { |
64 |
64 |
65 UnmarshallingContext context = state.getContext(); |
65 UnmarshallingContext context = state.getContext(); |