org.apache.juddi.datatype.request
Class FindBusiness

java.lang.Object
  extended by org.apache.juddi.datatype.request.FindBusiness
All Implemented Interfaces:
java.io.Serializable, RegistryObject, Inquiry

public class FindBusiness
extends java.lang.Object
implements RegistryObject, Inquiry

Used to locate information about one or more businesses. Returns a businessList message that matches the conditions specified.

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

Constructor Summary
FindBusiness()
          Constructs a new empty find_business request.
 
Method Summary
 void addCategory(KeyedReference ref)
          Adds a category reference to the categoryBag argument of this search.
 void addDiscoveryURL(DiscoveryURL url)
          Adds a discoveryURL to the discoveryURLs argument of this search.
 void addFindQualifier(FindQualifier findQualifier)
           
 void addIdentifier(KeyedReference ref)
          Adds a business identifier reference to the identifierBag argument of this search.
 void addName(Name nameValue)
          Sets the name argument of the search to the given name.
 void addTModelKey(java.lang.String key)
          Adds a tModel reference to the tModelBag argument of this search.
 CategoryBag getCategoryBag()
          Returns the list of category references as an enumeration.
 DiscoveryURLs getDiscoveryURLs()
          Returns the list of discoveryURLs as an enumeration.
 FindQualifiers getFindQualifiers()
           
 java.lang.String getGeneric()
           
 IdentifierBag getIdentifierBag()
          Returns the list of business identifier references as an enumeration.
 int getMaxRows()
           
 java.util.Vector getNameVector()
          Returns the name argument of the search.
 TModelBag getTModelBag()
          Returns the list of tModel references as an enumeration.
 void setCategoryBag(CategoryBag bag)
          Adds a collection of category references to the bag argument of this search.
 void setDiscoveryURLs(DiscoveryURLs urls)
          Sets the collection of discoveryURLs to the new discoveryURLs argument
 void setFindQualifiers(FindQualifiers findQualifiers)
           
 void setGeneric(java.lang.String genericValue)
           
 void setIdentifierBag(IdentifierBag bag)
          Adds a collection of business identifier references to the bag argument of this search.
 void setMaxRows(int maxRows)
           
 void setMaxRows(java.lang.String maxRows)
           
 void setNameVector(java.util.Vector names)
          Sets the name argument of the search to the given name.
 void setTModelBag(TModelBag bag)
          Adds a collection of category references to the bag argument of this search.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindBusiness

public FindBusiness()
Constructs a new empty find_business request.

Method Detail

setGeneric

public void setGeneric(java.lang.String genericValue)
Parameters:
genericValue -

getGeneric

public java.lang.String getGeneric()
Returns:
String UDDI request's generic value.

addName

public void addName(Name nameValue)
Sets the name argument of the search to the given name. This value is a partial name. The businessList return contains BusinessInfo objects for businesses whose name matches the value passed (leftmost match).

Parameters:
nameValue - The name argument of the search.

setNameVector

public void setNameVector(java.util.Vector names)
Sets the name argument of the search to the given name. This value is a partial name. The businessList return contains BusinessInfo objects for businesses whose name matches the value passed (leftmost match).

Parameters:
names - The name argument of the search.

getNameVector

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

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

addIdentifier

public void addIdentifier(KeyedReference ref)
Adds a business identifier reference to the identifierBag argument of this search.

Parameters:
ref - The business identifer reference to add.

setIdentifierBag

public void setIdentifierBag(IdentifierBag bag)
Adds a collection of business identifier references to the bag argument of this search.

Parameters:
bag - The references to add.

getIdentifierBag

public IdentifierBag getIdentifierBag()
Returns the list of business identifier references as an enumeration. If the identifierBag has not been specified, an empty list is returned.

Returns:
The list of business identifier references.

addCategory

public void addCategory(KeyedReference ref)
Adds a category reference to the categoryBag argument of this search.

Parameters:
ref - The category reference to add.

setCategoryBag

public void setCategoryBag(CategoryBag bag)
Adds a collection of category references to the bag argument of this search.

Parameters:
bag - of KeyedReferences.

getCategoryBag

public CategoryBag getCategoryBag()
Returns the list of category references as an enumeration. If the categoryBag has not been specified, an empty list is returned.

Returns:
The list of category references.

addTModelKey

public void addTModelKey(java.lang.String key)
Adds a tModel reference to the tModelBag argument of this search. This tModelBag argument lets you search for businesses that have bindings that are compatible with a specific tModel pattern.

Parameters:
key - The tModel to add to the tModelBag.

getTModelBag

public TModelBag getTModelBag()
Returns the list of tModel references as an enumeration. If the tModelBag has not been specified, an empty list is returned.

Returns:
The list of the tModel references.

setTModelBag

public void setTModelBag(TModelBag bag)
Adds a collection of category references to the bag argument of this search.

Parameters:
bag - of TModelKeys.

addDiscoveryURL

public void addDiscoveryURL(DiscoveryURL url)
Adds a discoveryURL to the discoveryURLs argument of this search.

Parameters:
url - The discoveryURL to add to the discoveryURLs argument.

setDiscoveryURLs

public void setDiscoveryURLs(DiscoveryURLs urls)
Sets the collection of discoveryURLs to the new discoveryURLs argument

Parameters:
urls - The new collection of discoveryURLs.

getDiscoveryURLs

public DiscoveryURLs getDiscoveryURLs()
Returns the list of discoveryURLs as an enumeration. If the discoveryURLs argument has not been specified, an empty list is returned.

Returns:
The list of discoveryURLs.

getMaxRows

public int getMaxRows()

setMaxRows

public void setMaxRows(int maxRows)

setMaxRows

public void setMaxRows(java.lang.String maxRows)

addFindQualifier

public void addFindQualifier(FindQualifier findQualifier)

setFindQualifiers

public void setFindQualifiers(FindQualifiers findQualifiers)

getFindQualifiers

public FindQualifiers getFindQualifiers()


Copyright © 2004-2007. All Rights Reserved.