com.ontotext.wsmo4j.service
Class ServiceDescriptionImpl

java.lang.Object
  extended by com.ontotext.wsmo4j.common.EntityImpl
      extended by com.ontotext.wsmo4j.common.TopEntityImpl
          extended by com.ontotext.wsmo4j.service.ServiceDescriptionImpl
All Implemented Interfaces:
org.wsmo.common.Entity, org.wsmo.common.TopEntity, org.wsmo.service.ServiceDescription
Direct Known Subclasses:
GoalImpl, WebServiceImpl

public abstract class ServiceDescriptionImpl
extends TopEntityImpl
implements org.wsmo.service.ServiceDescription

An implementation of ServiceDescroption interface representing a service description (e.g. a Goal or a WebService).

Since:
0.4.0
Version:
$Revision: 1946 $ $Date: 2007-04-02 15:13:28 +0300 (Mon, 02 Apr 2007) $
Author:
not attributable

Constructor Summary
ServiceDescriptionImpl(org.wsmo.common.Identifier id)
           
 
Method Summary
 void addInterface(org.wsmo.service.Interface iface)
          Adds a new interface to the list of interfaces of this WebService/Goal.
 boolean equals(Object object)
           
 org.wsmo.service.Capability getCapability()
          Returns the capability of this WebService/Goal.
 Set<org.wsmo.service.Interface> listInterfaces()
          Lists the interfaces of this WebService/Goal.
 void removeInterface(org.wsmo.common.Identifier id)
          Removes the specified interface from the list of iterfaces of this WebService/Goal.
 void removeInterface(org.wsmo.service.Interface iface)
          Removes the specified interface from the list of iterfaces of this WebService/Goal.
 void setCapability(org.wsmo.service.Capability cap)
          Sets the capability of this WebService/Goal.
 
Methods inherited from class com.ontotext.wsmo4j.common.TopEntityImpl
addMediator, addNamespace, addOntology, findNamespace, getDefaultNamespace, getWsmlVariant, listMediators, listNamespaces, listOntologies, removeMediator, removeNamespace, removeNamespace, removeOntology, removeOntology, setDefaultNamespace, setDefaultNamespace, setWsmlVariant
 
Methods inherited from class com.ontotext.wsmo4j.common.EntityImpl
addNFPValue, addNFPValue, getIdentifier, hashCode, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.wsmo.common.TopEntity
addMediator, addNamespace, addOntology, findNamespace, getDefaultNamespace, getWsmlVariant, listMediators, listNamespaces, listOntologies, removeMediator, removeNamespace, removeNamespace, removeOntology, removeOntology, setDefaultNamespace, setDefaultNamespace, setWsmlVariant
 
Methods inherited from interface org.wsmo.common.Entity
addNFPValue, addNFPValue, getIdentifier, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue
 

Constructor Detail

ServiceDescriptionImpl

public ServiceDescriptionImpl(org.wsmo.common.Identifier id)
Method Detail

addInterface

public void addInterface(org.wsmo.service.Interface iface)
Adds a new interface to the list of interfaces of this WebService/Goal.

Specified by:
addInterface in interface org.wsmo.service.ServiceDescription
Parameters:
iface - The new interface to be added to the list.
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeInterface

public void removeInterface(org.wsmo.service.Interface iface)
Removes the specified interface from the list of iterfaces of this WebService/Goal.

Specified by:
removeInterface in interface org.wsmo.service.ServiceDescription
Parameters:
iface - The interface to be removed from the list of interfacaes.
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeInterface

public void removeInterface(org.wsmo.common.Identifier id)
Removes the specified interface from the list of iterfaces of this WebService/Goal.

Specified by:
removeInterface in interface org.wsmo.service.ServiceDescription
Parameters:
id - The ID of the interface to be removed from the list of interfacaes.
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

listInterfaces

public Set<org.wsmo.service.Interface> listInterfaces()
Lists the interfaces of this WebService/Goal.

Specified by:
listInterfaces in interface org.wsmo.service.ServiceDescription
Returns:
A set of the interfaces of this WebService/Goal
Throws:
org.wsmo.common.exception.SynchronisationException

getCapability

public org.wsmo.service.Capability getCapability()
Returns the capability of this WebService/Goal.

Specified by:
getCapability in interface org.wsmo.service.ServiceDescription
Returns:
The capability associated with this WebService/Goal.
Throws:
org.wsmo.common.exception.SynchronisationException
See Also:
setCapability(org.wsmo.service.Capability)

setCapability

public void setCapability(org.wsmo.service.Capability cap)
Sets the capability of this WebService/Goal.

Specified by:
setCapability in interface org.wsmo.service.ServiceDescription
Parameters:
cap - The new capability to be associated with this WebService/Goal
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException
See Also:
getCapability()

equals

public boolean equals(Object object)
Overrides:
equals in class TopEntityImpl


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.