1 /* |
1 /* |
2 * Copyright (c) 1997, 2012, 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 |
27 |
27 |
28 import com.sun.xml.internal.ws.api.model.wsdl.WSDLExtensible; |
28 import com.sun.xml.internal.ws.api.model.wsdl.WSDLExtensible; |
29 import com.sun.xml.internal.ws.api.model.wsdl.WSDLExtension; |
29 import com.sun.xml.internal.ws.api.model.wsdl.WSDLExtension; |
30 import com.sun.xml.internal.ws.api.model.wsdl.WSDLObject; |
30 import com.sun.xml.internal.ws.api.model.wsdl.WSDLObject; |
31 import com.sun.xml.internal.ws.resources.UtilMessages; |
31 import com.sun.xml.internal.ws.resources.UtilMessages; |
32 import com.sun.xml.internal.ws.wsdl.parser.WSDLConstants; |
|
33 import com.sun.istack.internal.NotNull; |
32 import com.sun.istack.internal.NotNull; |
34 |
33 |
35 import javax.xml.stream.XMLStreamReader; |
34 import javax.xml.stream.XMLStreamReader; |
36 import javax.xml.stream.Location; |
|
37 import javax.xml.namespace.QName; |
35 import javax.xml.namespace.QName; |
38 import javax.xml.ws.WebServiceException; |
36 import javax.xml.ws.WebServiceException; |
39 import java.util.ArrayList; |
37 import java.util.ArrayList; |
40 import java.util.HashSet; |
38 import java.util.HashSet; |
41 import java.util.List; |
39 import java.util.List; |
42 import java.util.Set; |
40 import java.util.Set; |
43 |
41 |
44 import org.xml.sax.Locator; |
42 import org.xml.sax.Locator; |
45 import org.xml.sax.helpers.LocatorImpl; |
|
46 |
43 |
47 /** |
44 /** |
48 * All the WSDL 1.1 elements that are extensible should subclass from this abstract implementation of |
45 * All the WSDL 1.1 elements that are extensible should subclass from this abstract implementation of |
49 * {@link WSDLExtensible} interface. |
46 * {@link WSDLExtensible} interface. |
50 * |
47 * |
93 // I don't trust plugins. So let's always check it, instead of making this an assertion |
90 // I don't trust plugins. So let's always check it, instead of making this an assertion |
94 throw new IllegalArgumentException(); |
91 throw new IllegalArgumentException(); |
95 extensions.add(ex); |
92 extensions.add(ex); |
96 } |
93 } |
97 |
94 |
|
95 public List<? extends UnknownWSDLExtension> getNotUnderstoodExtensions() { |
|
96 return notUnderstoodExtensions; |
|
97 } |
|
98 |
98 /** |
99 /** |
99 * This can be used if a WSDL extension element that has wsdl:required=true |
100 * This can be used if a WSDL extension element that has wsdl:required=true |
100 * is not understood |
101 * is not understood |
101 * @param extnEl |
102 * @param extnEl |
102 * @param locator |
103 * @param locator |