Skip navigation links

Java API Reference for Oracle Infrastructure Web Services
11
Release 1 (11.1.1)

E10654-02


oracle.webservices.model
Interface Service

All Superinterfaces:
Component

public interface Service
extends Component

Implementations of this interface represent WSDL services within the model.


Field Summary
static QName SERVICE_COMPONENT_TYPE
          The component type name for services in the model.

 

Method Summary
 Port addPort(Port port)
          Creates and adds a child port using the information provided via the WSDL port.
 Port addPort(String name)
          Creates and adds a child port having the given name.
 Port getPort(String name)
          Returns the child port with the given name.
 Port[] getPorts()
          Gets an array of ports that are children of the service.
 void removePort(String name)
          Removes the port having the provided name from the service model.

 

Methods inherited from interface oracle.webservices.model.Component
addComponent, addExtension, addExtensionAttribute, createExtension, getAllExtensions, getComponent, getComponents, getComponents, getExtension, getExtension, getExtensionAttribute, getExtensionAttributeTypes, getExtensionTypes, getFactory, getModel, getName, getParent, getType, removeComponent, removeExtension, removeExtensionAttribute

 

Field Detail

SERVICE_COMPONENT_TYPE

static final QName SERVICE_COMPONENT_TYPE
The component type name for services in the model.

Method Detail

getPorts

Port[] getPorts()
Gets an array of ports that are children of the service. May never be null but may be empty.
Returns:
An array of ports that are children of the service.

getPort

Port getPort(String name)
Returns the child port with the given name. If no such port is found, null is returned.
Parameters:
name - The name of the child port to return.
Returns:
The child port with the given name.

addPort

Port addPort(String name)
Creates and adds a child port having the given name. Any exiting port with the same name will be overwritten.
Parameters:
name - The unique name of the port to be created and added.
Returns:
A new child port having the unique name.

addPort

Port addPort(Port port)
Creates and adds a child port using the information provided via the WSDL port.
Parameters:
port - The WSDL port from which the new child port component should be modeled.
Returns:
A new child port modeled after the provided WSDL port.

removePort

void removePort(String name)
Removes the port having the provided name from the service model. If a port with the given name is not found, no action is taken.
Parameters:
name - The name of the port to remove.

Skip navigation links

Copyright © 2006, 2009 Oracle. All Rights Reserved.