org.jvnet.wom.api
Class WSDLDefinitions

java.lang.Object
  extended by org.jvnet.wom.api.WSDLEntity
      extended by org.jvnet.wom.api.WSDLDefinitions
All Implemented Interfaces:
WSDLExtensible
Direct Known Subclasses:
WSDLDefinitionsImpl

public abstract class WSDLDefinitions
extends WSDLEntity

Provides a model of a wsdl:definitions element. This will represent

Author:
Vivek Pandey

Constructor Summary
protected WSDLDefinitions(org.xml.sax.Locator locator, javax.xml.namespace.QName name)
           
 
Method Summary
abstract  WSDLBoundPortType getBinding(javax.xml.namespace.QName name)
          Gets WSDLBoundPortType that models wsdl:binding
abstract  WSDLBoundPortType getBinding(javax.xml.namespace.QName serviceName, javax.xml.namespace.QName portName)
          Give a WSDLBoundPortType for the given wsdl:service and wsdl:port names.
abstract  java.lang.Iterable<WSDLBoundPortType> getBindings()
          Gives a Iterator of all WSDLBoundPortType
abstract  WSDLMessage getMessage(javax.xml.namespace.QName name)
          Gets WSDLMessage that models wsdl:message
abstract  java.lang.Iterable<WSDLMessage> getMessages()
          Gives a Iterator of all WSDLMessage
abstract  WSDLPortType getPortType(javax.xml.namespace.QName name)
          Gets WSDLPortType that models wsdl:portType
abstract  java.lang.Iterable<WSDLPortType> getPortTypes()
          Gives a Iterator of all WSDLPortType
abstract  WSDLSet getRoot()
          Gives the owning WSDLSet
abstract  WSDLService getService(javax.xml.namespace.QName name)
          Gets WSDLService that models wsdl:service
abstract  java.lang.Iterable<WSDLService> getServices()
          Gives a Iterator of all WSDLService
abstract  java.lang.String getTargetNamespace()
           
abstract  WSDLTypes getWSDLTypes()
          Gives wsdl:types model.
 
Methods inherited from class org.jvnet.wom.api.WSDLEntity
addExtension, getDocumentation, getExtension, getExtensions, getFirstExtension, getLocation, getName, getOwnerWSDLModel, getWSDLDocument, setOwnerWSDLDocument, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDLDefinitions

protected WSDLDefinitions(org.xml.sax.Locator locator,
                          javax.xml.namespace.QName name)
Method Detail

getTargetNamespace

public abstract java.lang.String getTargetNamespace()

getPortType

public abstract WSDLPortType getPortType(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

public abstract WSDLBoundPortType getBinding(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

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

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

getService

public abstract WSDLService getService(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.

getMessage

public abstract WSDLMessage getMessage(javax.xml.namespace.QName name)
Gets WSDLMessage that models wsdl:message

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

getMessages

public abstract java.lang.Iterable<WSDLMessage> getMessages()
Gives a Iterator of all WSDLMessage

Returns:
empty iterator if the wsdl document has no wsdl:message. Always non-null.

getPortTypes

public abstract java.lang.Iterable<WSDLPortType> getPortTypes()
Gives a Iterator of all WSDLPortType

Returns:
empty iterator if the wsdl document has no wsdl:portType. Always non-null.

getBindings

public abstract java.lang.Iterable<WSDLBoundPortType> getBindings()
Gives a Iterator of all WSDLBoundPortType

Returns:
empty iterator if the wsdl document has no wsdl:binding. Always non-null.

getServices

public abstract java.lang.Iterable<WSDLService> getServices()
Gives a Iterator of all WSDLService

Returns:
empty iterator if the wsdl document has no wsdl:service. Always non-null.

getWSDLTypes

public abstract WSDLTypes getWSDLTypes()
Gives wsdl:types model. Always non-null


getRoot

public abstract WSDLSet getRoot()
Gives the owning WSDLSet



Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved.