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

All Superinterfaces:
WSDLExtensible, WSDLObject
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(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,WSDLBoundPortType> getBindings()
          Gives a Map of wsdl:binding QName and WSDLBoundPortType
 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(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, getExtension, getExtensions, getExtensions
 
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,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

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.