electric.uddi
Class Business

java.lang.Object
  extended byelectric.uddi.Business
All Implemented Interfaces:
ICategorized, IIdentified, INamed, ISerializable, IUDDIConstants
Direct Known Subclasses:
BusinessExtended

public class Business
extends java.lang.Object
implements ISerializable, INamed, ICategorized, IIdentified, IUDDIConstants

Business represents a UDDI business.

Author:
webMethods

Field Summary
 
Fields inherited from interface electric.uddi.IUDDIConstants
ACCESS_POINT, ADD_PUBLISHER_ASSERTIONS, ADDRESS, ADDRESS_LINE, AND_ALL_KEYS, ASCENDING, ASSERTION_STATUS_ITEM, ASSERTION_STATUS_REPORT, ASSERTION_TYPE, AUTH_INFO, AUTH_TOKEN, AUTHORIZED_NAME, BINDING_DETAIL, BINDING_KEY, BINDING_TEMPLATE, BINDING_TEMPLATES, BINDING_TYPE, BUSINESS_DETAIL, BUSINESS_DETAIL_EXT, BUSINESS_ENTITY, BUSINESS_ENTITY_EXT, BUSINESS_INFO, BUSINESS_INFOS, BUSINESS_KEY, BUSINESS_LIST, BUSINESS_SERVICE, BUSINESS_SERVICES, BUSINESS_TYPE, CASE_SENSITIVE_MATCH, CATEGORY_BAG, CHECKED, COMBINE_CATEGORY_BAGS, COMPARE_AND_ALL_KEYS, COMPARE_OR_ALL_KEYS, COMPARE_OR_LIKE_KEYS, comparisonStrategies, COMPLETION_STATUS, CONTACT, CONTACTS, CRED, DEFAULT_SITE_OPERATOR, DELETE_BINDING, DELETE_BUSINESS, DELETE_PUBLISHER_ASSERTIONS, DELETE_SERVICE, DELETE_SUBSCRIPTION, DELETE_TMODEL, DESCENDING, DESCRIPTION, directions, DISCARD_AUTH_TOKEN, DISCOVERY_URL, DISCOVERY_URLS, DISPOSITION_REPORT, E_accountLimitExceeded, E_accountLimitExceeded_TEXT, E_assertionNotFound, E_assertionNotFound_TEXT, E_authTokenExpired, E_authTokenExpired_TEXT, E_authTokenRequired, E_authTokenRequired_TEXT, E_busy, E_busy_TEXT, E_categorizationNotAllowed, E_categorizationNotAllowed_TEXT, E_fatalError, E_fatalError_TEXT, E_invalidCategory, E_invalidCategory_TEXT, E_invalidCompletionStatus, E_invalidCompletionStatus_TEXT, E_invalidKeyPassed, E_invalidKeyPassed_TEXT, E_invalidProjection, E_invalidProjection_TEXT, E_invalidURLPassed, E_invalidURLPassed_TEXT, E_invalidValue, E_invalidValue_TEXT, E_keyRetired, E_keyRetired_TEXT, E_languageError, E_languageError_TEXT, E_messageTooLarge, E_messageTooLarge_TEXT, E_nameTooLong, E_nameTooLong_TEXT, E_operatorMismatch, E_operatorMismatch_TEXT, E_other, E_other_TEXT, E_publisherCancelled, E_publisherCancelled_TEXT, E_requestDenied, E_requestDenied_TEXT, E_secretUnknown, E_secretUnknown_TEXT, E_success, E_success_TEXT, E_tooManyOptions, E_tooManyOptions_TEXT, E_transferAborted, E_transferAborted_TEXT, E_unknownUser, E_unknownUser_TEXT, E_unrecognizedVersion, E_unrecognizedVersion_TEXT, E_unsupported, E_unsupported_TEXT, E_userMismatch, E_userMismatch_TEXT, E_valueNotAllowed, E_valueNotAllowed_TEXT, EMAIL, ENTITY_KEY, ERR_CODE, ERR_INFO, ERR_NO, EXACT_NAME_MATCH, FIND_BINDING, FIND_BUSINESS, FIND_QUALIFIER, FIND_QUALIFIERS, FIND_RELATED_BUSINESSES, FIND_SERVICE, FIND_TMODEL, FROM_KEY, FROM_USER, GENERIC, GET_ASSERTION_STATUS_REPORT, GET_AUTH_TOKEN, GET_BINDING_DETAIL, GET_BUSINESS_DETAIL, GET_BUSINESS_DETAIL_EXT, GET_OPERATIONAL_INFO, GET_PUBLISHER_ASSERTIONS, GET_REGISTERED_INFO, GET_SERVICE_DETAIL, GET_SUBSCRIPTION_RESULTS, GET_SUBSCRIPTIONS, GET_TMODEL_DETAIL, HIDDEN, HOSTING_REDIRECTOR, IDENTIFIER, IDENTIFIER_BAG, INQUIRY_METHODS, INSTANCE_DETAILS, INSTANCE_PARMS, KEY_NAME, KEY_VALUE, KEYED_REFERENCE, KEYS_OWNED, LANG, MAX_ROWS, MAX_STANDARD_SERVICES, NAME, NONE, OK, OPERATIONAL_INFOS, OPERATOR, OR_ALL_KEYS, OR_LIKE_KEYS, OVERVIEW_DOC, OVERVIEW_URL, PERSON_NAME, PHONE, PUBLISH_METHODS, PUBLISHER_ASSERTION, PUBLISHER_ASSERTIONS, REGISTERED_INFO, RELATED_BUSINESS_INFO, RELATED_BUSINESS_INFOS, RELATED_BUSINESS_LIST, RESULT, SAVE_BINDING, SAVE_BUSINESS, SAVE_SERVICE, SAVE_SUBSCRIPTION, SAVE_TMODEL, SERVICE_DETAIL, SERVICE_INFO, SERVICE_INFOS, SERVICE_KEY, SERVICE_LIST, SERVICE_SUBSET, SERVICE_TYPE, SET_PUBLISHER_ASSERTIONS, SHARED_RELATIONSHIPS, SORT_BY_DATE_ASCENDING, SORT_BY_DATE_DESCENDING, SORT_BY_NAME_ASCENDING, SORT_BY_NAME_DESCENDING, SORT_CODE, SOUNDEX_NAME_MATCH, SUBSCRIPTION_TYPE, TMODEL, TMODEL_BAG, TMODEL_DETAIL, TMODEL_INFO, TMODEL_INFOS, TMODEL_INSTANCE_DETAILS, TMODEL_INSTANCE_INFO, TMODEL_KEY, TMODEL_LIST, TMODEL_TYPE, TO_KEY, TO_USER, TRUE, TRUNCATED, UDDI, UDDI_BUS_ENTITY_NAME, UDDI_BUS_ENTITY_UUID, UDDI_BUS_REL_NAME, UDDI_BUS_REL_UUID, UDDI_DUNS_NAME, UDDI_DUNS_UUID, UDDI_FAX_NAME, UDDI_FAX_UUID, UDDI_FTP_NAME, UDDI_FTP_UUID, UDDI_GENERAL_KEYWORD_KEY, UDDI_GENERAL_KEYWORD_NAME, UDDI_HOMEPAGE_NAME, UDDI_HOMEPAGE_UUID, UDDI_HTTP_NAME, UDDI_HTTP_UUID, UDDI_INQUIRY_API_NAME, UDDI_INQUIRY_API_NAME_V2, UDDI_INQUIRY_API_UUID, UDDI_INQUIRY_API_UUID_V2, UDDI_ISO3166_NAME, UDDI_ISO3166_UUID, UDDI_MAX_NAME_LENGTH, UDDI_MAX_NAMES, UDDI_MAX_ROWS, UDDI_MISC_TAXONOMY_NAME, UDDI_MISC_TAXONOMY_UUID, UDDI_NAICS_NAME, UDDI_NAICS_UUID, UDDI_NAMESPACE_V1, UDDI_NAMESPACE_V2, UDDI_NAMESPACE_V3, UDDI_OPERATOR_MAX_ROWS, UDDI_OPERATORS_NAME, UDDI_OPERATORS_UUID, UDDI_PUBLISH_API_NAME, UDDI_PUBLISH_API_NAME_V2, UDDI_PUBLISH_API_UUID, UDDI_PUBLISH_API_UUID_V2, UDDI_SMTP_NAME, UDDI_SMTP_UUID, UDDI_SOAP_ACTION, UDDI_STATUS_COMPLETE, UDDI_STATUS_FROM_KEY_INCOMPLETE, UDDI_STATUS_TO_KEY_INCOMPLETE, UDDI_TAXONOMY_API_NAME, UDDI_TAXONOMY_API_NAME_V2, UDDI_TAXONOMY_API_UUID, UDDI_TAXONOMY_API_UUID_V2, UDDI_TELEPHONE_NAME, UDDI_TELEPHONE_UUID, UDDI_THOMAS_REGISTER_NAME, UDDI_THOMAS_REGISTER_UUID, UDDI_TYPE_TAXONOMY_NAME, UDDI_TYPE_TAXONOMY_NAME_UUID, UDDI_UNSPSC_NAME, UDDI_UNSPSC_UUID, UDDI_V1, UDDI_V2, UDDI_V3, UNCHECKED, UPLOAD_REGISTER, URL_TYPE, USE_TYPE, USER_ID, USER_NAME, USER_TYPE, XML
 
