org.apache.juddi.datatype.binding
Class BindingTemplate

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

public class BindingTemplate
extends java.lang.Object
implements RegistryObject

Technical web service description. Contains "information relevant for application programs that need to connect to and then communicate with a remote Web Service. This information includes the address to make contact with a Web Service, as well as support for option information that can be used to describe both hosted services and services that require additional values to be discovered prior to invoking a service" - technical whitepaper "Technical information about a service entry point and construction specs" - XML Structure Reference

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

Constructor Summary
BindingTemplate()
          Constructs a new empty BindingTemplate.
 
Method Summary
 void addCategory(KeyedReference ref)
          Add a category to the categorybag of this binding template.
 void addDescription(Description desc)
          Adds the given description.
 AccessPoint getAccessPoint()
          Returns the accesspoint of this binding template.
 java.lang.String getBindingKey()
          Returns the bindingkey of this binding template.
 CategoryBag getCategoryBag()
          Returns the categorybag of this binding template.
 java.util.Vector getDescriptionVector()
          Returns the descriptions.
 HostingRedirector getHostingRedirector()
          Returns the hosting redirector of this binding template.
 java.lang.String getServiceKey()
          Returns the servicekey of this bindingtemplate.
 TModelInstanceDetails getTModelInstanceDetails()
          Returns the tModelInstanceDetails of this binding template.
 void setAccessPoint(AccessPoint point)
          Sets the AccessPoint of this BindingTemplate.
 void setBindingKey(java.lang.String key)
          Sets the bindingkey of this bindingtemplate to the given key.
 void setCategoryBag(CategoryBag bag)
          Set the categorybag of this binding template to the given one.
 void setDescriptionVector(java.util.Vector descs)
          Sets the description list to the current one.
 void setHostingRedirector(HostingRedirector director)
          Sets the hosting redirector of this BindingTemplate.
 void setServiceKey(java.lang.String key)
          Sets the servicekey of this bindingtemplate.
 void setTModelInstanceDetails(TModelInstanceDetails details)
          Sets the tModelInstanceDetails of this binding template.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindingTemplate

public BindingTemplate()
Constructs a new empty BindingTemplate.

Method Detail

setBindingKey

public void setBindingKey(java.lang.String key)
Sets the bindingkey of this bindingtemplate to the given key.

Parameters:
key - The new bindingkey of this bindingtemplate.

getBindingKey

public java.lang.String getBindingKey()
Returns the bindingkey of this binding template.

Returns:
The bindingkey of this binding template.

setServiceKey

public void setServiceKey(java.lang.String key)
Sets the servicekey of this bindingtemplate.

Parameters:
key - The new service key.

getServiceKey

public java.lang.String getServiceKey()
Returns the servicekey of this bindingtemplate. This method can return null if the business service for this binding template has been set and if the service key for this binding template has not been set.

Returns:
The servicekey of this bindingtemplate.

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.

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 of Description objects to set

getDescriptionVector

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

Returns:
the descriptions. If the aren't any descriptions, an empty enumeration is returned.

setAccessPoint

public void setAccessPoint(AccessPoint point)
Sets the AccessPoint of this BindingTemplate. If the new AccessPoint is not null and if this BindingTemplate also contains a HostingRedirector, that HostingRedirector is set to null.

Parameters:
point - The new AccessPoint of this BindingTemplate.

getAccessPoint

public AccessPoint getAccessPoint()
Returns the accesspoint of this binding template.

Returns:
The accesspoint of this binding template, or null if the hosting redirector of this binding template has been set.

setHostingRedirector

public void setHostingRedirector(HostingRedirector director)
Sets the hosting redirector of this BindingTemplate. If the new HostingRedirector is not null and if this BindingTemplate also contains an AccessPoint, that AccessPoint is set to null.

Parameters:
director - The new HostingRedirector of this BindingTemplate.

getHostingRedirector

public HostingRedirector getHostingRedirector()
Returns the hosting redirector of this binding template.

Returns:
The hosting redirector of this BindingTemplate, or null if the AccessPoint of this BindingTemplate has been set.

getTModelInstanceDetails

public TModelInstanceDetails getTModelInstanceDetails()
Returns the tModelInstanceDetails of this binding template.

Returns:
The tModelInstanceDetails of this binding template. If this binding template doesn't contain any tModelInstanceDetails, an empty enumeration is returned.

setTModelInstanceDetails

public void setTModelInstanceDetails(TModelInstanceDetails details)
Sets the tModelInstanceDetails of this binding template.


addCategory

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

Parameters:
ref - The category to add.

getCategoryBag

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

Returns:
The categorybag of this binding template.

setCategoryBag

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

Parameters:
bag - The new categorybag.


Copyright © 2004-2007. All Rights Reserved.