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.

Author:
Vivek Pandey

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(QName name)
          Gets WSDLBoundPortType that models wsdl:binding
 WSDLBoundPortType getBinding(QName serviceName, QName portName)
          Give a WSDLBoundPortType for the given wsdl:service and wsdl:port names.
 Map<QName,? extends WSDLBoundPortType> getBindings()
          Gives a Map of wsdl:binding QName and WSDLBoundPortType
 QName getFirstServiceName()
          Returns the first service QName from insertion order
 WSDLMessage getMessage(QName name)
          Returns the message with the given QName
 Map<QName,? extends WSDLMessage> getMessages()
          Gives a Map of wsdl:message qualified name and com.sun.xml.ws.api.model.wsdl.WSDLMesage
 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(QName name)
          Gets WSDLPortType that models wsdl:portType
 Map<QName,? extends WSDLPortType> getPortTypes()
          Gives a Map of wsdl:portType QName and WSDLPortType
 WSDLService getService(QName name)
          Gets WSDLService that models wsdl:service
 Map<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
                         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
                             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
                             QName serviceName,
                             @NotNull
                             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
                       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
Map<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
Map<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
Map<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

QName getFirstServiceName()
Returns the first service QName from insertion order


getMessage

WSDLMessage getMessage(QName name)
Returns the message with the given QName

Parameters:
name - Message name
Returns:
Message

getMessages

@NotNull
Map<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

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 © 2005-2015 Oracle Corporation. All Rights Reserved.