org.jafer.registry.uddi.model
Class BusinessInfo

java.lang.Object
  extended by org.jafer.registry.uddi.model.BusinessInfo
All Implemented Interfaces:
java.io.Serializable, ServiceProviderInfo

public class BusinessInfo
extends java.lang.Object
implements ServiceProviderInfo

When a search can return multiple service providers this class is returned in the list as ServiceProviderInfo's. It provides a cut down view of the found service providers to reduce excess data being returned. It allows the caller to decide if they want the full serive provider information which can be obtained by supplying this object to the service manager get calls.

See Also:
Serialized Form

Field Summary
private  org.uddi4j.response.BusinessInfo businessInfo
          Stores a reference to the business info object returned from the uddi registry
 
Constructor Summary
BusinessInfo(org.uddi4j.response.BusinessInfo businessInfo)
          Constructor
 
Method Summary
static java.util.List extractBusinessInfos(org.uddi4j.response.BusinessList businessList)
          This method creates a list of businessInfo objects from the supplied business list.
 java.lang.String getDescription()
          Returns the description for the service provider found.
 java.lang.String getId()
          Returns the uniquie id of this service provider found
 java.lang.String getName()
          Returns the name of the service provider found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

businessInfo

private org.uddi4j.response.BusinessInfo businessInfo
Stores a reference to the business info object returned from the uddi registry

Constructor Detail

BusinessInfo

public BusinessInfo(org.uddi4j.response.BusinessInfo businessInfo)
Constructor

Parameters:
businessInfo - The UDDI business info object
Method Detail

getId

public java.lang.String getId()
Returns the uniquie id of this service provider found

Specified by:
getId in interface ServiceProviderInfo
Returns:
The service id.

getName

public java.lang.String getName()
Returns the name of the service provider found.

Specified by:
getName in interface ServiceProviderInfo
Returns:
The service provider name

getDescription

public java.lang.String getDescription()
Returns the description for the service provider found.

Specified by:
getDescription in interface ServiceProviderInfo
Returns:
The service provider description

extractBusinessInfos

public static java.util.List extractBusinessInfos(org.uddi4j.response.BusinessList businessList)
This method creates a list of businessInfo objects from the supplied business list. This is not exposed on the interface to the caller and therefore should not be used outside of this framework.

Parameters:
businessList - The business list to process
Returns:
A list of Business Info objects