oracle.wsdl.internal
Interface Definitions

All Superinterfaces:
Documentable, Extensible, Namable, java.io.Serializable, WSDLElement

public interface Definitions
extends WSDLElement, Namable, Documentable, Extensible

The Definitions interface represents a WSDL definitions. It can be top-level or imported definitions.


Method Summary
TypeMethod
 void addBinding(Binding binding)
          Add a binding
 void addImport(Import impt)
          Add an import element
 void addMessage(Message message)
          Add a message
 void addPortType(PortType portType)
          Add a portType
 void addService(Service service)
          Add a service
 Binding findBinding(QName bindingQName)
          find a binding of the specified qname, the binding may be defined in an imported wsdl document.
 Message findMessage(QName messageQName)
          find a message of the specified qname, the message may be defined in an imported wsdl document.
 PortType findPortType(QName portTypeQName)
          find a portType of the specified qname, the portType may be defined in an imported wsdl document.
 org.w3c.dom.Element findSchemaElement(QName elementQName)
          find a schema element of the specified qname, the element may be defined in an imported wsdl document.
 org.w3c.dom.Element findSchemaType(QName typeQName)
          find a schema type of the specified qname, the element may be defined in an imported wsdl document.
 Binding getBinding(java.lang.String name)
          Get the binding with the specified name
 java.util.Map getBindings()
          Get all bindings
 java.util.Map getImports()
          Get imports
 java.util.List getImports(java.lang.String namespaceURI)
          Get imports for the specified namespaceURI
 Message getMessage(java.lang.String name)
          Get message with the specified name
 java.util.Map getMessages()
          Get all messages
 NamespaceDefinition getNamespaceDefinition()
          Get the namespace definition.
 PortType getPortType(java.lang.String name)
          Get portType with the specified name
 java.util.Map getPortTypes()
          Get all portTypes
 Service getService(java.lang.String name)
          Get the service with the specified name
 java.util.Map getServices()
          Get all services
 java.lang.String getTargetNamespaceURI()
          Get target namespace
 Types getTypes()
          Get types
 void removeBinding(java.lang.String name)
          Remove a binding with the specified name
 void removeImport(java.lang.String namespaceURI)
          Remove the list of imports with specified namespaceURI
 void removeMessage(java.lang.String name)
          Remove the message with the specified name
 void removePortType(java.lang.String name)
          Remove a portType with the specified name
 void removeService(java.lang.String name)
          Remove a service with the specified name
 void setNamespaceDefinition(NamespaceDefinition namespaceDef)
          Set the namespace definition
 void setTargetNamespaceURI(java.lang.String targetNamespaceURI)
          Set target namespace
 void setTypes(Types types)
          Set types
 
Methods inherited from interface oracle.wsdl.internal.WSDLElement
getOwnerDefinitions, getParent, serialize
 
Methods inherited from interface oracle.wsdl.internal.Namable
getName, setName
 
Methods inherited from interface oracle.wsdl.internal.Documentable
getDocumentation, setDocumentation
 
Methods inherited from interface oracle.wsdl.internal.Extensible
addExtensibilityElement, getExtensibilityElements, getExtensibilityElements, getFirstExtensibilityElement, removeExtensibilityElements
 

Method Detail

setTargetNamespaceURI

public void setTargetNamespaceURI(java.lang.String targetNamespaceURI)
Set target namespace
Parameters:
targetNamespaceURI - the target namespace

getTargetNamespaceURI

public java.lang.String getTargetNamespaceURI()
Get target namespace

getNamespaceDefinition

public NamespaceDefinition getNamespaceDefinition()
Get the namespace definition.
Returns:
namespace definition

setNamespaceDefinition

public void setNamespaceDefinition(NamespaceDefinition namespaceDef)
Set the namespace definition
Parameters:
namespaceDef - namespace definition

getImports

public java.util.Map getImports()
Get imports
Returns:
a map from namespaceURI to a list of Imports

