com.sun.xml.ws.model.wsdl
Class WSDLServiceImpl

java.lang.Object
  extended by com.sun.xml.ws.model.wsdl.AbstractObjectImpl
      extended by com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl
          extended by com.sun.xml.ws.model.wsdl.WSDLServiceImpl
All Implemented Interfaces:
WSDLExtensible, WSDLObject, WSDLService

public final class WSDLServiceImpl
extends AbstractExtensibleImpl
implements WSDLService

Implementation of WSDLService


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl
AbstractExtensibleImpl.UnknownWSDLExtension
 
Field Summary
 
Fields inherited from class com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl
extensions, notUnderstoodExtensions
 
Constructor Summary
WSDLServiceImpl(javax.xml.stream.XMLStreamReader xsr, WSDLModelImpl parent, QName name)
           
 
Method Summary
(package private)  void freeze(WSDLModelImpl root)
           
 WSDLPortImpl get(QName portName)
          Gets the WSDLPort for a given port name
 WSDLPort getFirstPort()
          Gets the first WSDLPort if any, or otherwise null.
 WSDLPortImpl getMatchingPort(QName portTypeName)
          gets the first port in this service which matches the portType
 QName getName()
          Gets the name of the wsdl:service@name attribute value as local name and wsdl:definitions@targetNamespace as the namespace uri.
 WSDLModelImpl getParent()
          Gets the WSDLModel that owns this service.
 Iterable<WSDLPortImpl> getPorts()
          Gives all the WSDLPort in a wsdl:service WSDLService
 void put(QName portName, WSDLPortImpl port)
          Populates the Map that holds port name as key and WSDLPort as the value.
 
Methods inherited from class com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl
addExtension, addNotUnderstoodExtension, areRequiredExtensionsUnderstood, getExtension, getExtensions, getExtensions
 
Methods inherited from class com.sun.xml.ws.model.wsdl.AbstractObjectImpl
getLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLExtensible
addExtension, getExtension, getExtensions, getExtensions
 

Constructor Detail

WSDLServiceImpl

public WSDLServiceImpl(javax.xml.stream.XMLStreamReader xsr,
                       WSDLModelImpl parent,
                       QName name)
Method Detail

getParent

@NotNull
public WSDLModelImpl getParent()
Description copied from interface: WSDLService
Gets the WSDLModel that owns this service.

Specified by:
getParent in interface WSDLService

getName

public QName getName()
Description copied from interface: WSDLService
Gets the name of the wsdl:service@name attribute value as local name and wsdl:definitions@targetNamespace as the namespace uri.

Specified by:
getName in interface WSDLService

get

public WSDLPortImpl get(QName portName)
Description copied from interface: WSDLService
Gets the WSDLPort for a given port name

Specified by:
get in interface WSDLService
Parameters:
portName - non-null operationName
Returns:
null if a WSDLPort is not found

getFirstPort

public WSDLPort getFirstPort()
Description copied from interface: WSDLService
Gets the first WSDLPort if any, or otherwise null.

Specified by:
getFirstPort in interface WSDLService

getPorts

public Iterable<WSDLPortImpl> getPorts()
Description copied from interface: WSDLService
Gives all the WSDLPort in a wsdl:service WSDLService

Specified by:
getPorts in interface WSDLService

getMatchingPort

@Nullable
public WSDLPortImpl getMatchingPort(QName portTypeName)
gets the first port in this service which matches the portType


put

public void put(QName portName,
                WSDLPortImpl port)
Populates the Map that holds port name as key and WSDLPort as the value.

Parameters:
portName - Must be non-null
port - Must be non-null
Throws:
NullPointerException - if either opName or ptOp is null

freeze

void freeze(WSDLModelImpl root)