org.jvnet.wom.impl
Class WSDLDefinitionsImpl

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

public class WSDLDefinitionsImpl
extends WSDLDefinitions


Constructor Summary
WSDLDefinitionsImpl(WSDLSetImpl parent, org.xml.sax.Locator locator, javax.xml.namespace.QName name)
           
 
Method Summary
 void addBoundPortType(WSDLBoundPortTypeImpl binding)
           
 void addMessage(WSDLMessageImpl message)
           
 void addPortType(WSDLPortTypeImpl portType)
           
 void addService(WSDLServiceImpl service)
           
 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.lang.Iterable<WSDLBoundPortType> getBindings()
          Gives a Iterator of all WSDLBoundPortType
 java.lang.String getDocumentation()
          Gives the Comment on a WSDL component.
 WSDLMessage getMessage(javax.xml.namespace.QName name)
          Gets WSDLMessage that models wsdl:message
 java.lang.Iterable<WSDLMessage> getMessages()
          Gives a Iterator of all WSDLMessage
 WSDLPortType getPortType(javax.xml.namespace.QName name)
          Gets WSDLPortType that models wsdl:portType
 java.lang.Iterable<WSDLPortType> getPortTypes()
          Gives a Iterator of all WSDLPortType
 WSDLSet getRoot()
          Gives the owning WSDLSet
 WSDLService getService(javax.xml.namespace.QName name)
          Gets WSDLService that models wsdl:service
 java.lang.Iterable<WSDLService> getServices()
          Gives a Iterator of all WSDLService
 java.lang.String getTargetNamespace()
           
 WSDLTypes getWSDLTypes()
          Gives wsdl:types model.
 void setDocumentation(java.lang.String documentation)
           
 void setOwnerDocument(WSDLDocumentImpl owner)
           
 void setWSDLTypes(WSDLTypesImpl wsdlTypes)
           
<V,P> V
visit(WSDLVisitor<V,P> visitor, P param)
          WSDL visitor
 
Methods inherited from class org.jvnet.wom.api.WSDLEntity
addExtension, getExtension, getExtensions, getFirstExtension, getLocation, getName, getOwnerWSDLModel, getWSDLDocument, setOwnerWSDLDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDLDefinitionsImpl

public WSDLDefinitionsImpl(WSDLSetImpl parent,
                           org.xml.sax.Locator locator,
                           javax.xml.namespace.QName name)
Method Detail

getTargetNamespace

public java.lang.String getTargetNamespace()
Specified by:
getTargetNamespace in class WSDLDefinitions

getPortType

public WSDLPortType getPortType(javax.xml.namespace.QName name)
Description copied from class: WSDLDefinitions
Gets WSDLPortType that models wsdl:portType

Specified by:
getPortType in class WSDLDefinitions
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.

addPortType

public void addPortType(WSDLPortTypeImpl portType)

getBinding

public WSDLBoundPortType getBinding(javax.xml.namespace.QName name)
Description copied from class: WSDLDefinitions
Gets WSDLBoundPortType that models wsdl:binding

Specified by:
getBinding in class WSDLDefinitions
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

addBoundPortType

public void addBoundPortType(WSDLBoundPortTypeImpl binding)

getBinding

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

Specified by:
getBinding in class WSDLDefinitions
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.

addService

public void addService(WSDLServiceImpl service)

getService

public WSDLService getService(javax.xml.namespace.QName name)
Description copied from class: WSDLDefinitions
Gets WSDLService that models wsdl:service

Specified by:
getService in class WSDLDefinitions
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 WSDLMessage getMessage(javax.xml.namespace.QName name)
Description copied from class: WSDLDefinitions
Gets WSDLMessage that models wsdl:message

Specified by:
getMessage in class WSDLDefinitions
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 java.lang.Iterable<WSDLMessage> getMessages()
Description copied from class: WSDLDefinitions
Gives a Iterator of all WSDLMessage

Specified by:
getMessages in class WSDLDefinitions
Returns:
empty iterator if the wsdl document has no wsdl:message. Always non-null.

getPortTypes

public java.lang.Iterable<WSDLPortType> getPortTypes()
Description copied from class: WSDLDefinitions
Gives a Iterator of all WSDLPortType

Specified by:
getPortTypes in class WSDLDefinitions
Returns:
empty iterator if the wsdl document has no wsdl:portType. Always non-null.

getBindings

public java.lang.Iterable<WSDLBoundPortType> getBindings()
Description copied from class: WSDLDefinitions
Gives a Iterator of all WSDLBoundPortType

Specified by:
getBindings in class WSDLDefinitions
Returns:
empty iterator if the wsdl document has no wsdl:binding. Always non-null.

getServices

public java.lang.Iterable<WSDLService> getServices()
Description copied from class: WSDLDefinitions
Gives a Iterator of all WSDLService

Specified by:
getServices in class WSDLDefinitions
Returns:
empty iterator if the wsdl document has no wsdl:service. Always non-null.

getWSDLTypes

public WSDLTypes getWSDLTypes()
Description copied from class: WSDLDefinitions
Gives wsdl:types model. Always non-null

Specified by:
getWSDLTypes in class WSDLDefinitions

getDocumentation

public java.lang.String getDocumentation()
Description copied from class: WSDLEntity
Gives the Comment on a WSDL component. This is the content of <wsdl:document>

Overrides:
getDocumentation in class WSDLEntity
Returns:
"" if there is no documentation

setDocumentation

public void setDocumentation(java.lang.String documentation)

addMessage

public void addMessage(WSDLMessageImpl message)

setOwnerDocument

public void setOwnerDocument(WSDLDocumentImpl owner)

visit

public <V,P> V visit(WSDLVisitor<V,P> visitor,
                     P param)
Description copied from class: WSDLEntity
WSDL visitor

Specified by:
visit in class WSDLEntity

setWSDLTypes

public void setWSDLTypes(WSDLTypesImpl wsdlTypes)

getRoot

public WSDLSet getRoot()
Description copied from class: WSDLDefinitions
Gives the owning WSDLSet

Specified by:
getRoot in class WSDLDefinitions


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