com.sun.xml.ws.api.model.wsdl
Interface WSDLModel

All Superinterfaces:
WSDLExtensible, WSDLObject
All Known Subinterfaces:
EditableWSDLModel
All Known Implementing Classes:
WSDLModelImpl

public interface WSDLModel
extends WSDLExtensible

Provides abstraction of wsdl:definitions.


Nested Class Summary
static class WSDLModel.WSDLParser
          Main purpose of this class is to parsing of a WSDL and get the WSDLModel from it.
 
Method Summary
 WSDLBoundPortType getBinding(javax.xml.namespace.QName name)
          Gets WSDLBoundPortType that models wsdl:binding
 WSDLBoundPortType getBinding(javax.xml.namespace.QName serviceName, javax.xml.namespace.QName portName)
          Give a WSDLBoundPortType for the given wsdl:service and wsdl:port names.
 java.util.Map<javax.xml.namespace.QName,? extends WSDLBoundPortType> getBindings()
          Gives a Map of wsdl:binding QName and WSDLBoundPortType
 javax.xml.namespace.QName getFirstServiceName()
          Returns the first service QName from insertion order
 WSDLMessage getMessage(javax.xml.namespace.QName name)
          Returns the message with the given QName
 java.util.Map<javax.xml.namespace.QName,? extends WSDLMessage> getMessages()
          Gives a Map of wsdl:message qualified name and com.sun.xml.ws.api.model.wsdl.WSDLMesage
 com.sun.xml.ws.policy.PolicyMap getPolicyMap()
          Deprecated. Do not use this method as the PolicyMap API is not final yet and might change in next few months.
 WSDLPortType getPortType(javax.xml.namespace.QName name)
          Gets WSDLPortType that models wsdl:portType
 java.util.Map<javax.xml.namespace.QName,? extends WSDLPortType> getPortTypes()
          Gives a Map of wsdl:portType QName and WSDLPortType
 WSDLService getService(javax.xml.namespace.QName name)
          Gets WSDLService that models wsdl:service
 java.util.Map<javax.xml.namespace.QName,? extends WSDLService> getServices()
          Gives a Map of wsdl:service qualified name and WSDLService
 
Methods inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLExtensible
addExtension, addNotUnderstoodExtension, areRequiredExtensionsUnderstood, getExtension, getExtensions, getExtensions, getNotUnderstoodExtensions
 
Methods inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLObject
getLocation
 

Method Detail

getPortType

WSDLPortType getPortType(@NotNull
                         javax.xml.namespace.QName name)
Gets WSDLPortType that models wsdl:portType

Parameters:
name - non-null quaified name of wsdl:message, where the localName is the value of wsdl:portType@name and the namespaceURI is the value of wsdl:definitions@targetNamespace
Returns:
A WSDLPortType or null if no wsdl:portType found.

getBinding

WSDLBoundPortType getBinding(@NotNull
                             javax.xml.namespace.QName name)
Gets WSDLBoundPortType that models wsdl:binding

Parameters:
name - non-null quaified name of wsdl:binding, where the localName is the value of wsdl:binding@name and the namespaceURI is the value of wsdl:definitions@targetNamespace
Returns:
A WSDLBoundPortType or null if no wsdl:binding found

getBinding

WSDLBoundPortType getBinding(@NotNull
                             javax.xml.namespace.QName serviceName,
                             @NotNull
                             javax.xml.namespace.QName portName)
Give a WSDLBoundPortType for the given wsdl:service and wsdl:port names.

Parameters:
serviceName - service QName
portName - port QName
Returns:
A WSDLBoundPortType. null if the Binding for the given wsd:service and wsdl:port name are not found.

getService

WSDLService getService(@NotNull
                       javax.xml.namespace.QName name)
Gets WSDLService that models wsdl:service

Parameters:
name - non-null quaified name of wsdl:service, where the localName is the value of wsdl:service@name and the namespaceURI is the value of wsdl:definitions@targetNamespace
Returns:
A WSDLService or null if no wsdl:service found

getPortTypes

@NotNull
java.util.Map<javax.xml.namespace.QName,? extends WSDLPortType> getPortTypes()
Gives a Map of wsdl:portType QName and WSDLPortType

Returns:
an empty Map if the wsdl document has no wsdl:portType

getBindings

@NotNull
java.util.Map<javax.xml.namespace.QName,? extends WSDLBoundPortType> getBindings()
Gives a Map of wsdl:binding QName and WSDLBoundPortType

Returns:
an empty Map if the wsdl document has no wsdl:binding

getServices

@NotNull
java.util.Map<javax.xml.namespace.QName,? extends WSDLService> getServices()
Gives a Map of wsdl:service qualified name and WSDLService

Returns:
an empty Map if the wsdl document has no wsdl:service

getFirstServiceName

javax.xml.namespace.QName getFirstServiceName()
Returns the first service QName from insertion order


getMessage

WSDLMessage getMessage(javax.xml.namespace.QName name)
Returns the message with the given QName

Parameters:
name - Message name
Returns:
Message

getMessages

@NotNull
java.util.Map<javax.xml.namespace.QName,? extends WSDLMessage> getMessages()
Gives a Map of wsdl:message qualified name and com.sun.xml.ws.api.model.wsdl.WSDLMesage

Returns:
an empty Map if the wsdl document has no wsdl:message

getPolicyMap

com.sun.xml.ws.policy.PolicyMap getPolicyMap()
Deprecated. Do not use this method as the PolicyMap API is not final yet and might change in next few months.

Gives the PolicyMap associated with the WSDLModel

Returns:
PolicyMap


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.