src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/LeafBeanInfoImpl.java

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
equal deleted inserted replaced
366:8c0b6bccfe47 368:0989ad8c0860
1 /* 1 /*
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2013, 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
77 tagName = grammar.nameBuilder.createElementName(li.getElementName()); 77 tagName = grammar.nameBuilder.createElementName(li.getElementName());
78 else 78 else
79 tagName = null; 79 tagName = null;
80 } 80 }
81 81
82 @Override
82 public QName getTypeName(BeanT instance) { 83 public QName getTypeName(BeanT instance) {
83 QName tn = xducer.getTypeName(instance); 84 QName tn = xducer.getTypeName(instance);
84 if(tn!=null) return tn; 85 if(tn!=null) return tn;
85 // rely on default 86 // rely on default
86 return super.getTypeName(instance); 87 return super.getTypeName(instance);
87 } 88 }
88 89
89 public final String getElementNamespaceURI(BeanT _) { 90 public final String getElementNamespaceURI(BeanT t) {
90 return tagName.nsUri; 91 return tagName.nsUri;
91 } 92 }
92 93
93 public final String getElementLocalName(BeanT _) { 94 public final String getElementLocalName(BeanT t) {
94 return tagName.localName; 95 return tagName.localName;
95 } 96 }
96 97
97 public BeanT createInstance(UnmarshallingContext context) { 98 public BeanT createInstance(UnmarshallingContext context) {
98 throw new UnsupportedOperationException(); 99 throw new UnsupportedOperationException();

mercurial