Constructor Summary
Business()
          Construct a Business with no initial values.
Business(Business business)
           
Business(Name name)
          Construct a business with the specified name.
Business(java.lang.String name)
          Construct a business with the specified name.
 
Method Summary
 void addCategory(Category category)
          Add a category.
 void addContact(Contact contact)
          Add the contact.
 void addDescription(Description description)
          Add the specified description.
 void addDiscoveryURL(DiscoveryURL discoveryURL)
          Add the discovery URL.
 void addIdentifier(Identifier identifier)
          Add the identifier.
 void addName(Name name)
           
 void addService(Service service)
          Add the service.
 boolean equals(java.lang.Object object)
           
 java.lang.String getAuthorizedName()
          Return my authorized name.
 java.lang.String getBusinessKey()
          Return my business key.
 Category[] getCategories()
          Return an array of my categories.
 Contact[] getContacts()
          Return an array of my contacts.
 Description[] getDescriptions()
          Return my descriptions.
 DiscoveryURL[] getDiscoveryURLs()
          Return my discovery URLs.
 Identifier[] getIdentifiers()
          Return an array of my identifiers.
 java.lang.String getName()
          Return my name.
 Name[] getNames()
           
 java.lang.String getOperator()
          Return my site operator.
 Service getService(java.lang.String serviceKey)
          Return the service with the specified key, or null if not found.
 java.lang.String[] getServiceKeys()
          Return an array of my service keys.
 Service[] getServices()
          Return an array of my services.
 java.lang.String getUserName()
           
 void read(IReader reader)
          Restore myself from the specified reader.
 void removeCategory(Category category)
          Remove a category.
 void removeContact(Contact contact)
          Remove the contact.
 void removeDescription(Description description)
          Remove the specified description.
 void removeDiscoveryURL(DiscoveryURL discoveryURL)
          Remove the discovery URL.
 void removeIdentifier(Identifier identifier)
          Remove the identifier.
 void removeName(Name name)
           
 void removeService(Service service)
          Remove the service.
 void removeService(java.lang.String serviceKey)
          Remove the service with the specified key.
 void setAuthorizedName(java.lang.String authorizedName)
          Set my authorized name.
 void setBusinessKey(java.lang.String businessKey)
          Set my business key.
 void setCategories(Category[] categories)
           
 void setContacts(Contact[] contacts)
           
 void setDescriptions(Description[] descriptions)
          Set my descriptions.
 void setIdentifiers(Identifier[] identifiers)
           
 void setName(java.lang.String text)
           
 void setNames(Name[] names)
           
 void setOperator(java.lang.String siteOperator)
          Set my site operator.
 void setServices(Service[] services)
          Set my services.
 void setUserName(java.lang.String userName)
           
 java.lang.String toString()
          Return my description.
 void write(IWriter writer)
          Write myself to the specified writer.
 void write(IWriter writer, boolean includeServices, boolean publishing, boolean includeUserName)
          Write myself to the specified writer.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Business

