1.1 --- a/src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLModel.java Thu Sep 26 10:43:28 2013 -0700 1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLModel.java Fri Oct 04 16:21:34 2013 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -34,10 +34,12 @@ 1.11 import com.sun.xml.internal.ws.api.policy.PolicyResolverFactory; 1.12 import com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser; 1.13 import com.sun.xml.internal.ws.policy.PolicyMap; 1.14 + 1.15 import org.xml.sax.SAXException; 1.16 1.17 import javax.xml.namespace.QName; 1.18 import javax.xml.stream.XMLStreamException; 1.19 + 1.20 import java.io.IOException; 1.21 import java.util.Map; 1.22 1.23 @@ -96,7 +98,7 @@ 1.24 * 1.25 * @return an empty Map if the wsdl document has no wsdl:binding 1.26 */ 1.27 - @NotNull Map<QName, WSDLBoundPortType> getBindings(); 1.28 + @NotNull Map<QName, ? extends WSDLBoundPortType> getBindings(); 1.29 1.30 /** 1.31 * Gives a {@link Map} of wsdl:service qualified name and {@link com.sun.xml.internal.ws.api.model.wsdl.WSDLService} 1.32 @@ -106,6 +108,25 @@ 1.33 @NotNull Map<QName, ? extends WSDLService> getServices(); 1.34 1.35 /** 1.36 + * Returns the first service QName from insertion order 1.37 + */ 1.38 + public QName getFirstServiceName(); 1.39 + 1.40 + /** 1.41 + * Returns the message with the given QName 1.42 + * @param name Message name 1.43 + * @return Message 1.44 + */ 1.45 + public WSDLMessage getMessage(QName name); 1.46 + 1.47 + /** 1.48 + * Gives a {@link Map} of wsdl:message qualified name and {@link com.sun.xml.internal.ws.api.model.wsdl.WSDLMesage} 1.49 + * 1.50 + * @return an empty Map if the wsdl document has no wsdl:message 1.51 + */ 1.52 + @NotNull Map<QName, ? extends WSDLMessage> getMessages(); 1.53 + 1.54 + /** 1.55 * Gives the PolicyMap associated with the WSDLModel 1.56 * 1.57 * @return PolicyMap 1.58 @@ -115,7 +136,6 @@ 1.59 */ 1.60 public PolicyMap getPolicyMap(); 1.61 1.62 - 1.63 /** 1.64 * Main purpose of this class is to parsing of a WSDL and get the {@link WSDLModel} from it. 1.65 */