javax.wsdl.Service Maven / Gradle / Ivy
/*
* (c) Copyright IBM Corp 2001, 2006
*/
package javax.wsdl;
import java.util.*;
import javax.xml.namespace.*;
/**
* This interface represents a service, which groups related
* ports to provide some functionality.
*
* @author Paul Fremantle
* @author Nirmal Mukhi
* @author Matthew J. Duftler
*/
public interface Service extends WSDLElement
{
/**
* Set the name of this service.
*
* @param name the desired name
*/
public void setQName(QName name);
/**
* Get the name of this service.
*
* @return the service name
*/
public QName getQName();
/**
* Add a port to this service.
*
* @param port the port to be added
*/
public void addPort(Port port);
/**
* Get the specified port.
*
* @param name the name of the desired port.
* @return the corresponding port, or null if there wasn't
* any matching port
*/
public Port getPort(String name);
/**
* Remove the specified port.
*
* @param name the name of the port to be removed.
* @return the port which was removed.
*/
public Port removePort(String name);
/**
* Get all the ports defined here.
*/
public Map getPorts();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy