jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/model/ParameterImpl.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, 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 |
99 return getOwner().getXMLBridge(typeInfo); |
99 return getOwner().getXMLBridge(typeInfo); |
100 } |
100 } |
101 |
101 |
102 public XMLBridge getInlinedRepeatedElementBridge() { |
102 public XMLBridge getInlinedRepeatedElementBridge() { |
103 TypeInfo itemType = getItemType(); |
103 TypeInfo itemType = getItemType(); |
104 if (itemType != null) { |
104 if (itemType != null && itemType.getWrapperType() == null) { |
105 XMLBridge xb = getOwner().getXMLBridge(itemType); |
105 XMLBridge xb = getOwner().getXMLBridge(itemType); |
106 if (xb != null) return new RepeatedElementBridge(typeInfo, xb); |
106 if (xb != null) return new RepeatedElementBridge(typeInfo, xb); |
107 } |
107 } |
108 return null; |
108 return null; |
109 } |
109 } |
253 this.partName = partName; |
253 this.partName = partName; |
254 } |
254 } |
255 |
255 |
256 void fillTypes(List<TypeInfo> types) { |
256 void fillTypes(List<TypeInfo> types) { |
257 TypeInfo itemType = getItemType(); |
257 TypeInfo itemType = getItemType(); |
258 types.add((itemType != null) ? itemType : getTypeInfo()); |
258 if (itemType != null) { |
|
259 types.add(itemType); |
|
260 if (itemType.getWrapperType() != null) types.add(getTypeInfo()); |
|
261 } else { |
|
262 types.add(getTypeInfo()); |
|
263 } |
259 } |
264 } |
260 } |
265 } |