cgl.fthpis.datatype.service
Class BusinessService

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

public class BusinessService
extends java.lang.Object
implements org.apache.juddi.datatype.RegistryObject

Author:
Mehmet S. Aktas (maktas@indiana.edu)
See Also:
Serialized Form

Field Summary
(package private)  AttributeBag attributeBag
           
(package private)  org.apache.juddi.datatype.binding.BindingTemplates bindingTemplates
           
(package private)  java.lang.String businessKey
           
(package private)  org.apache.juddi.datatype.CategoryBag categoryBag
           
(package private)  java.util.Vector descrVector
           
(package private)  AttributeBag dynamicContextBag
           
(package private)  Lease lease
           
(package private)  java.util.Vector nameVector
           
(package private)  java.lang.String serviceKey
           
(package private)  java.util.Vector sessionKeyVector
           
 
Constructor Summary
BusinessService()
          Constructs a new initialized BusinessService instance.
 
Method Summary
 void addAttribute(Attribute attribute)
          Add a binding template to this business service.
 void addBindingTemplate(org.apache.juddi.datatype.binding.BindingTemplate binding)
          Add a binding template to this business service.
 void addCategory(org.apache.juddi.datatype.KeyedReference ref)
          Add a category to the categorybag of this business service.
 void addDescription(org.apache.juddi.datatype.Description desc)
          Adds the given description.
 void addDynamicContext(Attribute dynamicContext)
          Add a binding template to this business service.
 void addName(org.apache.juddi.datatype.Name name)
          Add a name to this BusinessService.
 void addSessionKey(SessionKey sessionKey)
          Sets the name argument of the search to the given name.
 AttributeBag getAttributeBag()
          Returns the binding templates of this business service.
 org.apache.juddi.datatype.binding.BindingTemplates getBindingTemplates()
          Returns the binding templates of this business service.
 java.lang.String getBusinessKey()
          Returns the business key of this business service.
 org.apache.juddi.datatype.CategoryBag getCategoryBag()
          Returns the categorybag of this business service.
 java.util.Vector getDescriptionVector()
          Returns the descriptions.
 AttributeBag getDynamicContextBag()
          Returns the binding templates of this business service.
 Lease getLease()
          Returns the binding templates of this business service.
 java.util.Vector getNameVector()
          Returns the names of this BusinessService.
 java.lang.String getServiceKey()
          Returns the service key of this business service.
 java.util.Vector getSessionKeyVector()
          Returns the name argument of the search.
 void setAttributeBag(AttributeBag attributebag)
          Sets the binding templates of this business service.
 void setBindingTemplates(org.apache.juddi.datatype.binding.BindingTemplates bindings)
          Sets the binding templates of this business service.
 void setBusinessKey(java.lang.String key)
          Sets the String of this BusinessService.
 void setCategoryBag(org.apache.juddi.datatype.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 setDynamicContextBag(AttributeBag dynamicContextBag)
          Sets the binding templates of this business service.
 void setLease(Lease lease)
          Sets the binding templates of this business service.
 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.
 void setSessionKeyVector(java.util.Vector vec)
          Sets the name argument of the search to the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionKeyVector

java.util.Vector sessionKeyVector

businessKey

java.lang.String businessKey

serviceKey

java.lang.String serviceKey

nameVector

java.util.Vector nameVector

descrVector

java.util.Vector descrVector

bindingTemplates

org.apache.juddi.datatype.binding.BindingTemplates bindingTemplates

categoryBag

org.apache.juddi.datatype.CategoryBag categoryBag

attributeBag

AttributeBag attributeBag

dynamicContextBag

AttributeBag dynamicContextBag

lease

Lease lease
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(org.apache.juddi.datatype.Name name)
Add a name to this BusinessService.

Parameters:
name - The Name to add.

addDescription

public void addDescription(org.apache.juddi.datatype.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

addSessionKey

public void addSessionKey(SessionKey sessionKey)
Sets the name argument of the search to the given name. This value is a partial name. The serviceList return contains ServiceInfo objects for services whose name matches the value passed (leftmost match).


getSessionKeyVector

public java.util.Vector getSessionKeyVector()
Returns the name argument of the search. Null is returned if the name argument for this search has not been specified.

Returns:
The name argument of the search, or null if the argument has not been specified.

setSessionKeyVector

public void setSessionKeyVector(java.util.Vector vec)
Sets the name argument of the search to the given name. This value is a partial name. The serviceList return contains ServiceInfo objects for services whose name matches the value passed (leftmost match).


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(org.apache.juddi.datatype.binding.BindingTemplate binding)
Add a binding template to this business service.

Parameters:
binding - The binding template to add.

getBindingTemplates

public org.apache.juddi.datatype.binding.BindingTemplates getBindingTemplates()
Returns the binding templates of this business service.

Returns:
The binding templates of this business service.

setBindingTemplates

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


addAttribute

public void addAttribute(Attribute attribute)
Add a binding template to this business service.


getAttributeBag

public AttributeBag getAttributeBag()
Returns the binding templates of this business service.

Returns:
The binding templates of this business service.

setAttributeBag

public void setAttributeBag(AttributeBag attributebag)
Sets the binding templates of this business service.


addDynamicContext

public void addDynamicContext(Attribute dynamicContext)
Add a binding template to this business service.


getDynamicContextBag

public AttributeBag getDynamicContextBag()
Returns the binding templates of this business service.

Returns:
The binding templates of this business service.

setDynamicContextBag

public void setDynamicContextBag(AttributeBag dynamicContextBag)
Sets the binding templates of this business service.


getLease

public Lease getLease()
Returns the binding templates of this business service.

Returns:
The binding templates of this business service.

setLease

public void setLease(Lease lease)
Sets the binding templates of this business service.


addCategory

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


getCategoryBag

public org.apache.juddi.datatype.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(org.apache.juddi.datatype.CategoryBag bag)
Set the categorybag of this business service to the given one.

Parameters:
bag - The new categorybag.