public Business()
Construct a Business with no initial values.


Business

public Business(java.lang.String name)
Construct a business with the specified name.

Parameters:
name - The initial name.

Business

public Business(Name name)
Construct a business with the specified name.

Parameters:
name - The initial name.

Business

public Business(Business business)
Parameters:
business -
Method Detail

toString

public java.lang.String toString()
Return my description.


equals

public boolean equals(java.lang.Object object)
Parameters:
object -
Returns:

setBusinessKey

public void setBusinessKey(java.lang.String businessKey)
Set my business key. This method also updates the business key of my services.

Parameters:
businessKey - The new business key.

getBusinessKey

public java.lang.String getBusinessKey()
Return my business key.


getNames

public Name[] getNames()

setNames

public void setNames(Name[] names)
Parameters:
names -

addName

public void addName(Name name)
Parameters:
name -

removeName

public void removeName(Name name)
Parameters:
name -

getName

public java.lang.String getName()
Description copied from interface: INamed
Return my name.

Specified by:
getName in interface INamed

setName

public void setName(java.lang.String text)
Parameters:
text -

setAuthorizedName

public void setAuthorizedName(java.lang.String authorizedName)
Set my authorized name.

Parameters:
authorizedName - The new authorized name.

getAuthorizedName

public java.lang.String getAuthorizedName()
Return my authorized name.


