org.apache.juddi.datatype.service
Class BusinessService

java.lang.Object
  extended by org.apache.juddi.datatype.service.BusinessService
All Implemented Interfaces:
java.io.Serializable, RegistryObject

public class BusinessService
extends java.lang.Object
implements RegistryObject

"A descriptive container that is used to group a series of related Web Services related to either a business process or category of services." - technical whitepaper "descriptive information about the party who publishes information about a service" - XML Structure Reference

Author:
Steve Viens (sviens@apache.org)
See Also:
Serialized Form

Constructor Summary
BusinessService()
          Constructs a new initialized BusinessService instance.
 
Method Summary
 void addBindingTemplate(BindingTemplate binding)
          Add a binding template to this business service.
 void addCategory(KeyedReference ref)
          Add a category to the categorybag of this business service.
 void addDescription(Description desc)
          Adds the given description.
 void addName(Name name)
          Add a name to this BusinessService.
 BindingTemplates getBindingTemplates()
          Returns the binding templates of this business service.
 java.lang.String getBusinessKey()
          Returns the business key of this business service.
 CategoryBag getCategoryBag()
          Returns the categorybag of this business service.
 java.util.Vector getDescriptionVector()
          Returns the descriptions.
 java.util.Vector getNameVector()
          Returns the names of this BusinessService.
 java.lang.String getServiceKey()
          Returns the service key of this business service.
 void setBindingTemplates(BindingTemplates bindings)
          Sets the binding templates of this business service.
 void setBusinessKey(java.lang.String key)
          Sets the String of this BusinessService.
 void setCategoryBag(CategoryBag bag)
          Set the categorybag of this business service to the given one.
 void setDescriptionVector(java.util.Vector descs)
          Sets the description list to the current one.
 void setNameVector(java.util.Vector names)
          Sets the name list to the current one.
 void setServiceKey(java.lang.String key)
          Sets the service key of this business service to the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessService

public BusinessService()
Constructs a new initialized BusinessService instance.

Method Detail

setBusinessKey

public void setBusinessKey(java.lang.String key)
Sets the String of this BusinessService. If the BusinessEntity for this BusinessService has been set, this new String must be null or must be the same as the BusinessEntity. If the BusinessEntity for this BindingTemplate has not been set, this new String may not be null.

Parameters:
key - The new business key.

getBusinessKey

public java.lang.String getBusinessKey()
Returns the business key of this business service. This method can return null if the business entity for this business service has been set and if the business key for this business service has not been set.

Returns:
The business key of this business service.

setServiceKey

public void setServiceKey(java.lang.String key)
Sets the service key of this business service to the given key.

Parameters:
key - The service key of this business service.

getServiceKey

public java.lang.String getServiceKey()
Returns the service key of this business service.

Returns:
The service key of this business service.

addName

public void addName(Name name)
Add a name to this BusinessService.

Parameters:
name - The Name to add.

addDescription

public void addDescription(Description desc)
Adds the given description. If there was already a description with the same language-code as the new description, an exception will be thrown.

Parameters:
desc - The description to add.

getNameVector

public java.util.Vector getNameVector()
Returns the names of this BusinessService.

Returns:
The names of thes BusinessService. If this BusinessService doesn't have any names, an empty set is returned.

setNameVector

public void setNameVector(java.util.Vector names)
Sets the name list to the current one. Ignores any object in the collection that is not an "instanceof" the Name class.

Parameters:
names - the Names object to set

setDescriptionVector

public void setDescriptionVector(java.util.Vector descs)
Sets the description list to the current one. Ignores any object in the collection that is not an "instanceof" the Description class.

Parameters:
descs - Descriptions object to set

getDescriptionVector

public java.util.Vector getDescriptionVector()
Returns the descriptions.

Returns:
the descriptions object

addBindingTemplate

public void addBindingTemplate(BindingTemplate binding)
Add a binding template to this business service.

Parameters:
binding - The binding template to add.

getBindingTemplates

public BindingTemplates getBindingTemplates()
Returns the binding templates of this business service.

Returns:
The binding templates of this business service.

setBindingTemplates

public void setBindingTemplates(BindingTemplates bindings)
Sets the binding templates of this business service.


addCategory

public void addCategory(KeyedReference ref)
Add a category to the categorybag of this business service.

Parameters:
ref - The category to add.

getCategoryBag

public CategoryBag getCategoryBag()
Returns the categorybag of this business service. If this business service doesn't contain any categories, an empty enumeration is returned.

Returns:
The categorybag of this business service.

setCategoryBag

public void setCategoryBag(CategoryBag bag)
Set the categorybag of this business service to the given one.

Parameters:
bag - The new categorybag.


Copyright © 2004-2007. All Rights Reserved.