src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLModel.java

changeset 408
b0610cd08440
parent 368
0989ad8c0860
child 637
9c07ef4934dd
equal deleted inserted replaced
405:cc682329886b 408:b0610cd08440
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
32 import com.sun.xml.internal.ws.api.wsdl.parser.XMLEntityResolver; 32 import com.sun.xml.internal.ws.api.wsdl.parser.XMLEntityResolver;
33 import com.sun.xml.internal.ws.api.policy.PolicyResolver; 33 import com.sun.xml.internal.ws.api.policy.PolicyResolver;
34 import com.sun.xml.internal.ws.api.policy.PolicyResolverFactory; 34 import com.sun.xml.internal.ws.api.policy.PolicyResolverFactory;
35 import com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser; 35 import com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser;
36 import com.sun.xml.internal.ws.policy.PolicyMap; 36 import com.sun.xml.internal.ws.policy.PolicyMap;
37
37 import org.xml.sax.SAXException; 38 import org.xml.sax.SAXException;
38 39
39 import javax.xml.namespace.QName; 40 import javax.xml.namespace.QName;
40 import javax.xml.stream.XMLStreamException; 41 import javax.xml.stream.XMLStreamException;
42
41 import java.io.IOException; 43 import java.io.IOException;
42 import java.util.Map; 44 import java.util.Map;
43 45
44 /** 46 /**
45 * Provides abstraction of wsdl:definitions. 47 * Provides abstraction of wsdl:definitions.
94 /** 96 /**
95 * Gives a {@link Map} of wsdl:binding {@link QName} and {@link WSDLBoundPortType} 97 * Gives a {@link Map} of wsdl:binding {@link QName} and {@link WSDLBoundPortType}
96 * 98 *
97 * @return an empty Map if the wsdl document has no wsdl:binding 99 * @return an empty Map if the wsdl document has no wsdl:binding
98 */ 100 */
99 @NotNull Map<QName, WSDLBoundPortType> getBindings(); 101 @NotNull Map<QName, ? extends WSDLBoundPortType> getBindings();
100 102
101 /** 103 /**
102 * Gives a {@link Map} of wsdl:service qualified name and {@link com.sun.xml.internal.ws.api.model.wsdl.WSDLService} 104 * Gives a {@link Map} of wsdl:service qualified name and {@link com.sun.xml.internal.ws.api.model.wsdl.WSDLService}
103 * 105 *
104 * @return an empty Map if the wsdl document has no wsdl:service 106 * @return an empty Map if the wsdl document has no wsdl:service
105 */ 107 */
106 @NotNull Map<QName, ? extends WSDLService> getServices(); 108 @NotNull Map<QName, ? extends WSDLService> getServices();
109
110 /**
111 * Returns the first service QName from insertion order
112 */
113 public QName getFirstServiceName();
114
115 /**
116 * Returns the message with the given QName
117 * @param name Message name
118 * @return Message
119 */
120 public WSDLMessage getMessage(QName name);
121
122 /**
123 * Gives a {@link Map} of wsdl:message qualified name and {@link com.sun.xml.internal.ws.api.model.wsdl.WSDLMesage}
124 *
125 * @return an empty Map if the wsdl document has no wsdl:message
126 */
127 @NotNull Map<QName, ? extends WSDLMessage> getMessages();
107 128
108 /** 129 /**
109 * Gives the PolicyMap associated with the WSDLModel 130 * Gives the PolicyMap associated with the WSDLModel
110 * 131 *
111 * @return PolicyMap 132 * @return PolicyMap
112 * 133 *
113 * @deprecated 134 * @deprecated
114 * Do not use this method as the PolicyMap API is not final yet and might change in next few months. 135 * Do not use this method as the PolicyMap API is not final yet and might change in next few months.
115 */ 136 */
116 public PolicyMap getPolicyMap(); 137 public PolicyMap getPolicyMap();
117
118 138
119 /** 139 /**
120 * Main purpose of this class is to parsing of a WSDL and get the {@link WSDLModel} from it. 140 * Main purpose of this class is to parsing of a WSDL and get the {@link WSDLModel} from it.
121 */ 141 */
122 public class WSDLParser{ 142 public class WSDLParser{

mercurial