setOperator

public void setOperator(java.lang.String siteOperator)
Set my site operator.

Parameters:
siteOperator - The new site operator.

getOperator

public java.lang.String getOperator()
Return my site operator.


getDescriptions

public Description[] getDescriptions()
Return my descriptions.


setDescriptions

public void setDescriptions(Description[] descriptions)
Set my descriptions.

Parameters:
descriptions - The descriptions.

addDescription

public void addDescription(Description description)
Add the specified description.

Parameters:
description - The description.

removeDescription

public void removeDescription(Description description)
Remove the specified description.

Parameters:
description - The description.

addDiscoveryURL

public void addDiscoveryURL(DiscoveryURL discoveryURL)
Add the discovery URL.

Parameters:
discoveryURL - The discovery URL to add.

removeDiscoveryURL

public void removeDiscoveryURL(DiscoveryURL discoveryURL)
Remove the discovery URL.

Parameters:
discoveryURL - The discovery URL to remove.

getDiscoveryURLs

public DiscoveryURL[] getDiscoveryURLs()
Return my discovery URLs.


addContact

public void addContact(Contact contact)
Add the contact.

Parameters:
contact - The contact to add.

removeContact

public void removeContact(Contact contact)
Remove the contact.

Parameters:
contact - The contact to remove.

getContacts

public Contact[] getContacts()
Return an array of my contacts.


setContacts

public void setContacts(Contact[] contacts)
Parameters:
contacts -

addService

public void addService(Service service)
Add the service.

Parameters:
service - The service to add.

removeService

public void removeService(Service service)
Remove the service.

Parameters:
service - The service to remove.

removeService

public void removeService(java.lang.String serviceKey)
Remove the service with the specified key.

Parameters:
serviceKey - The key of the service to remove.

getServices

public Service[] getServices()
Return an array of my services.


getServiceKeys

public java.lang.String[] getServiceKeys()
Return an array of my service keys.


getService

public Service getService(java.lang.String serviceKey)
Return the service with the specified key, or null if not found.

Parameters:
serviceKey - The key of the service to return.

setServices

public void setServices(Service[] services)
Set my services.

Parameters:
services - The new array of services.

addIdentifier

public void addIdentifier(Identifier identifier)
Add the identifier.

Parameters:
identifier - The identifier to add.

removeIdentifier

public void removeIdentifier(Identifier identifier)
Remove the identifier.

Parameters:
identifier - The identifier to remove.

getIdentifiers

public Identifier[] getIdentifiers()
Return an array of my identifiers.

Specified by:
getIdentifiers in interface IIdentified

setIdentifiers

public void setIdentifiers(Identifier[] identifiers)
Parameters:
identifiers -

addCategory

public void addCategory(Category category)
Add a category.

Parameters:
category - The category to add.

removeCategory

public void removeCategory(Category category)
Remove a category.

Parameters:
category - The category to remove.

getCategories

public Category[] getCategories()
Return an array of my categories.

Specified by:
getCategories in interface ICategorized

setCategories

public void setCategories(Category[] categories)
Parameters:
categories -

setUserName

public void setUserName(java.lang.String userName)
Parameters:
userName -

getUserName

public java.lang.String getUserName()

write

public void write(IWriter writer)
           throws java.io.IOException
Write myself to the specified writer.

Specified by:
write in interface ISerializable
Parameters:
writer - The IWriter
Throws:
java.io.IOException - If a serialization error occurs.

write

public void write(IWriter writer,
                  boolean includeServices,
                  boolean publishing,
                  boolean includeUserName)
           throws java.io.IOException
Write myself to the specified writer.

Parameters:
writer - The IWriter
includeServices - If true, write my services as well.
publishing -
includeUserName -
Throws:
java.io.IOException - If a serialization error occurs.

read

public void read(IReader reader)
          throws java.io.IOException
Restore myself from the specified reader.

Specified by:
read in interface ISerializable
Parameters:
reader - The IReader
Throws:
java.io.IOException - If a deserialization error occurs.


copyright© 2001-2004 by webMethods All Rights Reserved.