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 |
42 } |
42 } |
43 |
43 |
44 @Override |
44 @Override |
45 public void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { |
45 public void startElement(UnmarshallingContext.State state, TagName ea) throws SAXException { |
46 // install the default value, but don't override the one given by the parent loader |
46 // install the default value, but don't override the one given by the parent loader |
47 if(state.elementDefaultValue==null) |
47 if(state.getElementDefaultValue() == null) |
48 state.elementDefaultValue = defaultValue; |
48 state.setElementDefaultValue(defaultValue); |
49 |
49 |
50 state.loader = l; |
50 state.setLoader(l); |
51 l.startElement(state,ea); |
51 l.startElement(state,ea); |
52 } |
52 } |
53 } |
53 } |