electric.uddi
Class Service

java.lang.Object
  extended byelectric.uddi.Service
All Implemented Interfaces:
ICategorized, INamed, ISerializable, IUDDIConstants

public final class Service
extends java.lang.Object
implements ISerializable, INamed, ICategorized, IUDDIConstants

Service represents a UDDI service.

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
Service()
          Construct a Service with no initial values.
Service(Service service)
           
Service(java.lang.String name)
          Construct a Service with the specified name.
 
Method Summary
 void addBinding(Binding binding)
          Add a binding.
 void addCategory(Category category)
          Add a category.
 void addDescription(Description description)
          Add the specified description.
 void addName(Name name)
           
 boolean equals(java.lang.Object object)
           
 Binding getBinding(java.lang.String bindingKey)
          Return the binding with the specified key, or null if not found.
 java.lang.String[] getBindingKeys()
          Return an array of my binding keys.
 Binding[] getBindings()
          Return an array of my bindings.
 java.lang.String getBusinessKey()
          Return my business key.
 Category[] getCategories()
          Return an array of my categories.
 Category getCategoryWithName(java.lang.String name)
           
 Description[] getDescriptions()
          Return my descriptions.
 java.lang.String getName()
          Return my name.
 Name[] getNames()
           
 java.lang.String getServiceKey()
          Return my service key.
 java.lang.String getUserName()
           
 void read(IReader reader)
          Restore myself from the specified reader.
 void removeBinding(Binding binding)
          Remove a binding.
 void removeBinding(java.lang.String bindingKey)
          Remove the binding with the specified key.
 void removeCategory(Category category)
          Remove a category.
 void removeDescription(Description description)
          Remove the specified description.
 void removeName(Name name)
           
 void setBindings(Binding[] bindings)
          Set my bindings.
 void setBusinessKey(java.lang.String businessKey)
          Set my business key.
 void setCategories(Category[] categories)
          Set my categories to the specified value.
 void setDescriptions(Description[] descriptions)
          Set my descriptions.
 void setName(java.lang.String text)
           
 void setNames(Name[] names)
           
 void setServiceKey(java.lang.String serviceKey)
          Set my service key.
 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 includeBindings, boolean includeUserName)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Service

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


Service

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

Parameters:
name - The initial name.

Service

public Service(Service service)
Parameters:
service -
Method Detail

toString

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


equals

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

setServiceKey

public void setServiceKey(java.lang.String serviceKey)
Set my service key.

Parameters:
serviceKey - The new service key.

getServiceKey

public java.lang.String getServiceKey()
Return my service 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 -

setBusinessKey

public void setBusinessKey(java.lang.String businessKey)
Set my business key.

Parameters:
businessKey - The new business key.

getBusinessKey

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


addBinding

public void addBinding(Binding binding)
Add a binding.

Parameters:
binding - The binding to add.

removeBinding

public void removeBinding(Binding binding)
Remove a binding.

Parameters:
binding - The binding to remove.

removeBinding

public void removeBinding(java.lang.String bindingKey)
Remove the binding with the specified key.

Parameters:
bindingKey - The key of the binding to remove.

getBindings

public Binding[] getBindings()
Return an array of my bindings.


getBindingKeys

public java.lang.String[] getBindingKeys()
Return an array of my binding keys.


getBinding

public Binding getBinding(java.lang.String bindingKey)
Return the binding with the specified key, or null if not found.

Parameters:
bindingKey - The key of the binding to remove.

setBindings

public void setBindings(Binding[] bindings)
Set my bindings.

Parameters:
bindings - The new array of bindings.

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.

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

getCategoryWithName

public Category getCategoryWithName(java.lang.String name)
Parameters:
name -

setCategories

public void setCategories(Category[] categories)
Set my categories to the specified value.

Parameters:
categories - The new value.

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 includeBindings,
                  boolean includeUserName)
           throws java.io.IOException
Parameters:
writer -
includeBindings -
Throws:
java.io.IOException

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.