getImports

public java.util.List getImports(java.lang.String namespaceURI)
Get imports for the specified namespaceURI
Returns:
a list of Imports

addImport

public void addImport(Import impt)
Add an import element
Parameters:
impt - the import to add

removeImport

public void removeImport(java.lang.String namespaceURI)
Remove the list of imports with specified namespaceURI
Parameters:
namespaceURI - namespace URI

getTypes

public Types getTypes()
Get types
Returns:
the types object; return null if not exist

setTypes

public void setTypes(Types types)
Set types
Parameters:
types - the types to set

getMessage

public Message getMessage(java.lang.String name)
Get message with the specified name
Returns:
a Message; return null if not exist

getMessages

public java.util.Map getMessages()
Get all messages
Returns:
a map from name of message to Message object

addMessage

public void addMessage(Message message)
Add a message
Parameters:
message - the message to add

removeMessage

public void removeMessage(java.lang.String name)
Remove the message with the specified name
Parameters:
name - the name of message to remove

getPortType

public PortType getPortType(java.lang.String name)
Get portType with the specified name
Returns:
a portType; return null if not exist

getPortTypes

public java.util.Map getPortTypes()
Get all portTypes
Returns:
a map from name of portType to PortType object

addPortType

public void addPortType(PortType portType)
Add a portType
Parameters:
portType - the portType to add

removePortType

public void removePortType(java.lang.String name)
Remove a portType with the specified name
Parameters:
name - the name of portType

getBinding

public Binding getBinding(java.lang.String name)
Get the binding with the specified name
Returns:
a binding; return null if not exist

getBindings

public java.util.Map getBindings()
Get all bindings
Returns:
a map from name of binding to Binding object

addBinding

public void addBinding(Binding binding)
Add a binding
Parameters:
binding - the binding to add

removeBinding

public void removeBinding(java.lang.String name)
Remove a binding with the specified name
Parameters:
name - the name of binding to remove

getService

public Service getService(java.lang.String name)
Get the service with the specified name
Returns:
a Service; return null if not exist

getServices

public java.util.Map getServices()
Get all services
Returns:
a map from name of service to Service object

addService

public void addService(Service service)
Add a service
Parameters:
service - the service to add

removeService

public void removeService(java.lang.String name)
Remove a service with the specified name
Parameters:
name - the name of service to remove

findBinding

public Binding findBinding(QName bindingQName)
                    throws WSDLException
find a binding of the specified qname, the binding may be defined in an imported wsdl document.
Parameters:
bindingQName - the qname of a binding
Returns:
binding
Throws:
WSDLException - thrown if the binding not found

findPortType

public PortType findPortType(QName portTypeQName)
                      throws WSDLException
find a portType of the specified qname, the portType may be defined in an imported wsdl document.
Parameters:
portTypeQName - the qname of a portType
Returns:
portType
Throws:
WSDLException - thrown if the the portType not found

findMessage

public Message findMessage(QName messageQName)
                    throws WSDLException
find a message of the specified qname, the message may be defined in an imported wsdl document.
Parameters:
messageQName - the qname of a message
Returns:
message
Throws:
WSDLException - thrown if the message not found

findSchemaElement

public org.w3c.dom.Element findSchemaElement(QName elementQName)
                                      throws WSDLException
find a schema element of the specified qname, the element may be defined in an imported wsdl document.
Parameters:
elementQName - the qname of a schema element
Returns:
element
Throws:
WSDLException - thrown if the element not found

findSchemaType

public org.w3c.dom.Element findSchemaType(QName typeQName)
                                   throws WSDLException
find a schema type of the specified qname, the element may be defined in an imported wsdl document.
Parameters:
typeQName - the qname of a schema type
Returns:
type element
Throws:
WSDLException - thrown if the type not found.


Copyright © 2001 Oracle SOAP. All Rights Reserved.